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

Go to the source code of this file.

Classes

struct  C4KeyShiftMapEntry
 
struct  C4KeyCodeMapEntry
 

Functions

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

Variables

const C4KeyShiftMapEntry KeyShiftMap []
 
const C4KeyCodeMapEntry KeyCodeMap []
 

Class Documentation

struct C4KeyShiftMapEntry

Definition at line 42 of file C4KeyboardInput.cpp.

Class Members
C4KeyShiftState eShift
const char * szName
struct C4KeyCodeMapEntry

Definition at line 74 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 645 of file C4KeyboardInput.cpp.

References C4KeyboardCallbackInterface::IsOriginalKey().

Referenced by C4CustomKey::KillCallbacks().

646 {
647  return pIntfc->IsOriginalKey(pCheckKey);
648 }
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 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:

Variable Documentation

const C4KeyCodeMapEntry KeyCodeMap[]

Definition at line 84 of file C4KeyboardInput.cpp.

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

const C4KeyShiftMapEntry KeyShiftMap[]
Initial value:

Definition at line 48 of file C4KeyboardInput.cpp.

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