input
Keyboard and mouse functions
Last updated
Was this helpful?
Keyboard and mouse functions
Last updated
Was this helpful?
Argument
Type
Description
key_code
Number
LWJGL 2 Key code to check
Returns if the specified key is currently being pressed
Key codes can be found here:
Argument
Type
Description
mouse_button
Number
LWJGL 2 mouse button code to check
Returns if the specified mouse button is currently being pressed
Argument
Type
Description
key_code
Number
Key code
Returns the key name of a specified key code
Argument
Type
Description
key_name
String
Key name, such as "b"
Returns the key code of the specified key name
Returns the scrolled amount in mouse wheel