version 4.3.2

fix PIKbdListener wheel on Windows
This commit is contained in:
2024-11-02 14:15:09 +03:00
parent 9f1d23ad8e
commit df75efe881
4 changed files with 5 additions and 6 deletions

View File

@@ -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 {