mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fixes mouseinput event ignoring cursor_grabbed being true
This commit is contained in:
parent
1567e77a39
commit
20ec77eeb0
@ -509,10 +509,13 @@ impl Window {
|
|||||||
},
|
},
|
||||||
glutin::WindowEvent::ReceivedCharacter(c) => events.push(Event::Char(c)),
|
glutin::WindowEvent::ReceivedCharacter(c) => events.push(Event::Char(c)),
|
||||||
glutin::WindowEvent::MouseInput { button, state, .. } => {
|
glutin::WindowEvent::MouseInput { button, state, .. } => {
|
||||||
if let Some(game_inputs) = Window::map_input(
|
if let (true, Some(game_inputs)) = (
|
||||||
KeyMouse::Mouse(button),
|
cursor_grabbed,
|
||||||
controls,
|
Window::map_input(
|
||||||
remapping_keybindings,
|
KeyMouse::Mouse(button),
|
||||||
|
controls,
|
||||||
|
remapping_keybindings,
|
||||||
|
),
|
||||||
) {
|
) {
|
||||||
for game_input in game_inputs {
|
for game_input in game_inputs {
|
||||||
events.push(Event::InputUpdate(
|
events.push(Event::InputUpdate(
|
||||||
|
Loading…
Reference in New Issue
Block a user