summaryrefslogtreecommitdiffstats
path: root/tmk_core/common/mousekey.h
diff options
context:
space:
mode:
authorAdam YH Lee <adam.yh.lee@gmail.com>2017-04-16 15:20:31 -0700
committerAdam YH Lee <adam.yh.lee@gmail.com>2017-04-16 15:20:31 -0700
commit9d4050586d24cdfbe5257c094fbb6c1be51f176f (patch)
tree8cf123260835331d75d02c5b15d0fb39ceba3256 /tmk_core/common/mousekey.h
parent7e930626eb5f69d6a4de0594c6f5930334d801f8 (diff)
parentb5e8327755100252060afbd54e16322522b4f1e9 (diff)
Merge branch 'master' into layouts/adam-lee
Diffstat (limited to 'tmk_core/common/mousekey.h')
-rw-r--r--tmk_core/common/mousekey.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/tmk_core/common/mousekey.h b/tmk_core/common/mousekey.h
index 6eede06b44..9338d0af77 100644
--- a/tmk_core/common/mousekey.h
+++ b/tmk_core/common/mousekey.h
@@ -23,8 +23,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* max value on report descriptor */
-#define MOUSEKEY_MOVE_MAX 127
-#define MOUSEKEY_WHEEL_MAX 127
+#ifndef MOUSEKEY_MOVE_MAX
+ #define MOUSEKEY_MOVE_MAX 127
+#elif MOUSEKEY_MOVE_MAX > 127
+ #error MOUSEKEY_MOVE_MAX needs to be smaller than 127
+#endif
+
+#ifndef MOUSEKEY_WHEEL_MAX
+ #define MOUSEKEY_WHEEL_MAX 127
+#elif MOUSEKEY_WHEEL_MAX > 127
+ #error MOUSEKEY_WHEEL_MAX needs to be smaller than 127
+#endif
#ifndef MOUSEKEY_MOVE_DELTA
#define MOUSEKEY_MOVE_DELTA 5