diff --git a/lib/platform/CXWindowsScreen.cpp b/lib/platform/CXWindowsScreen.cpp index 1dffd054..12b1d703 100644 --- a/lib/platform/CXWindowsScreen.cpp +++ b/lib/platform/CXWindowsScreen.cpp @@ -1740,7 +1740,7 @@ CXWindowsScreen::mapButtonToX(ButtonID id) const } // map button - return static_cast(m_buttons[id - 1]); + return static_cast(id); } void