version 4.3.2
fix PIKbdListener wheel on Windows
This commit is contained in:
@@ -360,8 +360,7 @@ void PIKbdListener::readKeyboard() {
|
||||
if (mer.dwEventFlags & MOUSE_WHEELED) {
|
||||
memcpy((void *)(&we), (const void *)(&me), sizeof(me));
|
||||
we.action = MouseWheel;
|
||||
we.direction = short((mer.dwButtonState >> 8) & 0xFFFF) > 0;
|
||||
// piCout << "wheel" << we.direction;
|
||||
we.direction = short((mer.dwButtonState >> 16) & 0xFFFF) > 0;
|
||||
wheelEvent(we, kbddata_);
|
||||
break;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user