SetKeyCallback method.
void (*invoke) (
GLFWwindow *window,
int key,
int scancode,
int action,
int mods
)
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| protected | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static GLFWKeyCallback | Returns: the newGLFWKeyCallbackCreates a |
| public static GLFWKeyCallback | create(GLFWKeyCallbackI instance)
Creates a |
| public static GLFWKeyCallback | |
| public GLFWKeyCallback |
| GLFWKeyCallback | back to summary |
|---|---|
| protected GLFWKeyCallback() | |
| GLFWKeyCallback | back to summary |
|---|---|
| pack-priv GLFWKeyCallback(long functionPointer) | |
| create | back to summary |
|---|---|
| public static GLFWKeyCallback create(long functionPointer) Creates a
| |
| create | back to summary |
|---|---|
| public static GLFWKeyCallback create(GLFWKeyCallbackI instance) Creates a | |
| createSafe | back to summary |
|---|---|
| public static GLFWKeyCallback createSafe(long functionPointer) Like
| |
| set | back to summary |
|---|---|
| public GLFWKeyCallback set(long window) See | |
| Modifier and Type | Field and Description |
|---|---|
| private final GLFWKeyCallbackI |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | invoke(long
the window that received the event window, int the keyboard key that was pressed or released key, int the platform-specific scancode of the key scancode, int action, int bitfield describing which modifiers keys were held down mods)Implements org. |
| delegate | back to summary |
|---|---|
| private final GLFWKeyCallbackI delegate | |
| Container | back to summary |
|---|---|
| pack-priv Container(long functionPointer, GLFWKeyCallbackI delegate) | |
| invoke | back to summary |
|---|---|
| public void invoke(long window, int key, int scancode, int action, int mods) Implements org. Doc from org. Will be called when a key is pressed, repeated or released.
| |