mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-04-14 11:44:16 +00:00
emuThird: Use xf86SetIntOption, not xf86SetBoolOption for integer values
Signed-off-by: Jools Wills <jools@oxfordinspire.co.uk> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
committed by
Peter Hutterer
parent
49693892ce
commit
2aba790ed3
@@ -279,11 +279,11 @@ Evdev3BEmuPreInit(InputInfoPtr pInfo)
|
||||
emu3B->timeout = xf86SetIntOption(pInfo->options,
|
||||
"EmulateThirdButtonTimeout",
|
||||
1000);
|
||||
emu3B->button = xf86SetBoolOption(pInfo->options,
|
||||
emu3B->button = xf86SetIntOption(pInfo->options,
|
||||
"EmulateThirdButtonButton",
|
||||
3);
|
||||
/* FIXME: this should be auto-configured based on axis ranges */
|
||||
emu3B->threshold = xf86SetBoolOption(pInfo->options,
|
||||
emu3B->threshold = xf86SetIntOption(pInfo->options,
|
||||
"EmulateThirdButtonMoveThreshold",
|
||||
DEFAULT_MOVE_THRESHOLD);
|
||||
/* allocate now so we don't allocate in the signal handler */
|
||||
|
||||
Reference in New Issue
Block a user