Qt/input: fix mouse button names

I tested the last PR with an older commit and thought it worked.
This commit is contained in:
Megamouse
2026-04-15 23:47:13 +02:00
committed by Ani
parent e79f56bfdc
commit ea0d8a0d78
+1 -1
View File
@@ -788,7 +788,7 @@ std::vector<pad_list_entry> keyboard_pad_handler::list_devices()
std::string keyboard_pad_handler::GetMouseName(const QMouseEvent* event) std::string keyboard_pad_handler::GetMouseName(const QMouseEvent* event)
{ {
return GetMouseName(event->button()); return GetMouseName(static_cast<u32>(mouse::button) + static_cast<u32>(event->button()));
} }
std::string keyboard_pad_handler::GetMouseName(u32 button) std::string keyboard_pad_handler::GetMouseName(u32 button)