@FunctionalInterface
public interface GLFWCursorPosCallbackI
extends org.lwjgl.system.CallbackI.V
SetCursorPosCallback method.
void (*) (
GLFWwindow *window,
double xpos,
double ypos
)org.lwjgl.system.CallbackI.B, org.lwjgl.system.CallbackI.D, org.lwjgl.system.CallbackI.F, org.lwjgl.system.CallbackI.I, org.lwjgl.system.CallbackI.J, org.lwjgl.system.CallbackI.N, org.lwjgl.system.CallbackI.P, org.lwjgl.system.CallbackI.S, org.lwjgl.system.CallbackI.V, org.lwjgl.system.CallbackI.Z| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SIGNATURE |
| Modifier and Type | Method and Description |
|---|---|
default void |
callback(long args) |
default java.lang.String |
getSignature() |
void |
invoke(long window,
double xpos,
double ypos)
Will be called when the cursor is moved.
|
static final java.lang.String SIGNATURE
default java.lang.String getSignature()
getSignature in interface org.lwjgl.system.CallbackIdefault void callback(long args)
callback in interface org.lwjgl.system.CallbackI.Vvoid invoke(long window,
double xpos,
double ypos)
The callback function receives the cursor position, measured in screen coordinates but relative to the top-left corner of the window client area. On platforms that provide it, the full sub-pixel cursor position is passed on.
window - the window that received the eventxpos - the new cursor x-coordinate, relative to the left edge of the content areaypos - the new cursor y-coordinate, relative to the top edge of the content areaCopyright LWJGL. All Rights Reserved. License terms.