Fix mouse buttons order on Wayland.

This commit is contained in:
Bartosz Taudul 2022-12-19 21:10:55 +01:00
parent 16d9491148
commit 7f00ae8c83
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -90,8 +90,8 @@ static void PointerButton( void*, struct wl_pointer* pointer, uint32_t serial, u
switch( button )
{
case BTN_LEFT: b = 0; break;
case BTN_MIDDLE: b = 1; break;
case BTN_RIGHT: b = 2; break;
case BTN_MIDDLE: b = 2; break;
case BTN_RIGHT: b = 1; break;
default: return;
}
ImGuiIO& io = ImGui::GetIO();