From bb17be56d2cd22949bf485c518d543a7e79a6b7d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 24 Oct 2022 14:04:51 +0200 Subject: a --- main/floormat-events.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main') diff --git a/main/floormat-events.cpp b/main/floormat-events.cpp index 3200728a..adc1c575 100644 --- a/main/floormat-events.cpp +++ b/main/floormat-events.cpp @@ -18,7 +18,7 @@ void main_impl::mousePressEvent(Platform::Sdl2Application::MouseEvent& event) { app.on_mouse_up_down({event.position(), (SDL_Keymod)(std::uint16_t)event.modifiers(), - mouse_button(event.button()), + mouse_button(SDL_BUTTON((std::uint8_t)event.button())), std::uint8_t(std::min(255, event.clickCount()))}, true); } @@ -27,7 +27,7 @@ void main_impl::mouseReleaseEvent(Platform::Sdl2Application::MouseEvent& event) { app.on_mouse_up_down({event.position(), (SDL_Keymod)(std::uint16_t)event.modifiers(), - mouse_button(event.button()), + mouse_button(SDL_BUTTON((std::uint8_t)event.button())), std::uint8_t(std::min(255, event.clickCount()))}, false); } -- cgit v1.2.3