shithub: choc

Download patch

ref: 3ce64ca059a9eb4d18a9978290e3d23e7262b2dd
parent: 41a22dcb13d8f831143a97b901388865c89b1dc2
author: Jonathan Dowland <jon@dow.land>
date: Tue Oct 10 18:18:17 EDT 2017

address some minor review comments

(from myself)

--- a/src/d_event.h
+++ b/src/d_event.h
@@ -59,6 +59,7 @@
     //    data2: X axis mouse movement (turn).
     //    data3: Y axis mouse movement (forward/backward).
     //    data4: Third axis mouse movement (strafe).
+    //    data5: Fourth axis mouse movement (look)
     ev_joystick,
 
     // Quit event. Triggered when the user clicks the "close" button
--- a/src/setup/joystick.c
+++ b/src/setup/joystick.c
@@ -1044,9 +1044,7 @@
                    NULL);
     }
 
-    TXT_AddWidgets(window,
-               TXT_NewSeparator("Buttons"),
-               NULL);
+    TXT_AddWidget(window, TXT_NewSeparator("Buttons"));
 
     AddJoystickControl(window, "Fire/Attack", &joybfire);
     AddJoystickControl(window, "Strafe Left", &joybstrafeleft);