Thread (5 messages) 5 messages, 3 authors, 1999-08-27

Re: vger-2.3.15 on pmac

From: Franz Sirl <hidden>
Date: 1999-08-27 01:01:53

Possibly related (same subject, not in this thread)

Am Fre, 27 Aug 1999 schrieb Franz Sirl:
- convert adb_mouse_setup to new style (compiles, but not tested yet)
AAARGH! Everything has changed with the setup code. Use the following diff
for the adb_mouse_setup routine:
@@ -174,16 +193,22 @@ __initfunc(int adb_mouse_init(void))
  * option, which is about using ADB keyboard buttons to emulate
  * mouse buttons. -- paulus
  */
-__initfunc(void 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)
[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help