mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 21:30:03 -04:00
Implement ReceivedCharacter on win32
This commit is contained in:
@@ -321,6 +321,14 @@ extern "stdcall" fn callback(window: ffi::HWND, msg: ffi::UINT,
|
||||
0
|
||||
},
|
||||
|
||||
ffi::WM_CHAR => {
|
||||
use std::mem;
|
||||
use events::ReceivedCharacter;
|
||||
let chr: char = unsafe { mem::transmute(wparam) };
|
||||
send_event(window, ReceivedCharacter(chr));
|
||||
0
|
||||
},
|
||||
|
||||
ffi::WM_MOUSEMOVE => {
|
||||
use CursorPositionChanged;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user