Add moved events for win32
This commit is contained in:
parent
1e615b59a6
commit
6133e17b9a
3 changed files with 12 additions and 0 deletions
|
|
@ -299,6 +299,14 @@ extern "stdcall" fn callback(window: ffi::HWND, msg: ffi::UINT,
|
|||
0
|
||||
},
|
||||
|
||||
ffi::WM_MOVE => {
|
||||
use events::Moved;
|
||||
let x = ffi::LOWORD(lparam as ffi::DWORD) as uint;
|
||||
let y = ffi::HIWORD(lparam as ffi::DWORD) as uint;
|
||||
send_event(window, Moved(x, y));
|
||||
0
|
||||
},
|
||||
|
||||
ffi::WM_CHAR => {
|
||||
use std::mem;
|
||||
use events::ReceivedCharacter;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue