summaryrefslogtreecommitdiff
path: root/tmk_core/common/mousekey.h
diff options
context:
space:
mode:
authordbroqua2017-04-29 15:04:01 +0200
committerdbroqua2017-04-29 15:04:01 +0200
commit7180e195e84aabf252fcadb2852644417ac1d663 (patch)
tree2a314ac51bf1399c09a394e76ba81a56c072e7d6 /tmk_core/common/mousekey.h
parent838aae164568a1092ae269267f8d8772d3aba781 (diff)
parent584b804ee33d53102fef3b8cdd045bca4c47bf26 (diff)
Merge branch 'master' of https://github.com/Dbroqua/qmk_firmware
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 6eede06b4..9338d0af7 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