1
Fork 0
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:
Andreas Kling 2018-10-12 20:55:06 +02:00
parent fb4ae12bc2
commit b999a77d0f
6 changed files with 62 additions and 11 deletions

View file

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