Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(476)

Unified Diff: ui/events/ozone/evdev/tablet_event_converter_evdev.h

Issue 1456063003: ozone: evdev: Fix tilt calculation for tablets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix some parens Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/events/ozone/evdev/tablet_event_converter_evdev.h
diff --git a/ui/events/ozone/evdev/tablet_event_converter_evdev.h b/ui/events/ozone/evdev/tablet_event_converter_evdev.h
index 6a0f28a8ade3a44e08ecbce4623e1ec546c93121..b37391b8d9d88ab378633a4e8b3f4fe0ea4fc773 100644
--- a/ui/events/ozone/evdev/tablet_event_converter_evdev.h
+++ b/ui/events/ozone/evdev/tablet_event_converter_evdev.h
@@ -63,11 +63,14 @@ class EVENTS_OZONE_EVDEV_EXPORT TabletEventConverterEvdev
int x_abs_range_;
int y_abs_range_;
+ int tilt_x_min_;
+ int tilt_x_range_;
+ int tilt_y_min_;
+ int tilt_y_range_;
+
float tilt_x_ = 0.0f;
float tilt_y_ = 0.0f;
float pressure_ = 0.0f;
- int tilt_x_max_;
- int tilt_y_max_;
int pressure_max_;
// BTN_TOOL_ code for the active device

Powered by Google App Engine
This is Rietveld 408576698