Skip to content

Commit

Permalink
Update to glutin 0.25
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrubeck committed Oct 8, 2020
1 parent e9b62a2 commit 1a45c70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -16,7 +16,7 @@ path = "src/lib.rs"

[dependencies]
gl = "0.13.0"
glutin = "0.22.0"
glutin = "0.25.0"
pistoncore-input = "1.0.0"
pistoncore-window = "0.47.0"
shader_version = "0.7.0"
9 changes: 5 additions & 4 deletions src/lib.rs
Expand Up @@ -656,10 +656,10 @@ pub fn map_key(keycode: glutin::event::VirtualKeyCode) -> keyboard::Key {
K::Numpad8 => Key::NumPad8,
K::Numpad9 => Key::NumPad9,
K::NumpadComma => Key::NumPadDecimal,
K::Divide => Key::NumPadDivide,
K::Multiply => Key::NumPadMultiply,
K::Subtract => Key::NumPadMinus,
K::Add => Key::NumPadPlus,
K::NumpadDivide => Key::NumPadDivide,
K::NumpadMultiply => Key::NumPadMultiply,
K::NumpadSubtract => Key::NumPadMinus,
K::NumpadAdd => Key::NumPadPlus,
K::NumpadEnter => Key::NumPadEnter,
K::NumpadEquals => Key::NumPadEquals,
K::LShift => Key::LShift,
Expand Down Expand Up @@ -740,6 +740,7 @@ fn to_static_event(event: glutin::event::Event<UserEvent>) -> Option<glutin::eve
WE::ReceivedCharacter(c) => WE::ReceivedCharacter(c),
WE::Focused(b) => WE::Focused(b),
WE::KeyboardInput { device_id, input, is_synthetic } => WE::KeyboardInput { device_id, input, is_synthetic },
WE::ModifiersChanged(_) => return None, // XXX?
#[allow(deprecated)]
WE::CursorMoved { device_id, position, modifiers } => WE::CursorMoved { device_id, position, modifiers },
WE::CursorEntered { device_id } => WE::CursorEntered { device_id },
Expand Down

0 comments on commit 1a45c70

Please sign in to comment.