mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
remove forcetouch support
This commit is contained in:
parent
019fdaa1bd
commit
e7c754fb64
12 changed files with 7 additions and 240 deletions
|
@ -445,23 +445,10 @@ pub enum CompositorEvent {
|
|||
MouseMoveEvent(Option<Point2D<f32>>, Option<UntrustedNodeAddress>),
|
||||
/// A touch event was generated with a touch ID and location.
|
||||
TouchEvent(TouchEventType, TouchId, Point2D<f32>, Option<UntrustedNodeAddress>),
|
||||
/// Touchpad pressure event
|
||||
TouchpadPressureEvent(Point2D<f32>, f32, TouchpadPressurePhase, Option<UntrustedNodeAddress>),
|
||||
/// A key was pressed.
|
||||
KeyEvent(Option<char>, Key, KeyState, KeyModifiers),
|
||||
}
|
||||
|
||||
/// Touchpad pressure phase for `TouchpadPressureEvent`.
|
||||
#[derive(Clone, Copy, Deserialize, MallocSizeOf, PartialEq, Serialize)]
|
||||
pub enum TouchpadPressurePhase {
|
||||
/// Pressure before a regular click.
|
||||
BeforeClick,
|
||||
/// Pressure after a regular click.
|
||||
AfterFirstClick,
|
||||
/// Pressure after a "forceTouch" click
|
||||
AfterSecondClick,
|
||||
}
|
||||
|
||||
/// Requests a TimerEvent-Message be sent after the given duration.
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub struct TimerEventRequest(pub IpcSender<TimerEvent>, pub TimerSource, pub TimerEventId, pub MsDuration);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue