Class KeyEvent
java.lang.Object
de.ellpeck.rockbottom.api.event.Event
de.ellpeck.rockbottom.api.event.impl.KeyEvent
This event is fired when a key is pressed or held down. It is called in the
GLFWKeyCallback that is assigned to GLFW.glfwSetKeyCallback(long, GLFWKeyCallbackI). Cancelling it will cause the key not to be marked as
pressed or held down internally.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
window
public final long window -
scancode
public final int scancode -
mods
public final int mods -
action
public int action -
key
public int key
-
-
Constructor Details
-
KeyEvent
public KeyEvent(long window, int scancode, int mods, int action, int key)
-