OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4KeyboardInput.h File Reference
#include <vector>
#include <map>
#include <cctype>
#include <algorithm>
Include dependency graph for C4KeyboardInput.h:
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 192 of file C4KeyboardInput.h.

Typedef Documentation

typedef unsigned long C4KeyCode

Definition at line 54 of file C4KeyboardInput.h.

Enumeration Type Documentation

Enumerator
KEYEV_None 
KEYEV_Down 
KEYEV_Up 
KEYEV_Pressed 
KEYEV_Moved 

Definition at line 44 of file C4KeyboardInput.h.

45 {
46  KEYEV_None = 0, // no event
47  KEYEV_Down = 1, // in response to WM_KEYDOWN or joypad button pressed
48  KEYEV_Up = 2, // in response to WM_KEYUP or joypad button released
49  KEYEV_Pressed = 3, // in response to WM_KEYPRESSED
50  KEYEV_Moved = 4, // when moving a gamepad stick
51 };
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 29 of file C4KeyboardInput.h.

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

Definition at line 195 of file C4KeyboardInput.h.

Function Documentation

C4KeyboardInput& C4KeyboardInput_Init ( )

Definition at line 957 of file C4KeyboardInput.cpp.

Referenced by C4KeyBinding::C4KeyBinding().

958 {
959  static C4KeyboardInput keyinp;
960  return keyinp;
961 }

Here is the caller graph for this function:

uint8_t KEY_CONTROLLER_Axis ( uint8_t  idx,
bool  fMax 
)
inline

Definition at line 115 of file C4KeyboardInput.h.

References KEY_CONTROLLER_AxisMin.

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

Definition at line 114 of file C4KeyboardInput.h.

References KEY_CONTROLLER_ButtonMin.

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

Definition at line 117 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().

118 {
119  // mask key as 0x004200bb, where 00 used to be the gamepad ID and bb is button ID.
120  return KEY_CONTROLLER_Mask + idButton;
121 }
const C4KeyCode KEY_CONTROLLER_Mask

Here is the caller graph for this function:

uint8_t Key_GetGamepad ( C4KeyCode  key)
inline

Definition at line 128 of file C4KeyboardInput.h.

129 {
130  return ((uint32_t)key >> 8) & 0xff;
131 }
uint8_t Key_GetGamepadAxisIndex ( C4KeyCode  key)
inline

Definition at line 156 of file C4KeyboardInput.h.

References KEY_CONTROLLER_AxisMin, and Key_GetGamepadEvent().

157 {
158  // get zero-based axis index
159  return (Key_GetGamepadEvent(key) - KEY_CONTROLLER_AxisMin) / 2;
160 }
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 150 of file C4KeyboardInput.h.

References KEY_CONTROLLER_ButtonMin, and Key_GetGamepadEvent().

151 {
152  // get zero-based button index
154 }
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 133 of file C4KeyboardInput.h.

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

134 {
135  return ((uint32_t)key) & 0xff;
136 }

Here is the caller graph for this function:

uint8_t Key_GetMouse ( C4KeyCode  key)
inline

Definition at line 178 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

179 {
180  return ((uint32_t)key >> 8) & 0xff;
181 }

Here is the caller graph for this function:

uint8_t Key_GetMouseEvent ( C4KeyCode  key)
inline

Definition at line 183 of file C4KeyboardInput.h.

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

184 {
185  return ((uint32_t)key) & uint8_t(0xff);
186 }

Here is the caller graph for this function:

bool Key_IsGamepad ( C4KeyCode  key)
inline

Definition at line 123 of file C4KeyboardInput.h.

References KEY_CONTROLLER_Mask.

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

124 {
125  return (0xff0000 & key) == KEY_CONTROLLER_Mask;
126 }
const C4KeyCode KEY_CONTROLLER_Mask

Here is the caller graph for this function:

bool Key_IsGamepadAxis ( C4KeyCode  key)
inline

Definition at line 144 of file C4KeyboardInput.h.

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

Referenced by C4KeyboardInput::DoInput().

145 {
146  // whether this is a unique button event (AnyButton not included)
148 }
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 162 of file C4KeyboardInput.h.

163 {
164  return !!(key & 1);
165 }
bool Key_IsGamepadButton ( C4KeyCode  key)
inline

Definition at line 138 of file C4KeyboardInput.h.

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

Referenced by C4KeyboardInput::DoInput().

139 {
140  // whether this is a unique button event (AnyButton not included)
142 }
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 173 of file C4KeyboardInput.h.

References KEY_MOUSE_Mask.

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

174 {
175  return (0xff0000 & key) == KEY_MOUSE_Mask;
176 }
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 167 of file C4KeyboardInput.h.

References KEY_MOUSE_Mask.

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

168 {
169  // mask key as 0x0043ggbb, where mm is mouse ID and bb is mouse event ID.
170  return KEY_MOUSE_Mask + (mouse_id<<8) + mouseevent;
171 }
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 85 of file C4KeyboardInput.h.

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

const C4KeyCode KEY_CONTROLLER_AxisLeftXRight = 0x31

Definition at line 86 of file C4KeyboardInput.h.

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

const C4KeyCode KEY_CONTROLLER_AxisLeftYDown = 0x33

Definition at line 88 of file C4KeyboardInput.h.

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

const C4KeyCode KEY_CONTROLLER_AxisLeftYUp = 0x32

Definition at line 87 of file C4KeyboardInput.h.

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

const C4KeyCode KEY_CONTROLLER_AxisMax = 0x3b

Definition at line 95 of file C4KeyboardInput.h.

Referenced by Key_IsGamepadAxis().

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

Definition at line 89 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_AxisRightXRight = 0x35

Definition at line 90 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_AxisRightYDown = 0x37

Definition at line 92 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_AxisRightYUp = 0x36

Definition at line 91 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_AxisTriggerLeft = 0x39

Definition at line 93 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_AxisTriggerRight = 0x3b

Definition at line 94 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_ButtonA = 0x10

Definition at line 67 of file C4KeyboardInput.h.

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

const C4KeyCode KEY_CONTROLLER_ButtonB = 0x11

Definition at line 68 of file C4KeyboardInput.h.

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

const C4KeyCode KEY_CONTROLLER_ButtonBack = 0x14

Definition at line 71 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_ButtonDpadDown = 0x1c

Definition at line 79 of file C4KeyboardInput.h.

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

const C4KeyCode KEY_CONTROLLER_ButtonDpadLeft = 0x1d

Definition at line 80 of file C4KeyboardInput.h.

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

const C4KeyCode KEY_CONTROLLER_ButtonDpadRight = 0x1e

Definition at line 81 of file C4KeyboardInput.h.

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

const C4KeyCode KEY_CONTROLLER_ButtonDpadUp = 0x1b

Definition at line 78 of file C4KeyboardInput.h.

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

const C4KeyCode KEY_CONTROLLER_ButtonGuide = 0x15

Definition at line 72 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_ButtonLeftShoulder = 0x19

Definition at line 76 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_ButtonLeftStick = 0x17

Definition at line 74 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_ButtonMax = 0x1e

Definition at line 82 of file C4KeyboardInput.h.

Referenced by Key_IsGamepadButton().

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

Definition at line 77 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_ButtonRightStick = 0x18

Definition at line 75 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_ButtonStart = 0x16

Definition at line 73 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_ButtonX = 0x12

Definition at line 69 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_ButtonY = 0x13

Definition at line 70 of file C4KeyboardInput.h.

Referenced by C4KeyCodeEx::KeyCode2String().

const C4KeyCode KEY_CONTROLLER_Mask = 0x420000

Definition at line 57 of file C4KeyboardInput.h.

Referenced by KEY_Gamepad(), and Key_IsGamepad().

const C4KeyCode KEY_MOUSE_Button1 = 0x10

Definition at line 97 of file C4KeyboardInput.h.

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

const C4KeyCode KEY_MOUSE_Button1Double = 0x30

Definition at line 104 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
const C4KeyCode KEY_MOUSE_ButtonMax = KEY_MOUSE_Button1 + 0x1f

Definition at line 103 of file C4KeyboardInput.h.

const C4KeyCode KEY_MOUSE_ButtonMaxDouble = KEY_MOUSE_Button1Double + 0x1f

Definition at line 110 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
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 60 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 65 of file C4KeyboardInput.h.

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