This article describes the keyboard controls used in Pokémon Essentials.
- As well as using a keyboard, you can set up your game to recognise mouse clicks.
The following table lists all the controls in Essentials, along with a description of what each one does.
|Arrow keys|| Input::UP|
|Z or Shift||Input::A|
|X or Esc||Input::B||
|C or Enter or Space||Input::C||
| Page Up or Q|
Page Down or W
|Shift||Input::SHIFT|| Also bound to Input::A.
|Alt||Input::ALT||None by itself.|
|Ctrl + X + Down||combination||
Controls versus input
- A control is the key you press on the keyboard.
- An input is what the game calls that particular key press.
When a key is pressed, the game converts it into an input. The rest of the game's scripts then check for inputs in order to do various things (e.g. confirm a message, scroll a list).
The conversion from a key press into an input is done in the script section PokemonControls, in the def
self.buttonToKey. The key press is a 2-digit hexadecimal number. A list of these numbers can be found here.
How to use inputs in scripts
There are hundreds of examples of how to check for an input in the scripts. These checks are always done by code which is inside a loop, so that the user can hesitate and still operate the game without fear that the game will have "moved on" and started doing something else.
To check whether the Up arrow key has been pressed, use the following:
Any input (see the table above) can be used here.