Colobot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Macros | Enumerations | Variables
key.h File Reference

Key-related macros and enums. More...

#include <SDL_keysym.h>
Include dependency graph for key.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...
 

Variables

const unsigned int KEY_INVALID = SDLK_LAST + 1000
 Special value for invalid key bindings.
 

Detailed Description

Key-related macros and enums.

Enumeration Type Documentation

Virtual key codes generated on kmod presses.

These are provided here because left and right pair of keys generate different codes.

Enumerator
VIRTUAL_KMOD_SHIFT 

< control (left or right)

VIRTUAL_KMOD_ALT 

< shift (left or right)

VIRTUAL_KMOD_META 

< alt (left or right)