From f4d7ea3d7bb4ffc8d59f76b836853bc66ce2b87e Mon Sep 17 00:00:00 2001 From: crs Date: Sun, 7 Sep 2003 13:08:30 +0000 Subject: [PATCH] Fixed button mapping. Was returning the physical button instead of the logical button, but XTest wants the logical button. Apparently, the XTest implementation on my mac laptop has it backwards. --- lib/platform/CXWindowsScreen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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