All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4KeyboardInput.cpp File Reference
#include "C4Include.h"
#include "gui/C4KeyboardInput.h"
#include "gui/C4MouseControl.h"
#include "c4group/C4Components.h"
#include "platform/C4Window.h"
#include <unordered_map>
Include dependency graph for C4KeyboardInput.cpp:

Go to the source code of this file.


struct  C4KeyShiftMapEntry
struct  C4KeyCodeMapEntry


bool KEY_IsModifier (C4KeyCode k)
bool C4KeyboardCallbackInterfaceHasOriginalKey (C4KeyboardCallbackInterface *pIntfc, const C4CustomKey *pCheckKey)
C4KeyboardInputC4KeyboardInput_Init ()


const C4KeyShiftMapEntry KeyShiftMap []
const C4KeyCodeMapEntry KeyCodeMap []

Class Documentation

struct C4KeyShiftMapEntry

Definition at line 38 of file C4KeyboardInput.cpp.

Class Members
C4KeyShiftState eShift
const char * szName
struct C4KeyCodeMapEntry

Definition at line 70 of file C4KeyboardInput.cpp.

Class Members
const char * szName
const char * szShortName
C4KeyCode wCode

Function Documentation

bool C4KeyboardCallbackInterfaceHasOriginalKey ( C4KeyboardCallbackInterface pIntfc,
const C4CustomKey pCheckKey 

Definition at line 693 of file C4KeyboardInput.cpp.

References C4KeyboardCallbackInterface::IsOriginalKey().

Referenced by C4CustomKey::KillCallbacks().

694 {
695  return pIntfc->IsOriginalKey(pCheckKey);
696 }
bool IsOriginalKey(const class C4CustomKey *pCheckKey) const

Here is the call graph for this function:

Here is the caller graph for this function:

C4KeyboardInput& C4KeyboardInput_Init ( )

Definition at line 1005 of file C4KeyboardInput.cpp.

Referenced by C4KeyBinding::C4KeyBinding().

1006 {
1007  static C4KeyboardInput keyinp;
1008  return keyinp;
1009 }

Here is the caller graph for this function:

bool KEY_IsModifier ( C4KeyCode  k)

Definition at line 611 of file C4KeyboardInput.cpp.

611  {
612  return k == K_CONTROL_L || k == K_SHIFT_L || k == K_ALT_L ||
613  k == K_CONTROL_R || k == K_SHIFT_R || k == K_ALT_R;
614 }

Variable Documentation

const C4KeyCodeMapEntry KeyCodeMap[]

Definition at line 80 of file C4KeyboardInput.cpp.

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

const C4KeyShiftMapEntry KeyShiftMap[]
Initial value:

Definition at line 44 of file C4KeyboardInput.cpp.

Referenced by C4KeyCodeEx::KeyShift2String(), and C4KeyCodeEx::String2KeyShift().