added basic touch controls

This commit is contained in:
vaxerski
2022-08-07 21:17:03 +02:00
parent 3a8dcf284a
commit d64227e7c7
7 changed files with 70 additions and 1 deletions

View File

@@ -12,6 +12,10 @@ enum eClickBehaviorMode {
CLICKMODE_KILL
};
struct STouchData {
CWindow* touchFocusWindow = nullptr;
};
class CInputManager {
public:
@@ -44,6 +48,11 @@ public:
eClickBehaviorMode getClickMode();
void processMouseRequest(wlr_seat_pointer_request_set_cursor_event*);
void onTouchDown(wlr_touch_down_event*);
void onTouchUp(wlr_touch_up_event*);
void onTouchMove(wlr_touch_motion_event*);
STouchData m_sTouchData;
// for dragging floating windows
CWindow* currentlyDraggedWindow = nullptr;