-
Notifications
You must be signed in to change notification settings - Fork 7
Lua Script API: Game Input Control Functions
Checks whether the given keybind that was initially pressed.
-
keybind
- The given keybind to check its input.
Checks whether the given keybind that was currently held during a pressed.
-
keybind
- The given keybind to check its input.
Checks whether the given keybind that was recently released after being pressed.
-
keybind
- The given keybind to check its input.
Checks whether the given keyboard keys were initially pressed.
-
key
- The given key from the keyboard to check its input.
Checks whether the given keyboard keys were currently held during a pressed.
-
key
- The given key from the keyboard to check its input.
Checks whether the given keyboard keys were recently released after being pressed.
-
key
- The given key from the keyboard to check its input.
Note
The mouse can either use these buttons: left
, middle
or right
within the button
parameter.
Checks whether the mouse were initially clicked.
-
button
- An optional value, the given mouse button to check its input; Default value:left
.
Checks whether the mouse were currently pressed during a click.
-
button
- An optional value, the given mouse button to check its input; Default value:left
.
Checks whether the mouse were recently released after being clicked.
-
button
- An optional value, the given mouse button to check its input; Default value:left
.
Note
The parameters for each callback in this section are listed here. Due to stupid, repetitive copy and paste in each callback description. They all work the same as usual in each callback, If you want to know which parameters are included or not, look at each callbacks title, idiot.
-
id
- The specified controller ID number used for differentiate controllers. For example, if$4$ gamepads are connected, their IDs will range from0
to3
respectively. -
gamepadBinds
- The given buttons from the gamepad to check its input.
Checks whether the given gamepad binds were initially pressed.
Checks whether the given gamepad binds were currently held during a pressed.
Checks whether the given gamepad binds were recently released after being pressed.
Checks whether the given gamepad buttons were initially pressed.
-
button
- The given button from the gamepad to check its input.
Checks whether the given gamepad buttons were currently held during a pressed.
-
button
- The given button from the gamepad to check its input.
Checks whether the given gamepad buttons were recently released after being pressed.
-
button
- The given button from the gamepad to check its input.
Gets the analog stick's current x-axis value.
-
id
- The specified controller ID number used for differentiate controllers. For example, if$4$ gamepads are connected, their IDs will range from0
to3
respectively. -
leftStick
- An optional parameter, whether the it will be the left or right analog stick; Default value:true
.
Gets the analog stick's current y-axis value.
-
id
- The specified controller ID number used for differentiate controllers. For example, if$4$ gamepads are connected, their IDs will range from0
to3
respectively. -
leftStick
- An optional parameter, whether the it will be the left or right analog stick; Default value:true
.
Is the page in some way inaccurate? an error, a typo, or outdated data? To report it, use the "Issue Tab". Or do you wish to include a new function or add new information? use the "Pull Request Tab". Help is always appreciated!
- Event Callbacks
- Custom Sprite
- Custom Text
- Object Functions
- General Functions
- Scripting & File Functions
- Game Input Control Functions
- Language Translation
- HScript Functions
- Custom Substates
- Custom Shaders
- Deprecated & Removed Functions
- Sound & Music Functions
- Tweens & Timers Functions
- Reflection Functions
- Variables