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 } |
#define TOUPPERIFX11 | ( | key | ) | toupper(key) |
Definition at line 186 of file C4KeyboardInput.h.
typedef unsigned long C4KeyCode |
Definition at line 47 of file C4KeyboardInput.h.
enum C4KeyEventType |
Enumerator | |
---|---|
KEYEV_None | |
KEYEV_Down | |
KEYEV_Up | |
KEYEV_Pressed | |
KEYEV_Moved |
Definition at line 37 of file C4KeyboardInput.h.
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.
enum C4KeyShiftState |
Enumerator | |
---|---|
KEYS_None | |
KEYS_First | |
KEYS_Alt | |
KEYS_Control | |
KEYS_Shift | |
KEYS_Max | |
KEYS_Undefined |
Definition at line 189 of file C4KeyboardInput.h.
C4KeyboardInput& C4KeyboardInput_Init | ( | ) |
Definition at line 1000 of file C4KeyboardInput.cpp.
Referenced by C4KeyBinding::C4KeyBinding().
|
inline |
|
inline |
|
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(), and ControllerKeys::Up().
|
inline |
Definition at line 121 of file C4KeyboardInput.h.
|
inline |
Definition at line 149 of file C4KeyboardInput.h.
References KEY_CONTROLLER_AxisMin, and Key_GetGamepadEvent().
|
inline |
Definition at line 143 of file C4KeyboardInput.h.
References KEY_CONTROLLER_ButtonMin, and Key_GetGamepadEvent().
|
inline |
Definition at line 126 of file C4KeyboardInput.h.
Referenced by Key_GetGamepadAxisIndex(), Key_GetGamepadButtonIndex(), Key_IsGamepadAxis(), Key_IsGamepadButton(), and C4KeyCodeEx::KeyCode2String().
|
inline |
Definition at line 171 of file C4KeyboardInput.h.
|
inline |
Definition at line 176 of file C4KeyboardInput.h.
Referenced by C4PlayerControlAssignment::IsComboMatched().
|
inline |
Definition at line 116 of file C4KeyboardInput.h.
References KEY_CONTROLLER_Mask.
Referenced by Key_IsGamepadAxis(), Key_IsGamepadButton(), and C4KeyCodeEx::KeyCode2String().
|
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().
|
inline |
Definition at line 155 of file C4KeyboardInput.h.
|
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().
bool KEY_IsModifier | ( | C4KeyCode | k | ) |
Definition at line 611 of file C4KeyboardInput.cpp.
|
inline |
Definition at line 166 of file C4KeyboardInput.h.
References KEY_MOUSE_Mask.
Referenced by C4PlayerControlAssignment::IsComboMatched().
|
inline |
Definition at line 160 of file C4KeyboardInput.h.
References KEY_MOUSE_Mask.
Referenced by C4KeyCodeEx::FromC4MC().
const C4KeyCode KEY_Any = ~0 |
Definition at line 57 of file C4KeyboardInput.h.
Referenced by C4ChatInputDialog::C4ChatInputDialog(), C4GUI::ContextMenu::ContextMenu(), C4GUI::Dialog::Dialog(), and C4KeyboardInput::DoInput().
const C4KeyCode KEY_CONTROLLER_AnyButton = 0xff |
Definition at line 76 of file C4KeyboardInput.h.
Referenced by ControllerKeys::Any(), C4KeyboardInput::DoInput(), and C4KeyCodeEx::KeyCode2String().
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 |
Definition at line 77 of file C4KeyboardInput.h.
Referenced by KEY_CONTROLLER_Axis(), Key_GetGamepadAxisIndex(), and Key_IsGamepadAxis().
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 |
Definition at line 59 of file C4KeyboardInput.h.
Referenced by KEY_CONTROLLER_Button(), Key_GetGamepadButtonIndex(), and Key_IsGamepadButton().
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_Default = 0 |
Definition at line 56 of file C4KeyboardInput.h.
Referenced by C4CustomKey::C4CustomKey(), C4KeyCodeEx::CompileFunc(), C4Game::InitKeyboard(), and C4PlayerControlAssignment::ResolveRefs().
const C4KeyCode KEY_MOUSE_Button1 = 0x10 |
Definition at line 90 of file C4KeyboardInput.h.
const C4KeyCode KEY_MOUSE_Button1Double = 0x30 |
Definition at line 97 of file C4KeyboardInput.h.
const C4KeyCode KEY_MOUSE_ButtonLeft = KEY_MOUSE_Button1 + 0 |
Definition at line 91 of file C4KeyboardInput.h.
Referenced by C4KeyCodeEx::FromC4MC().
const C4KeyCode KEY_MOUSE_ButtonLeftDouble = KEY_MOUSE_Button1Double + 0 |
Definition at line 98 of file C4KeyboardInput.h.
Referenced by C4KeyCodeEx::FromC4MC().
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 |
Definition at line 93 of file C4KeyboardInput.h.
Referenced by C4KeyCodeEx::FromC4MC().
const C4KeyCode KEY_MOUSE_ButtonMiddleDouble = KEY_MOUSE_Button1Double + 2 |
Definition at line 100 of file C4KeyboardInput.h.
Referenced by C4KeyCodeEx::FromC4MC().
const C4KeyCode KEY_MOUSE_ButtonRight = KEY_MOUSE_Button1 + 1 |
Definition at line 92 of file C4KeyboardInput.h.
Referenced by C4KeyCodeEx::FromC4MC().
const C4KeyCode KEY_MOUSE_ButtonRightDouble = KEY_MOUSE_Button1Double + 1 |
Definition at line 99 of file C4KeyboardInput.h.
Referenced by C4KeyCodeEx::FromC4MC().
const C4KeyCode KEY_MOUSE_ButtonX1 = KEY_MOUSE_Button1 + 3 |
Definition at line 94 of file C4KeyboardInput.h.
Referenced by C4KeyCodeEx::FromC4MC().
const C4KeyCode KEY_MOUSE_ButtonX1Double = KEY_MOUSE_Button1Double + 3 |
Definition at line 101 of file C4KeyboardInput.h.
Referenced by C4KeyCodeEx::FromC4MC().
const C4KeyCode KEY_MOUSE_ButtonX2 = KEY_MOUSE_Button1 + 4 |
Definition at line 95 of file C4KeyboardInput.h.
Referenced by C4KeyCodeEx::FromC4MC().
const C4KeyCode KEY_MOUSE_ButtonX2Double = KEY_MOUSE_Button1Double + 4 |
Definition at line 102 of file C4KeyboardInput.h.
Referenced by C4KeyCodeEx::FromC4MC().
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_Move = 1 |
Definition at line 89 of file C4KeyboardInput.h.
Referenced by C4KeyCodeEx::FromC4MC(), and C4PlayerControlAssignment::IsComboMatched().
const C4KeyCode KEY_MOUSE_Wheel1Down = 0x41 |
Definition at line 105 of file C4KeyboardInput.h.
Referenced by C4KeyCodeEx::FromC4MC().
const C4KeyCode KEY_MOUSE_Wheel1Up = 0x40 |
Definition at line 104 of file C4KeyboardInput.h.
Referenced by C4KeyCodeEx::FromC4MC().
const C4KeyCode KEY_Undefined = (~0)^1 |
Definition at line 58 of file C4KeyboardInput.h.
Referenced by C4KeyCodeEx::CompileFunc().