input
This page will go over the Input API namespace.
isKeyBindForwardDown(): Boolean
isKeyBindForwardDown(): BooleanReturns whether the Forward movement key (defaults to W) is down.
isKeyBindBackDown(): Boolean
isKeyBindBackDown(): BooleanReturns whether the Back movement key (defaults to S) is down.
isKeyBindLeftDown(): Boolean
isKeyBindLeftDown(): BooleanReturns whether the Left movement key (defaults to A) is down.
isKeyBindRightDown(): Boolean
isKeyBindRightDown(): BooleanReturns whether the Right movement key (defaults to D) is down.
isKeyBindJumpDown(): Boolean
isKeyBindJumpDown(): BooleanReturns whether the Jump movement key (defaults to Space) is down.
isKeyBindSneakDown(): Boolean
isKeyBindSneakDown(): BooleanReturns whether the Sneak movement key (defaults to Shift) is down.
isKeyBindAttackDown(): Boolean
isKeyBindAttackDown(): BooleanReturns whether the Attack key (defaults to LMB) is down.
isKeyBindUseItemDown(): Boolean
isKeyBindUseItemDown(): BooleanReturns whether the Use Item key (defaults to RMB) is down.
isKeyBindDropDown(): Boolean
isKeyBindDropDown(): BooleanReturns whether the Drop key (defaults to Q) is down.
isKeyBindInventoryDown(): Boolean
isKeyBindInventoryDown(): BooleanReturns whether the Inventory key (defaults to E) is down.
isKeyBindChatDown(): Boolean
isKeyBindChatDown(): BooleanReturns whether the Chat key (defaults to T) is down.
isKeyBindPlayerListDown(): Boolean
isKeyBindPlayerListDown(): BooleanReturns whether the Player list key (defaults to TAB) is down.
isKeyBindCommandDown(): Boolean
isKeyBindCommandDown(): BooleanReturns whether the Command key (defaults to '/') is down.
isKeyBindScreenshotDown(): Boolean
isKeyBindScreenshotDown(): BooleanReturns whether the Screenshot key (defaults to F2) is down.
isKeyBindTogglePerspectiveDown(): Boolean
isKeyBindTogglePerspectiveDown(): BooleanReturns whether the Toggle Perspective (more known as the Third Person) key (defaults to F5) is down.
isKeyBindFullscreenDown(): Boolean
isKeyBindFullscreenDown(): BooleanReturns whether the Full Screen key (defaults to F11) is down.
isKeyBindSpectatorOutlinesDown(): Boolean
isKeyBindSpectatorOutlinesDown(): BooleanReturns whether the Spectatour Outlines key is down.
isKeyDown(key): Boolean
isKeyDown(key): Booleankey
Number
The LWJGL ID of a key.
Returns whether the specified key is down. To get the ID of a key, refer to this table.
isButtonDown(button): Boolean
isButtonDown(button): Booleanbutton
Number
The LWJGL ID of a button.
Returns whether the specified mouse button is down.
isMouseDown(button): Boolean
isMouseDown(button): Booleanbutton
Number
Mouse button int.
Returns whether the specified mouse button is down.
Last updated