aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends/wininput.c
diff options
context:
space:
mode:
Diffstat (limited to 'backends/wininput.c')
-rw-r--r--backends/wininput.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/backends/wininput.c b/backends/wininput.c
index 6d21a76..1d1c85b 100644
--- a/backends/wininput.c
+++ b/backends/wininput.c
@@ -149,6 +149,11 @@ static int wininput_configure(char* option, char* value){
cfg.wheel = strtoul(next_token, NULL, 0);
}
+ if(cfg.wheel > cfg.wheel_max){
+ LOG("Mouse wheel initial value out of range");
+ return 1;
+ }
+
return 0;
}
else if(!strcmp(option, "wheeldelta")){