aboutsummaryrefslogtreecommitdiffstats
path: root/src/events.rs
diff options
context:
space:
mode:
authorPaul Rouget <me@paulrouget.com>2016-02-19 04:51:02 +0100
committerPaul Rouget <me@paulrouget.com>2016-02-26 11:08:46 +0100
commit68818751f42811472c50ea3f95a430c5c3be2dc9 (patch)
tree21197d5054d3f0ce8d2a524e625871c3c59edec4 /src/events.rs
parentbd605478d13ab07386c5e6c56434c84b5cce46db (diff)
downloadglutin-68818751f42811472c50ea3f95a430c5c3be2dc9.tar.gz
glutin-68818751f42811472c50ea3f95a430c5c3be2dc9.zip
TouchpadPressure event
Diffstat (limited to 'src/events.rs')
-rw-r--r--src/events.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/events.rs b/src/events.rs
index 27ed8b7..ecc1041 100644
--- a/src/events.rs
+++ b/src/events.rs
@@ -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,