summaryrefslogtreecommitdiff
path: root/src/state.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/state.h')
-rw-r--r--src/state.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state.h b/src/state.h
index 256858a..06e86ae 100644
--- a/src/state.h
+++ b/src/state.h
@@ -72,8 +72,8 @@ static inline void set_sval(struct mtdev_slot *slot, int ix, int value)
*/
struct mtdev_state {
- int has_ext_abs[MT_ABS_SIZE - 11];
- struct input_absinfo ext_abs[MT_ABS_SIZE - 11];
+ int has_ext_abs[MT_ABS_SIZE - LEGACY_API_NUM_MT_AXES];
+ struct input_absinfo ext_abs[MT_ABS_SIZE - LEGACY_API_NUM_MT_AXES];
struct mtdev_iobuf iobuf;
struct mtdev_evbuf inbuf;