This page describes the keyboard controls used in Pokémon Essentials.
The following table lists all the controls in Essentials, along with a description of what each one does.
|Z or Shift or W or Y||Input::A||Note: W and Y act as Input::A as part of support for QWERTZ and AZERTY keyboards.
|X or Esc||Input::B||
|C or Enter or Space||Input::C||
|A or Page Up or Q||Input::L||Note: Q acts as Input::L as part of support for QWERTZ and AZERTY keyboards.
|S or Page Down||Input::R||
|F or Tab or F5||Input::F||
|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, otherwise known as a button, 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 PSystem_Controls, 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.