aboutsummaryrefslogtreecommitdiffstats
path: root/halext/include/touchpad.h
diff options
context:
space:
mode:
Diffstat (limited to 'halext/include/touchpad.h')
-rw-r--r--halext/include/touchpad.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/halext/include/touchpad.h b/halext/include/touchpad.h
index bf17edf0..5991b6ae 100644
--- a/halext/include/touchpad.h
+++ b/halext/include/touchpad.h
@@ -59,22 +59,27 @@ extern "C" {
uint16_t tpReadX(void);
uint16_t tpReadY(void);
+ #if TOUCHPAD_PRESSURE
+
+ uint16_t tpReadZ(void);
+
+ #endif
+
#else
#define tpInit(tp) tp_lld_init(tp)
#define tpReadX() tp_lld_read_x()
#define tpReadY() tp_lld_read_y()
-#endif
+ #if TOUCHPAD_PRESSURE
+ #define tpReadZ() tp_lld_read_z()
-
-#if TOUCHPAD_PRESSURE
-
- uint16_t tpReadZ(void);
+ #endif
#endif
+
#ifdef __cplusplus
}
#endif