feat: event system

This commit is contained in:
2026-02-25 12:19:59 +01:00
parent 0dd2404881
commit 12dac2fc04
6 changed files with 70 additions and 6 deletions

View File

@@ -4,8 +4,11 @@
#include "input.h"
#include <vector>
#include <wayland-client-protocol.h>
#include "event.h"
class WaylandInputHandler : public InputHandlerImpl {
private:
static void handle_pointer_enter(void *data,
@@ -67,6 +70,8 @@ private:
struct wl_pointer_listener m_pointer_listener;
wl_fixed_t m_surface_x;
wl_fixed_t m_surface_y;
private:
std::vector<Event*> m_event_queue;
};
#endif // H_WAYLAND_INPUT_