TouchpadPressure event

This commit is contained in:
Paul Rouget 2016-02-19 04:51:02 +01:00
parent bd605478d1
commit 68818751f4
3 changed files with 16 additions and 6 deletions

View file

@ -36,6 +36,13 @@ pub enum Event {
/// An event from the mouse has been received.
MouseInput(ElementState, MouseButton),
/// Touchpad pressure event.
///
/// At the moment, only supported on Apple forcetouch-capable macbooks.
/// The parameters are: pressure level (value between 0 and 1 representing how hard the touchpad
/// is being pressed) and stage (integer representing the click level).
TouchpadPressure(f32, i64),
/// The event loop was woken up by another thread.
Awakened,