Platform/Unix/X11Keyboard: Implement handleMessage()
This commit is contained in:
parent
12c0a962fc
commit
eb0889470e
2 changed files with 216 additions and 2 deletions
|
|
@ -2,8 +2,9 @@
|
|||
#ifndef PLATFORM_UNIX_X11KEYBOARD_H
|
||||
#define PLATFORM_UNIX_X11KEYBOARD_H
|
||||
|
||||
#include <Spectre/System/Event.h>
|
||||
#include <Spectre/Input/Keyboard.h>
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
namespace sp {
|
||||
|
||||
class X11Keyboard : public Keyboard
|
||||
|
|
@ -15,6 +16,9 @@ public :
|
|||
|
||||
bool isKeyDown(Keyboard::Key key);
|
||||
|
||||
// Translate a XKeyEvent to sp::Event, Called from X11EventQueue
|
||||
static bool handleMessage(XKeyEvent* xkeyevent, Event& event);
|
||||
|
||||
protected :
|
||||
|
||||
virtual void update(InputModule *input);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue