Platform/Unix/X11EventQueue: send KeyPress and KeyRelease events to X11Keyboard::handleMessage()
This commit is contained in:
parent
eb0889470e
commit
573d546961
1 changed files with 4 additions and 1 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
#include <Spectre/System/Log.h>
|
#include <Spectre/System/Log.h>
|
||||||
#include "X11EventQueue.h"
|
#include "X11EventQueue.h"
|
||||||
#include "X11SharedDisplay.h"
|
#include "X11SharedDisplay.h"
|
||||||
|
#include "X11Keyboard.h"
|
||||||
#include "X11WindowEventHandler.h"
|
#include "X11WindowEventHandler.h"
|
||||||
|
|
||||||
namespace sp {
|
namespace sp {
|
||||||
|
|
@ -48,7 +49,9 @@ bool X11EventQueue::poll(Event& event)
|
||||||
break;
|
break;
|
||||||
case KeyPress:
|
case KeyPress:
|
||||||
case KeyRelease:
|
case KeyRelease:
|
||||||
Log::info("X11: KeyEvent");
|
if (X11Keyboard::handleMessage(&xevent.xkey, event)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case ButtonPress:
|
case ButtonPress:
|
||||||
case ButtonRelease:
|
case ButtonRelease:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue