3 #define SAMPLE_BUFFER_SIZE 1024 4 #define KEY_PRESSED(x,y) (((x)[(y)]&0x80)!=0) 24 virtual void PushKeyEvent(UINT uMsg, WPARAM wParam, LPARAM lParam);
34 virtual void SetKeyPressed(DWORD nKey,
bool bPressed);
38 virtual HRESULT ReadImmediateData();
40 virtual BYTE GetLastKeyState(
int nIndex);
41 virtual BYTE GetCurrentKeyState(
int nIndex);
42 virtual short GetKeyState(
int nIndex);
43 inline BYTE* GetKeyStates(){
return m_keystate; }
45 DWORD GetElementsCount()
const;
46 void SetElementsCount(DWORD val);
52 static void SetCapture(
CGUIBase* obj);
53 static void ReleaseCapture();
54 static void ReleaseCapture(
CGUIBase* obj);
62 BYTE m_lastkeystate[256];
69 MSG m_buffered_key_msgs[SAMPLE_BUFFER_SIZE / 2];
70 int m_buffered_key_msgs_count;
Definition: RenderCoreOpenGL.h:38
virtual void SetUseWindowsMessage(bool bUseWinMsg)
whether to use window message for buffered mouse event.
Definition: GUIKeyboardVirtual.cpp:174
bool m_bUseWindowMessage
whether to use window message for buffered mouse event.
Definition: GUIKeyboardVirtual.h:67
Definition: EventBinding.h:22
different physics engine has different winding order.
Definition: EventBinding.h:32
virtual bool IsUseWindowsMessage()
whether to use window message for buffered mouse event.
Definition: GUIKeyboardVirtual.cpp:169
base object for all 2D GUI objects (1) 2D GUI object are not tested against view frustum, instead it is controlled by visibility tag automatically or through user input.
Definition: GUIBase.h:54
virtual void PushKeyEvent(UINT uMsg, WPARAM wParam, LPARAM lParam)
push a standard windows key event to the buffer for processing in the next frame move.
Definition: GUIKeyboardVirtual.cpp:55
virtual bool IsKeyPressed(DWORD nKey)
return true if the key is being pressed at the time of calling.
Definition: GUIKeyboardVirtual.cpp:35
virtual HRESULT ReadBufferedData()
Definition: GUIKeyboardVirtual.cpp:79
virtual void Update()
read hardware buffer and immediate keyboard states to internal data structure.
Definition: GUIKeyboardVirtual.cpp:110
base class for keyboard system.
Definition: GUIKeyboardVirtual.h:12