foxygit / doom Log in
commit 3ce64ca059a9eb4d18a9978290e3d23e7262b2dd
Author:     Jonathan Dowland <jon@dow.land>
AuthorDate: Tue Oct 10 22:18:17 2017 +0100
Commit:     Jonathan Dowland <jon@dow.land>
CommitDate: Tue Oct 10 22:18:17 2017 +0100

    address some minor review comments

    (from myself)
---
 src/d_event.h        | 1 +
 src/setup/joystick.c | 4 +---
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/d_event.h b/src/d_event.h
index b3543507..7cc390a9 100644
--- a/src/d_event.h
+++ b/src/d_event.h
@@ -59,6 +59,7 @@ typedef enum
     //    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
diff --git a/src/setup/joystick.c b/src/setup/joystick.c
index 81cdf2cb..61699f1a 100644
--- a/src/setup/joystick.c
+++ b/src/setup/joystick.c
@@ -1044,9 +1044,7 @@ void ConfigJoystick(void)
                    NULL);
     }

-    TXT_AddWidgets(window,
-               TXT_NewSeparator("Buttons"),
-               NULL);
+    TXT_AddWidget(window, TXT_NewSeparator("Buttons"));

     AddJoystickControl(window, "Fire/Attack", &joybfire);
     AddJoystickControl(window, "Strafe Left", &joybstrafeleft);