fix(wayland): keyboard input
This commit is contained in:
@@ -86,6 +86,11 @@ impl KeyboardInfo {
|
||||
0,
|
||||
);
|
||||
}
|
||||
if pressed {
|
||||
println!("Key {key} is being pressed with {state_components} modifiers");
|
||||
} else {
|
||||
println!("Key {key} is being released with {state_components} modifiers");
|
||||
}
|
||||
|
||||
let wl_key_state = if pressed {
|
||||
KeyState::Pressed
|
||||
|
||||
@@ -1024,7 +1024,7 @@ impl Backend for XDGBackend {
|
||||
&surface,
|
||||
KeyboardEvent::Key {
|
||||
key: key.abs() as u32,
|
||||
state: key < 0,
|
||||
state: key > 0,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user