added basic touch controls
This commit is contained in:
parent
3a8dcf284a
commit
d64227e7c7
7 changed files with 70 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue