Add moved events for win32

This commit is contained in:
Tomaka17 2014-07-27 20:08:31 +02:00
parent 1e615b59a6
commit 6133e17b9a
3 changed files with 12 additions and 0 deletions

View file

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