diff options
author | Adam YH Lee <adam.yh.lee@gmail.com> | 2017-04-16 15:19:20 -0700 |
---|---|---|
committer | Adam YH Lee <adam.yh.lee@gmail.com> | 2017-04-16 15:19:20 -0700 |
commit | 857600aa4b3a6e46afe17b689ab7cedf7dd4688e (patch) | |
tree | 079ebd7369a2034c16178deadeda26ffa04e717b /tmk_core/common/mousekey.h | |
parent | 22afddb8e8b92873b0adcb0feb09061077e7b709 (diff) | |
parent | b5e8327755100252060afbd54e16322522b4f1e9 (diff) | |
download | firmware-857600aa4b3a6e46afe17b689ab7cedf7dd4688e.tar.gz firmware-857600aa4b3a6e46afe17b689ab7cedf7dd4688e.tar.bz2 firmware-857600aa4b3a6e46afe17b689ab7cedf7dd4688e.zip |
Merge branch 'master' into dev
Diffstat (limited to 'tmk_core/common/mousekey.h')
-rw-r--r-- | tmk_core/common/mousekey.h | 13 |
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 |