backend: add ButtonState
This commit is contained in:
parent
e22e6680b6
commit
0e1be7544f
17 changed files with 75 additions and 66 deletions
|
|
@ -1,6 +1,6 @@
|
|||
use {
|
||||
crate::{
|
||||
backend::{InputDeviceId, KeyState, ScrollAxis},
|
||||
backend::{ButtonState, InputDeviceId, KeyState, ScrollAxis},
|
||||
client::Client,
|
||||
fixed::Fixed,
|
||||
ifs::wl_seat::{
|
||||
|
|
@ -79,7 +79,7 @@ impl JaySeatEvents {
|
|||
});
|
||||
}
|
||||
|
||||
pub fn send_button(&self, seat: SeatId, time_usec: u64, button: u32, state: KeyState) {
|
||||
pub fn send_button(&self, seat: SeatId, time_usec: u64, button: u32, state: ButtonState) {
|
||||
self.client.event(Button {
|
||||
self_id: self.id,
|
||||
seat: seat.raw(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue