Add ModifiersState to keyboard::Event::Input

This commit is contained in:
Héctor Ramón Jiménez 2019-12-06 04:01:48 +01:00
parent 31b0b7f580
commit 65cac922b3
6 changed files with 44 additions and 3 deletions

View file

@ -319,6 +319,7 @@ pub trait Application: Sized {
winit::event::KeyboardInput {
virtual_keycode: Some(virtual_keycode),
state,
modifiers,
..
},
..
@ -334,6 +335,7 @@ pub trait Application: Sized {
events.push(Event::Keyboard(keyboard::Event::Input {
key_code: conversion::key_code(virtual_keycode),
state: conversion::button_state(state),
modifiers: conversion::modifiers_state(modifiers),
}));
}
WindowEvent::CloseRequested => {