1
0
Fork 0

Platform/Unix/X11Keyboard: Implement handleMessage()

This commit is contained in:
Henrik Hautakoski 2020-10-13 18:12:59 +02:00
parent 12c0a962fc
commit eb0889470e
2 changed files with 216 additions and 2 deletions

View file

@ -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);