Use new input event structs in input processing
With the introduction of the wlroots backend we added new input event structs mirroring the wlroots' ones.
These may replace the old event classes we have for processing filters and spies. These old classes inherit from QInputEvents. By that they are way too complicated for what is needed and their removal fits our strategy to reduce Qt usage overall.
Event processors to replace (in filters/spies):
-
move(move_event const&), replacespointerEvent(QMouseEvent*) -
button(button_event const&), replacespointerEvent(QMouseEvent*) -
axis(axis_event const&), replaceswheelEvent(WheelEvent*) -
key(key_event const&), replaceskeyEvent(QKeyEvent*)assigned to @francesco.sorr -
touch_down(touch_down_event const&), replacestouchDown(qint32, const QPointF&, quint32)assigned to @aramgrigoryan -
touch_motion(touch_motion_event const&), replacestouchMotion(qint32, const QPointF&, quint32)assigned to @aramgrigoryan -
touch_up(touch_up_event const&), replacestouchUp(qint32, quint32)assigned to @aramgrigoryan -
pinch_begin(pinch_begin_event const&), replacespinchGestureBegin(int, quint32)assigned to @frmonteiro -
pinch_update(pinch_update_event const&), replacespinchGestureUpdate(qreal, qreal, const QSizeF&, quint32)assigned to @frmonteiro -
pinch_end(pinch_end_event const&), replacespinchGestureEnd(quint32)assigned to @frmonteiro -
pinch_cancel(pinch_end_event const&), replacespinchGestureCancelled(quint32)assigned to @frmonteiro -
swipe_begin(swipe_begin_event const&), replacesswipeGestureBegin(int, quint32)assigned to @frmonteiro -
swipe_update(swipe_update_event const&), replacesswipeGestureUpdate(const QSizeF&, quint32)assigned to @frmonteiro -
swipe_end(swipe_end_event const&), replacesswipeGestureEnd(quint32)assigned to @frmonteiro -
swipe_cancel(swipe_end_event const&), replacesswipeGestureCancelled(quint32)assigned to @frmonteiro -
switch_toggle(switch_toggle_event const&), replacesswitchEvent(SwitchEvent*)assigned to @frmonteiro
The following events can not yet be replaced as the backend is not yet defined, but it is likely they should be replaced as follows once we have defined the backend:
-
tablet_tool_axis(tablet_tool_axis_event const&), replacestabletToolEvent(QTabletEvent*) -
tablet_tool_proximity(tablet_tool_proximity_event const&), replacestabletToolEvent(QTabletEvent*) -
tablet_tool_tip(tablet_tool_tip_event const&), replacestabletToolEvent(QTabletEvent*) -
tablet_tool_button(tablet_tool_button_event const&), replacestabletToolButtonEvent(const QSet<uint>&) -
tablet_pad_button(tablet_pad_button_event const&), replacestabletPadButtonEvent(const QSet<uint>&) -
tablet_pad_ring(tablet_pad_ring_event const&), replacestabletPadRingEvent(int, int, bool) -
tablet_pad_strip(tablet_pad_strip_event const&), replacestabletPadStripEvent(int, int, bool)
Edited by Fernando Monteiro