patch-2.3.18 linux/drivers/char/adbmouse.c
Next file: linux/drivers/char/buz.c
Previous file: linux/drivers/char/Makefile
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Wed Sep 8 10:59:07 1999
- Orig file:
v2.3.17/linux/drivers/char/adbmouse.c
- Orig date:
Tue Aug 31 17:29:13 1999
diff -u --recursive --new-file v2.3.17/linux/drivers/char/adbmouse.c linux/drivers/char/adbmouse.c
@@ -174,16 +174,22 @@
* option, which is about using ADB keyboard buttons to emulate
* mouse buttons. -- paulus
*/
-void __init adb_mouse_setup(char *str, int *ints)
+static int __init adb_mouse_setup(char *str)
{
+ int ints[4];
+
+ str = get_options(str, ARRAY_SIZE(ints), ints);
if (ints[0] >= 1) {
- adb_emulate_buttons = ints[1] > 0;
- if (ints[1] > 1)
- adb_button2_keycode = ints[1];
+ adb_emulate_buttons = ints[1];
if (ints[0] >= 2)
- adb_button3_keycode = ints[2];
+ adb_button2_keycode = ints[2];
+ if (ints[0] >= 3)
+ adb_button3_keycode = ints[3];
}
+ return 1;
}
+
+__setup("adb_buttons=", adb_mouse_setup);
#ifdef MODULE
int init_module(void)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)