diff options
| author | Kamikadze <40305144+Kam1k4dze@users.noreply.github.com> | 2025-08-14 19:44:56 +0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-14 15:44:56 +0100 |
| commit | beee22a95ed9044950e5486f22edd813e00ffa2c (patch) | |
| tree | 4612fa3d9b17275d417a059c19f998c64e871997 /src/devices/Mouse.cpp | |
| parent | aa6a78f0a4e17c49ed4aff8b58c3f7ec7ef0408f (diff) | |
refactor: Use new hyprutils casts (#11377)
Diffstat (limited to 'src/devices/Mouse.cpp')
| -rw-r--r-- | src/devices/Mouse.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/Mouse.cpp b/src/devices/Mouse.cpp index b9cf9ffc..403b0895 100644 --- a/src/devices/Mouse.cpp +++ b/src/devices/Mouse.cpp @@ -54,9 +54,9 @@ CMouse::CMouse(SP<Aquamarine::IPointer> mouse_) : m_mouse(mouse_) { m_listeners.axis = m_mouse->events.axis.listen([this](const Aquamarine::IPointer::SAxisEvent& event) { m_pointerEvents.axis.emit(SAxisEvent{ .timeMs = event.timeMs, - .source = (wl_pointer_axis_source)event.source, - .axis = (wl_pointer_axis)event.axis, - .relativeDirection = (wl_pointer_axis_relative_direction)event.direction, + .source = sc<wl_pointer_axis_source>(event.source), + .axis = sc<wl_pointer_axis>(event.axis), + .relativeDirection = sc<wl_pointer_axis_relative_direction>(event.direction), .delta = event.delta, .deltaDiscrete = event.discrete, .mouse = true, |
