mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:47:47 +00:00
Improve KeyEvent a bit.
Now it has a text() which is what you'll usually want.
This commit is contained in:
parent
fb4ae12bc2
commit
b999a77d0f
6 changed files with 62 additions and 11 deletions
|
@ -1,6 +1,8 @@
|
|||
#pragma once
|
||||
|
||||
#include "Event.h"
|
||||
#include "EventLoop.h"
|
||||
#include <SDL.h>
|
||||
|
||||
class EventLoopSDL final : public EventLoop {
|
||||
public:
|
||||
|
@ -9,5 +11,7 @@ public:
|
|||
|
||||
private:
|
||||
virtual void waitForEvent() override;
|
||||
|
||||
void handleKeyEvent(Event::Type, const SDL_KeyboardEvent&);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue