tablet: implement version 2
This commit is contained in:
parent
1d017ec2c2
commit
dee0066f1a
25 changed files with 426 additions and 31 deletions
|
|
@ -39,9 +39,9 @@ use {
|
|||
wl_seat::{
|
||||
Dnd, NodeSeatState, SeatId, WlSeatGlobal,
|
||||
tablet::{
|
||||
PadButtonState, TabletPad, TabletPadGroup, TabletPadRing, TabletPadStrip,
|
||||
TabletRingEventSource, TabletStripEventSource, TabletTool, TabletToolChanges,
|
||||
ToolButtonState,
|
||||
PadButtonState, TabletPad, TabletPadDial, TabletPadGroup, TabletPadRing,
|
||||
TabletPadStrip, TabletRingEventSource, TabletStripEventSource, TabletTool,
|
||||
TabletToolChanges, ToolButtonState,
|
||||
},
|
||||
text_input::TextInputConnection,
|
||||
wl_pointer::PendingScroll,
|
||||
|
|
@ -2016,6 +2016,16 @@ impl Node for WlSurface {
|
|||
pad.surface_strip(self, strip, source, position, time_usec);
|
||||
}
|
||||
|
||||
fn node_on_tablet_pad_dial(
|
||||
&self,
|
||||
pad: &Rc<TabletPad>,
|
||||
dial: &Rc<TabletPadDial>,
|
||||
value120: i32,
|
||||
time_usec: u64,
|
||||
) {
|
||||
pad.surface_dial(self, dial, value120, time_usec);
|
||||
}
|
||||
|
||||
fn node_on_tablet_tool_leave(&self, tool: &Rc<TabletTool>, time_usec: u64) {
|
||||
tool.surface_leave(self, time_usec);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue