summaryrefslogtreecommitdiff
path: root/include/mtdev-mapping.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mtdev-mapping.h')
-rw-r--r--include/mtdev-mapping.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mtdev-mapping.h b/include/mtdev-mapping.h
index 0e47970..0cdb39d 100644
--- a/include/mtdev-mapping.h
+++ b/include/mtdev-mapping.h
@@ -37,6 +37,8 @@ extern "C" {
37 37
38#include <mtdev.h> 38#include <mtdev.h>
39 39
40#ifndef MTDEV_NO_LEGACY_API
41
40#define MTDEV_TOUCH_MAJOR 0 42#define MTDEV_TOUCH_MAJOR 0
41#define MTDEV_TOUCH_MINOR 1 43#define MTDEV_TOUCH_MINOR 1
42#define MTDEV_WIDTH_MAJOR 2 44#define MTDEV_WIDTH_MAJOR 2
@@ -80,6 +82,8 @@ static inline unsigned int mtdev_mt2abs(unsigned int mtcode)
80 return mtdev_map_mt2abs[mtcode]; 82 return mtdev_map_mt2abs[mtcode];
81} 83}
82 84
85#endif
86
83#ifdef __cplusplus 87#ifdef __cplusplus
84} 88}
85#endif 89#endif