gramods
Loading...
Searching...
No Matches
SDLEventAdaptor.hh
1
2#ifndef GRAMODS_TOUCH_SDLEVENTADAPTOR
3#define GRAMODS_TOUCH_SDLEVENTADAPTOR
4
5#include <gmTouch/config.hh>
6
7#ifdef gramods_ENABLE_SDL2
8
9#include <gmTouch/TouchState.hh>
10
11#include <SDL.h>
12
13BEGIN_NAMESPACE_GMTOUCH;
14
35
36public:
37
41 void init(int width, int height) override;
42
46 void done() override;
47
53 void handleEvent(const SDL_Event& event);
54
55private:
56
57 int width, height;
58 bool mouse_down = false;
59};
60
61END_NAMESPACE_GMTOUCH;
62
63#endif
64#endif
Event adaptor for SDL2, providing means to input events into TouchState.
Definition SDLEventAdaptor.hh:34
Base type for event adaptors providing means to input events from different platforms and window libr...
Definition TouchState.hh:606