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