Skip to content

Commit

Permalink
Merge pull request rust-windowing#3 from rye/fix-windows-build
Browse files Browse the repository at this point in the history
windows: Fix build
  • Loading branch information
murarth authored Jan 22, 2020
2 parents 785d83e + 92e10dd commit eb1c08d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/platform_impl/windows/event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1793,10 +1793,11 @@ unsafe extern "system" fn thread_event_target_callback<T: 'static>(

winuser::WM_INPUT => {
use crate::event::{
DeviceEvent::{Button, Key, ModifiersChanged, Motion, MouseMotion, MouseWheel},
DeviceEvent::{Button, Key, Motion, MouseMotion, MouseWheel},
ElementState::{Pressed, Released},
MouseScrollDelta::LineDelta,
VirtualKeyCode,
WindowEvent::ModifiersChanged,
};

if let Some(data) = raw_input::get_raw_input_data(lparam as _) {
Expand Down Expand Up @@ -1911,8 +1912,8 @@ unsafe extern "system" fn thread_event_target_callback<T: 'static>(
let new_modifiers_state =
subclass_input.modifiers_state.filter_out_altgr().into();
if new_modifiers_state != old_modifiers_state {
subclass_input.send_event(Event::DeviceEvent {
device_id,
subclass_input.send_event(Event::WindowEvent {
window_id: RootWindowId(WindowId(window)),
event: ModifiersChanged(new_modifiers_state),
});
}
Expand Down

0 comments on commit eb1c08d

Please sign in to comment.