Rework MouseWheel event and fix the values on win32
This commit is contained in:
parent
c752142e04
commit
d9f0d92584
4 changed files with 9 additions and 6 deletions
|
|
@ -114,8 +114,9 @@ pub unsafe extern "system" fn callback(window: winapi::HWND, msg: winapi::UINT,
|
|||
|
||||
let value = (wparam >> 16) as i16;
|
||||
let value = value as i32;
|
||||
let value = value as f64 / winapi::WHEEL_DELTA as f64;
|
||||
|
||||
send_event(window, MouseWheel(value));
|
||||
send_event(window, MouseWheel(0.0, value));
|
||||
|
||||
0
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue