Fix log string to use the re-mapped button instead of the input ID #2975

This commit is contained in:
Asbjorn Kjaer 2015-10-28 20:05:17 -07:00 committed by Jerry (Xinyu Hou)
parent d93ff2f53f
commit c7e723030b
1 changed files with 1 additions and 1 deletions

View File

@ -590,7 +590,7 @@ OSXScreen::fakeMouseButton(ButtonID id, bool press)
EMouseButtonState state = press ? kMouseButtonDown : kMouseButtonUp;
LOG((CLOG_DEBUG1 "faking mouse button id: %d press: %s", id, press ? "pressed" : "released"));
LOG((CLOG_DEBUG1 "faking mouse button id: %d press: %s", index, press ? "pressed" : "released"));
MouseButtonEventMapType thisButtonMap = MouseButtonEventMap[index];
CGEventType type = thisButtonMap[state];