backend: add ButtonState
This commit is contained in:
parent
e22e6680b6
commit
0e1be7544f
17 changed files with 75 additions and 66 deletions
|
|
@ -1,7 +1,8 @@
|
|||
use {
|
||||
crate::{
|
||||
backend::{
|
||||
BackendColorSpace, BackendConnectorState, BackendEotfs, HardwareCursor, KeyState, Mode,
|
||||
BackendColorSpace, BackendConnectorState, BackendEotfs, ButtonState, HardwareCursor,
|
||||
Mode,
|
||||
},
|
||||
client::ClientId,
|
||||
cmm::cmm_description::ColorDescription,
|
||||
|
|
@ -1685,13 +1686,13 @@ impl Node for OutputNode {
|
|||
seat: &Rc<WlSeatGlobal>,
|
||||
_time_usec: u64,
|
||||
button: u32,
|
||||
state: KeyState,
|
||||
state: ButtonState,
|
||||
_serial: u64,
|
||||
) {
|
||||
if button != BTN_LEFT {
|
||||
return;
|
||||
}
|
||||
if state != KeyState::Pressed {
|
||||
if state != ButtonState::Pressed {
|
||||
self.pointer_down.remove(&seat.id());
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue