OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4KeyboardInput.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  C4KeyCodeEx
 
struct  C4KeyEventData
 
class  C4KeyboardCallbackInterface
 
class  C4KeyCB< TargetClass >
 
class  C4KeyCBPassKey< TargetClass >
 
class  C4KeyCBEx< TargetClass, ParameterType >
 
class  C4KeyCBExPassKey< TargetClass, ParameterType >
 
class  C4CustomKey
 
class  C4KeyBinding
 
class  C4KeyboardInput
 

Namespaces

 ControllerKeys
 

Macros

#define TOUPPERIFX11(key)   toupper(key)
 

Typedefs

typedef unsigned long C4KeyCode
 

Enumerations

enum  C4KeyScope {
  KEYSCOPE_None = 0, KEYSCOPE_Control = 1, KEYSCOPE_Gui = 2, KEYSCOPE_Fullscreen = 4,
  KEYSCOPE_Console = 8, KEYSCOPE_Generic = 16, KEYSCOPE_FullSMenu = 32, KEYSCOPE_FilmView = 64,
  KEYSCOPE_FreeView = 128, KEYSCOPE_FullSView = 256
}
 
enum  C4KeyEventType {
  KEYEV_None = 0, KEYEV_Down = 1, KEYEV_Up = 2, KEYEV_Pressed = 3,
  KEYEV_Moved = 4
}
 
enum  C4KeyShiftState {
  KEYS_None = 0, KEYS_First = 1, KEYS_Alt = 1, KEYS_Control = 2,
  KEYS_Shift = 4, KEYS_Max = KEYS_Shift, KEYS_Undefined = 0xffff
}
 

Functions

uint8_t KEY_CONTROLLER_Button (uint8_t idx)
 
uint8_t KEY_CONTROLLER_Axis (uint8_t idx, bool fMax)
 
C4KeyCode KEY_Gamepad (uint8_t idButton)
 
bool Key_IsGamepad (C4KeyCode key)
 
uint8_t Key_GetGamepad (C4KeyCode key)
 
uint8_t Key_GetGamepadEvent (C4KeyCode key)
 
bool Key_IsGamepadButton (C4KeyCode key)
 
bool Key_IsGamepadAxis (C4KeyCode key)
 
uint8_t Key_GetGamepadButtonIndex (C4KeyCode key)
 
uint8_t Key_GetGamepadAxisIndex (C4KeyCode key)
 
bool Key_IsGamepadAxisHigh (C4KeyCode key)
 
C4KeyCode KEY_Mouse (uint8_t mouse_id, uint8_t mouseevent)
 
bool Key_IsMouse (C4KeyCode key)
 
uint8_t Key_GetMouse (C4KeyCode key)
 
uint8_t Key_GetMouseEvent (C4KeyCode key)
 
template<class T >
void ControllerKeys::Any (T &keys)
 
template<class T >
void ControllerKeys::Cancel (T &keys)
 
template<class T >
void ControllerKeys::Ok (T &keys)
 
template<class T >
void ControllerKeys::Left (T &keys)
 
template<class T >
void ControllerKeys::Right (T &keys)
 
template<class T >
void ControllerKeys::Up (T &keys)
 
template<class T >
void ControllerKeys::Down (T &keys)
 
C4KeyboardInputC4KeyboardInput_Init ()
 

Variables

const C4KeyCode KEY_CONTROLLER_Mask = 0x420000
 
const C4KeyCode KEY_MOUSE_Mask = 0x430000
 
const C4KeyCode KEY_Default = 0
 
const C4KeyCode KEY_Any = ~0
 
const C4KeyCode KEY_Undefined = (~0)^1
 
const C4KeyCode KEY_CONTROLLER_ButtonMin = 0x10
 
const C4KeyCode KEY_CONTROLLER_ButtonA = 0x10
 
const C4KeyCode KEY_CONTROLLER_ButtonB = 0x11
 
const C4KeyCode KEY_CONTROLLER_ButtonX = 0x12
 
const C4KeyCode KEY_CONTROLLER_ButtonY = 0x13
 
const C4KeyCode KEY_CONTROLLER_ButtonBack = 0x14
 
const C4KeyCode KEY_CONTROLLER_ButtonGuide = 0x15
 
const C4KeyCode KEY_CONTROLLER_ButtonStart = 0x16
 
const C4KeyCode KEY_CONTROLLER_ButtonLeftStick = 0x17
 
const C4KeyCode KEY_CONTROLLER_ButtonRightStick = 0x18
 
const C4KeyCode KEY_CONTROLLER_ButtonLeftShoulder = 0x19
 
const C4KeyCode KEY_CONTROLLER_ButtonRightShoulder = 0x1a
 
const C4KeyCode KEY_CONTROLLER_ButtonDpadUp = 0x1b
 
const C4KeyCode KEY_CONTROLLER_ButtonDpadDown = 0x1c
 
const C4KeyCode KEY_CONTROLLER_ButtonDpadLeft = 0x1d
 
const C4KeyCode KEY_CONTROLLER_ButtonDpadRight = 0x1e
 
const C4KeyCode KEY_CONTROLLER_ButtonMax = 0x1e
 
const C4KeyCode KEY_CONTROLLER_AnyButton = 0xff
 
const C4KeyCode KEY_CONTROLLER_AxisMin = 0x30
 
const C4KeyCode KEY_CONTROLLER_AxisLeftXLeft = 0x30
 
const C4KeyCode KEY_CONTROLLER_AxisLeftXRight = 0x31
 
const C4KeyCode KEY_CONTROLLER_AxisLeftYUp = 0x32
 
const C4KeyCode KEY_CONTROLLER_AxisLeftYDown = 0x33
 
const C4KeyCode KEY_CONTROLLER_AxisRightXLeft = 0x34
 
const C4KeyCode KEY_CONTROLLER_AxisRightXRight = 0x35
 
const C4KeyCode KEY_CONTROLLER_AxisRightYUp = 0x36
 
const C4KeyCode KEY_CONTROLLER_AxisRightYDown = 0x37
 
const C4KeyCode KEY_CONTROLLER_AxisTriggerLeft = 0x39
 
const C4KeyCode KEY_CONTROLLER_AxisTriggerRight = 0x3b
 
const C4KeyCode KEY_CONTROLLER_AxisMax = 0x3b
 
const C4KeyCode KEY_MOUSE_Move = 1
 
const C4KeyCode KEY_MOUSE_Button1 = 0x10
 
const C4KeyCode KEY_MOUSE_ButtonLeft = KEY_MOUSE_Button1 + 0
 
const C4KeyCode KEY_MOUSE_ButtonRight = KEY_MOUSE_Button1 + 1
 
const C4KeyCode KEY_MOUSE_ButtonMiddle = KEY_MOUSE_Button1 + 2
 
const C4KeyCode KEY_MOUSE_ButtonX1 = KEY_MOUSE_Button1 + 3
 
const C4KeyCode KEY_MOUSE_ButtonX2 = KEY_MOUSE_Button1 + 4
 
const C4KeyCode KEY_MOUSE_ButtonMax = KEY_MOUSE_Button1 + 0x1f
 
const C4KeyCode KEY_MOUSE_Button1Double = 0x30
 
const C4KeyCode KEY_MOUSE_ButtonLeftDouble = KEY_MOUSE_Button1Double + 0
 
const C4KeyCode KEY_MOUSE_ButtonRightDouble = KEY_MOUSE_Button1Double + 1
 
const C4KeyCode KEY_MOUSE_ButtonMiddleDouble = KEY_MOUSE_Button1Double + 2
 
const C4KeyCode KEY_MOUSE_ButtonX1Double = KEY_MOUSE_Button1Double + 3
 
const C4KeyCode KEY_MOUSE_ButtonX2Double = KEY_MOUSE_Button1Double + 4
 
const C4KeyCode KEY_MOUSE_ButtonMaxDouble = KEY_MOUSE_Button1Double + 0x1f
 
const C4KeyCode KEY_MOUSE_Wheel1Up = 0x40
 
const C4KeyCode KEY_MOUSE_Wheel1Down = 0x41
 

Macro Definition Documentation

#define TOUPPERIFX11 (   key)    toupper(key)

Definition at line 185 of file C4KeyboardInput.h.

Typedef Documentation

typedef unsigned long C4KeyCode

Definition at line 47 of file C4KeyboardInput.h.

Enumeration Type Documentation

Enumerator
KEYEV_None 
KEYEV_Down 
KEYEV_Up 
KEYEV_Pressed 
KEYEV_Moved 

Definition at line 37 of file C4KeyboardInput.h.

38 {
39  KEYEV_None = 0, // no event
40  KEYEV_Down = 1, // in response to WM_KEYDOWN or joypad button pressed
41  KEYEV_Up = 2, // in response to WM_KEYUP or joypad button released
42  KEYEV_Pressed = 3, // in response to WM_KEYPRESSED
43  KEYEV_Moved = 4, // when moving a gamepad stick
44 };
enum C4KeyScope
Enumerator
KEYSCOPE_None 
KEYSCOPE_Control 
KEYSCOPE_Gui 
KEYSCOPE_Fullscreen 
KEYSCOPE_Console 
KEYSCOPE_Generic 
KEYSCOPE_FullSMenu 
KEYSCOPE_FilmView 
KEYSCOPE_FreeView 
KEYSCOPE_FullSView 

Definition at line 22 of file C4KeyboardInput.h.

23 {
24  KEYSCOPE_None = 0,
25  KEYSCOPE_Control = 1, // player control (e.g. NUM1 to move left on keypad control)
26  KEYSCOPE_Gui = 2, // keys used to manipulate GUI elements (e.g. Tab to cycle through controls)
27  KEYSCOPE_Fullscreen = 4, // generic fullscreen-only keys (e.g. F9 for screenshot)
28  KEYSCOPE_Console = 8, // generic console-mode only keys (e.g. Space to switch edit cursor)
29  KEYSCOPE_Generic = 16, // generic keys available in fullscreen and console mode outside GUI (e.g. F1 for music on/off)
30  KEYSCOPE_FullSMenu = 32, // fullscreen menu control. If fullscreen menu is active, this disables viewport controls (e.g. Return to close player join menu)
31  KEYSCOPE_FilmView = 64, // ownerless viewport scrolling in film mode, player switching, etc. (e.g. Enter to switch to next player)
32  KEYSCOPE_FreeView = 128, // ownerless viewport scrolling, player switching, etc. (e.g. arrow left to scroll left in view)
33  KEYSCOPE_FullSView = 256 // player fullscreen viewport
34 };
Enumerator
KEYS_None 
KEYS_First 
KEYS_Alt 
KEYS_Control 
KEYS_Shift 
KEYS_Max 
KEYS_Undefined 

Definition at line 188 of file C4KeyboardInput.h.

Function Documentation

C4KeyboardInput& C4KeyboardInput_Init ( )

Definition at line 952 of file C4KeyboardInput.cpp.

Referenced by C4KeyBinding::C4KeyBinding().

953 {
954  static C4KeyboardInput keyinp;
955  return keyinp;
956 }

Here is the caller graph for this function:

uint8_t KEY_CONTROLLER_Axis ( uint8_t  idx,
bool  fMax 
)
inline

Definition at line 108 of file C4KeyboardInput.h.

References KEY_CONTROLLER_AxisMin.

108 { return KEY_CONTROLLER_AxisMin+2*idx+fMax; }
const C4KeyCode KEY_CONTROLLER_AxisMin
uint8_t KEY_CONTROLLER_Button ( uint8_t  idx)
inline

Definition at line 107 of file C4KeyboardInput.h.

References KEY_CONTROLLER_ButtonMin.

107 { return KEY_CONTROLLER_ButtonMin+idx; }
const C4KeyCode KEY_CONTROLLER_ButtonMin
C4KeyCode KEY_Gamepad ( uint8_t  idButton)
inline

Definition at line 110 of file C4KeyboardInput.h.

References KEY_CONTROLLER_Mask.

Referenced by ControllerKeys::Any(), ControllerKeys::Cancel(), C4KeyboardInput::DoInput(), ControllerKeys::Down(), ControllerKeys::Left(), ControllerKeys::Ok(), ControllerKeys::Right(), C4KeyCodeEx::String2KeyCode(), and ControllerKeys::Up().

111 {
112  // mask key as 0x004200bb, where 00 used to be the gamepad ID and bb is button ID.
113  return KEY_CONTROLLER_Mask + idButton;
114 }
const C4KeyCode KEY_CONTROLLER_Mask

Here is the caller graph for this function:

uint8_t Key_GetGamepad ( C4KeyCode  key)
inline

Definition at line 121 of file C4KeyboardInput.h.

122 {
123  return ((uint32_t)key >> 8) & 0xff;
124 }
uint8_t Key_GetGamepadAxisIndex ( C4KeyCode  key)
inline

Definition at line 149 of file C4KeyboardInput.h.

References KEY_CONTROLLER_AxisMin, and Key_GetGamepadEvent().

150 {
151  // get zero-based axis index
152  return (Key_GetGamepadEvent(key) - KEY_CONTROLLER_AxisMin) / 2;
153 }
const C4KeyCode KEY_CONTROLLER_AxisMin
uint8_t Key_GetGamepadEvent(C4KeyCode key)

Here is the call graph for this function:

uint8_t Key_GetGamepadButtonIndex ( C4KeyCode  key)
inline

Definition at line 143 of file C4KeyboardInput.h.

References KEY_CONTROLLER_ButtonMin, and Key_GetGamepadEvent().

144 {
145  // get zero-based button index
147 }
const C4KeyCode KEY_CONTROLLER_ButtonMin
uint8_t Key_GetGamepadEvent(C4KeyCode key)

Here is the call graph for this function:

uint8_t Key_GetGamepadEvent ( C4KeyCode  key)
inline

Definition at line 126 of file C4KeyboardInput.h.

Referenced by Key_GetGamepadAxisIndex(), Key_GetGamepadButtonIndex(), Key_IsGamepadAxis(), Key_IsGamepadButton(), and C4KeyCodeEx::KeyCode2String().

127 {
128  return ((uint32_t)key) & 0xff;
129 }

Here is the caller graph for this function:

uint8_t Key_GetMouse ( C4KeyCode  key)
inline

Definition at line 171 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

172 {
173  return ((uint32_t)key >> 8) & 0xff;
174 }

Here is the caller graph for this function:

uint8_t Key_GetMouseEvent ( C4KeyCode  key)
inline

Definition at line 176 of file C4KeyboardInput.h.

Referenced by C4PlayerControlAssignment::IsComboMatched(), and C4KeyCodeEx::KeyCode2String().

177 {
178  return ((uint32_t)key) & uint8_t(0xff);
179 }

Here is the caller graph for this function:

bool Key_IsGamepad ( C4KeyCode  key)
inline

Definition at line 116 of file C4KeyboardInput.h.

References KEY_CONTROLLER_Mask.

Referenced by Key_IsGamepadAxis(), Key_IsGamepadButton(), and C4KeyCodeEx::KeyCode2String().

117 {
118  return (0xff0000 & key) == KEY_CONTROLLER_Mask;
119 }
const C4KeyCode KEY_CONTROLLER_Mask

Here is the caller graph for this function:

bool Key_IsGamepadAxis ( C4KeyCode  key)
inline

Definition at line 137 of file C4KeyboardInput.h.

References KEY_CONTROLLER_AxisMax, KEY_CONTROLLER_AxisMin, Key_GetGamepadEvent(), and Key_IsGamepad().

Referenced by C4KeyboardInput::DoInput().

138 {
139  // whether this is a unique button event (AnyButton not included)
141 }
const C4KeyCode KEY_CONTROLLER_AxisMax
const C4KeyCode KEY_CONTROLLER_AxisMin
bool Key_IsGamepad(C4KeyCode key)
uint8_t Key_GetGamepadEvent(C4KeyCode key)

Here is the call graph for this function:

Here is the caller graph for this function:

bool Key_IsGamepadAxisHigh ( C4KeyCode  key)
inline

Definition at line 155 of file C4KeyboardInput.h.

156 {
157  return !!(key & 1);
158 }
bool Key_IsGamepadButton ( C4KeyCode  key)
inline

Definition at line 131 of file C4KeyboardInput.h.

References KEY_CONTROLLER_ButtonMax, KEY_CONTROLLER_ButtonMin, Key_GetGamepadEvent(), and Key_IsGamepad().

Referenced by C4KeyboardInput::DoInput().

132 {
133  // whether this is a unique button event (AnyButton not included)
135 }
bool Key_IsGamepad(C4KeyCode key)
const C4KeyCode KEY_CONTROLLER_ButtonMax
const C4KeyCode KEY_CONTROLLER_ButtonMin
uint8_t Key_GetGamepadEvent(C4KeyCode key)

Here is the call graph for this function:

Here is the caller graph for this function:

bool Key_IsMouse ( C4KeyCode  key)
inline

Definition at line 166 of file C4KeyboardInput.h.

References KEY_MOUSE_Mask.

Referenced by C4PlayerControlAssignment::IsComboMatched(), and C4KeyCodeEx::KeyCode2String().

167 {
168  return (0xff0000 & key) == KEY_MOUSE_Mask;
169 }
const C4KeyCode KEY_MOUSE_Mask

Here is the caller graph for this function:

C4KeyCode KEY_Mouse ( uint8_t  mouse_id,
uint8_t  mouseevent 
)
inline

Definition at line 160 of file C4KeyboardInput.h.

References KEY_MOUSE_Mask.

Referenced by C4PlayerControl::DoMouseInput(), and C4KeyCodeEx::String2KeyCode().

161 {
162  // mask key as 0x0043ggbb, where mm is mouse ID and bb is mouse event ID.
163  return KEY_MOUSE_Mask + (mouse_id<<8) + mouseevent;
164 }
const C4KeyCode KEY_MOUSE_Mask

Here is the caller graph for this function:

Variable Documentation

const C4KeyCode KEY_CONTROLLER_AnyButton = 0xff
const C4KeyCode KEY_CONTROLLER_AxisLeftXLeft = 0x30

Definition at line 78 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String(), and ControllerKeys::Left().

const C4KeyCode KEY_CONTROLLER_AxisLeftXRight = 0x31

Definition at line 79 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String(), and ControllerKeys::Right().

const C4KeyCode KEY_CONTROLLER_AxisLeftYDown = 0x33

Definition at line 81 of file C4KeyboardInput.h.

Referenced by ControllerKeys::Down(), and C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_AxisLeftYUp = 0x32

Definition at line 80 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String(), and ControllerKeys::Up().

const C4KeyCode KEY_CONTROLLER_AxisMax = 0x3b

Definition at line 88 of file C4KeyboardInput.h.

Referenced by Key_IsGamepadAxis().

const C4KeyCode KEY_CONTROLLER_AxisMin = 0x30
const C4KeyCode KEY_CONTROLLER_AxisRightXLeft = 0x34

Definition at line 82 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_AxisRightXRight = 0x35

Definition at line 83 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_AxisRightYDown = 0x37

Definition at line 85 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_AxisRightYUp = 0x36

Definition at line 84 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_AxisTriggerLeft = 0x39

Definition at line 86 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_AxisTriggerRight = 0x3b

Definition at line 87 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_ButtonA = 0x10

Definition at line 60 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String(), and ControllerKeys::Ok().

const C4KeyCode KEY_CONTROLLER_ButtonB = 0x11

Definition at line 61 of file C4KeyboardInput.h.

Referenced by ControllerKeys::Cancel(), and C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_ButtonBack = 0x14

Definition at line 64 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_ButtonDpadDown = 0x1c

Definition at line 72 of file C4KeyboardInput.h.

Referenced by ControllerKeys::Down(), and C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_ButtonDpadLeft = 0x1d

Definition at line 73 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String(), and ControllerKeys::Left().

const C4KeyCode KEY_CONTROLLER_ButtonDpadRight = 0x1e

Definition at line 74 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String(), and ControllerKeys::Right().

const C4KeyCode KEY_CONTROLLER_ButtonDpadUp = 0x1b

Definition at line 71 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String(), and ControllerKeys::Up().

const C4KeyCode KEY_CONTROLLER_ButtonGuide = 0x15

Definition at line 65 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_ButtonLeftShoulder = 0x19

Definition at line 69 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_ButtonLeftStick = 0x17

Definition at line 67 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_ButtonMax = 0x1e

Definition at line 75 of file C4KeyboardInput.h.

Referenced by Key_IsGamepadButton().

const C4KeyCode KEY_CONTROLLER_ButtonMin = 0x10
const C4KeyCode KEY_CONTROLLER_ButtonRightShoulder = 0x1a

Definition at line 70 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_ButtonRightStick = 0x18

Definition at line 68 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_ButtonStart = 0x16

Definition at line 66 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_ButtonX = 0x12

Definition at line 62 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_ButtonY = 0x13

Definition at line 63 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_Mask = 0x420000

Definition at line 50 of file C4KeyboardInput.h.

Referenced by KEY_Gamepad(), and Key_IsGamepad().

const C4KeyCode KEY_MOUSE_Button1 = 0x10

Definition at line 90 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String(), and C4KeyCodeEx::String2KeyCode().

const C4KeyCode KEY_MOUSE_Button1Double = 0x30

Definition at line 97 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String(), and C4KeyCodeEx::String2KeyCode().

const C4KeyCode KEY_MOUSE_ButtonLeft = KEY_MOUSE_Button1 + 0
const C4KeyCode KEY_MOUSE_ButtonLeftDouble = KEY_MOUSE_Button1Double + 0

Definition at line 98 of file C4KeyboardInput.h.

Referenced by C4PlayerControl::DoMouseInput(), and C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_MOUSE_ButtonMax = KEY_MOUSE_Button1 + 0x1f

Definition at line 96 of file C4KeyboardInput.h.

const C4KeyCode KEY_MOUSE_ButtonMaxDouble = KEY_MOUSE_Button1Double + 0x1f

Definition at line 103 of file C4KeyboardInput.h.

const C4KeyCode KEY_MOUSE_ButtonMiddle = KEY_MOUSE_Button1 + 2
const C4KeyCode KEY_MOUSE_ButtonMiddleDouble = KEY_MOUSE_Button1Double + 2
const C4KeyCode KEY_MOUSE_ButtonRight = KEY_MOUSE_Button1 + 1
const C4KeyCode KEY_MOUSE_ButtonRightDouble = KEY_MOUSE_Button1Double + 1

Definition at line 99 of file C4KeyboardInput.h.

Referenced by C4PlayerControl::DoMouseInput(), and C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_MOUSE_ButtonX1Double = KEY_MOUSE_Button1Double + 3
const C4KeyCode KEY_MOUSE_ButtonX2Double = KEY_MOUSE_Button1Double + 4
const C4KeyCode KEY_MOUSE_Mask = 0x430000

Definition at line 53 of file C4KeyboardInput.h.

Referenced by Key_IsMouse(), and KEY_Mouse().

const C4KeyCode KEY_MOUSE_Wheel1Down = 0x41
const C4KeyCode KEY_MOUSE_Wheel1Up = 0x40
const C4KeyCode KEY_Undefined = (~0)^1

Definition at line 58 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::CompileFunc(), and C4KeyCodeEx::String2KeyCode().