aboutsummaryrefslogtreecommitdiffstats
path: root/include/ginput/lld/mouse.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-11-16 01:58:37 +1000
committerinmarket <andrewh@inmarket.com.au>2013-11-16 01:58:37 +1000
commit3c3bab5d8275a93e12d8b37526811f73a2283195 (patch)
tree1bcd2a70cdf331cdf6a7473ceb71f321adb5239f /include/ginput/lld/mouse.h
parenta3935c653e2eef4f9cffc86b7fac695f7e7f8987 (diff)
downloaduGFX-3c3bab5d8275a93e12d8b37526811f73a2283195.tar.gz
uGFX-3c3bab5d8275a93e12d8b37526811f73a2283195.tar.bz2
uGFX-3c3bab5d8275a93e12d8b37526811f73a2283195.zip
Add support for mouse drivers that do their own orientation mapping as the display rotation changes.
Diffstat (limited to 'include/ginput/lld/mouse.h')
-rw-r--r--include/ginput/lld/mouse.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ginput/lld/mouse.h b/include/ginput/lld/mouse.h
index 4da338dc..a3056519 100644
--- a/include/ginput/lld/mouse.h
+++ b/include/ginput/lld/mouse.h
@@ -66,6 +66,10 @@
#define GINPUT_MOUSE_CLICK_TIME 700
#endif
+// true/false - Whether the mouse driver internally handles screen rotation
+#ifndef GINPUT_MOUSE_NO_ROTATION
+ #define GINPUT_MOUSE_NO_ROTATION FALSE
+#endif
typedef struct MouseReading_t {
coord_t x, y, z;