Keyboard inputs
Details
Kode wheel segment | Controls/Keyboard |
Style | Control |
Modifiers | pressed / released / without remapping / without controller remapping / without virtual controller / down key / up key / left key / right key |
Primarily WHEN/DO | WHEN |
Pre-made brains that use it | Unknown |
Controls > Keyboard > Keyboard inputs
Description
This sub menu contains all the inputs for a keyboard.
The controller buttons are remapped to keyboard and touch alternatives automatically. These tiles cannot be used in the display layer, use icons instead.
See Remapping Controls table.
You can also add your own key inputs if they are not part of the standard keyboard inputs using the [create a key press] tile.
Example Code
WHEN [Enter] DO [shoot]
As long as the Enter key is held down the player will shoot
WHEN [Enter][pressed] DO [shoot]
As soon as the Enter key is pressed the player will shoot once (single frame action)
WHEN [1][and][2] DO [hologram]
Both 1 and 2 keys need to be pressed together to execute the command
Modifiers
pressed: Creates a single frame input as soon as the key is pressed
released: Creates a single frame input as soon as the key is released
without controller remapping: disables automatic remapping for controller alternatives for this input only
without virtual controller: disables automatic remapping for touch alternatives for this input only
without remapping: disables automatic remapping for keyboard , mouse and touch for this input only
down key: Used with arrow keys or WASD. Runs the DO side if the down key or S key is pressed
left direction: Used with arrow keys or WASD. Runs the DO side if the left key or A key is pressed
right direction: Used with arrow keys or WASD. Runs the DO side if the right key or D key is pressed
up direction: Used with arrow keys or WASD. Runs the DO side if the up key or W key is pressed
Other Uses
None