KeyBind

goes over the KeyBind object

new KeyBind(int keyCode)

Creates a new KeyBind object based on the keycode you provide it, you can choose from mouse values and key values.

isDown(): boolean

Returns true if the KeyBind is currently held down.

name(): String

Returns a nice name for the KeyBind, for example: Left Mouse or R.

is(int keyCode): boolean

Returns true if the the provided keyCode matches up with the value of the keyBind itself.

isMouse(): boolean

Returns true if the bind is a mouse button.

KeyCodes

Mouse values

Key values

Last updated