Colobot
|
Key-related macros and enums. More...
#include <SDL_keysym.h>
Go to the source code of this file.
Macros | |
#define | KEY(x) SDLK_ ## x |
#define | KEY_MOD(x) KMOD_ ## x |
#define | VIRTUAL_KMOD(x) VIRTUAL_KMOD_ ## x |
#define | VIRTUAL_JOY(num) (SDLK_LAST + 200 + num) |
Enumerations | |
enum | VirtualKmod { VIRTUAL_KMOD_CTRL = SDLK_LAST + 100, VIRTUAL_KMOD_SHIFT = SDLK_LAST + 101, VIRTUAL_KMOD_ALT = SDLK_LAST + 102, VIRTUAL_KMOD_META = SDLK_LAST + 103 } |
Virtual key codes generated on kmod presses. More... | |
enum | InputSlot { INPUT_SLOT_LEFT = 0, INPUT_SLOT_RIGHT = 1, INPUT_SLOT_UP = 2, INPUT_SLOT_DOWN = 3, INPUT_SLOT_GUP = 4, INPUT_SLOT_GDOWN = 5, INPUT_SLOT_CAMERA = 6, INPUT_SLOT_DESEL = 7, INPUT_SLOT_ACTION = 8, INPUT_SLOT_NEAR = 9, INPUT_SLOT_AWAY = 10, INPUT_SLOT_NEXT = 11, INPUT_SLOT_HUMAN = 12, INPUT_SLOT_QUIT = 13, INPUT_SLOT_HELP = 14, INPUT_SLOT_PROG = 15, INPUT_SLOT_VISIT = 16, INPUT_SLOT_SPEED05 = 17, INPUT_SLOT_SPEED10 = 18, INPUT_SLOT_SPEED15 = 19, INPUT_SLOT_SPEED20 = 20, INPUT_SLOT_SPEED30 = 21, INPUT_SLOT_SPEED40 = 22, INPUT_SLOT_CAMERA_UP = 23, INPUT_SLOT_CAMERA_DOWN = 24, INPUT_SLOT_PAUSE = 25, INPUT_SLOT_MAX } |
Available slots for input bindings NOTE: When adding new values, remember to also update keyTable in input.cpp and their descriptions in restext.cpp. | |
enum | JoyAxisSlot { JOY_AXIS_SLOT_X, JOY_AXIS_SLOT_Y, JOY_AXIS_SLOT_Z, JOY_AXIS_SLOT_MAX } |
Slots for joystick axes inputs. | |
Functions | |
unsigned int | GetVirtualKey (unsigned int key) |
Converts individual codes to virtual keys if needed. | |
Variables | |
const unsigned int | KEY_INVALID = SDLK_LAST + 1000 |
Special value for invalid key bindings. | |
Key-related macros and enums.
enum VirtualKmod |