1
0
Fork 0
forked from wry/wry

input: decouple tablet contracts from wayland seat

This commit is contained in:
kossLAN 2026-05-29 12:42:59 -04:00
parent e996d9528a
commit 59e4e6dfb7
No known key found for this signature in database
6 changed files with 201 additions and 155 deletions

View file

@ -10,16 +10,7 @@ use {
fixed::Fixed,
format::Format,
gfx_api::{FdSync, GfxApi, GfxFramebuffer},
ifs::{
wl_output::OutputId,
wl_seat::{
tablet::{
PadButtonState, TabletInit, TabletPadId, TabletPadInit, TabletRingEventSource,
TabletStripEventSource, TabletToolChanges, TabletToolId, TabletToolInit,
ToolButtonState,
},
},
},
ifs::wl_output::OutputId,
libinput::consts::DeviceCapability,
utils::static_text::StaticText,
video::drm::{
@ -43,8 +34,12 @@ use {
pub mod transaction;
pub use jay_input_types::{
AXIS_120, AxisSource, ButtonState, InputDeviceAccelProfile, InputDeviceClickMethod, KeyState,
Leds, ScrollAxis,
AXIS_120, AxisSource, ButtonState, InputDeviceAccelProfile, InputDeviceClickMethod,
InputDeviceGroupId, InputDeviceGroupIds, KeyState, Leds, PadButtonState, ScrollAxis, TabletId,
TabletIds, TabletInit, TabletPadGroupInit, TabletPadId, TabletPadIds, TabletPadInit,
TabletRingEventSource, TabletStripEventSource, TabletTool2dChange, TabletToolCapability,
TabletToolChanges, TabletToolId, TabletToolIds, TabletToolInit, TabletToolPositionChange,
TabletToolType, TabletToolWheelChange, ToolButtonState,
};
linear_ids!(ConnectorIds, ConnectorId);
@ -209,8 +204,6 @@ pub trait HardwareCursor: Debug {
pub type TransformMatrix = [[f64; 2]; 2];
linear_ids!(InputDeviceGroupIds, InputDeviceGroupId, usize);
pub trait InputDevice {
fn id(&self) -> InputDeviceId;
fn removed(&self) -> bool;