foxygit / doom Log in
commit f2ee7829d74d721ba5db1657a1b85e38b7f6fc41
Author:     Simon Howard <fraggle@soulsphere.org>
AuthorDate: Mon Apr 13 20:54:08 2015 -0400
Commit:     Simon Howard <fraggle@soulsphere.org>
CommitDate: Mon Apr 13 20:54:08 2015 -0400

    setup: Invert both axes for Gameport adapter.

    Directions were backwards for both X and Y axes when testing with an
    original Gravis Gamepad.
---
 src/setup/joystick.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/setup/joystick.c b/src/setup/joystick.c
index 09dbb4a1..664f5701 100644
--- a/src/setup/joystick.c
+++ b/src/setup/joystick.c
@@ -300,7 +300,9 @@ static const joystick_config_t buffalo_classic_controller[] =
 static const joystick_config_t pc_gameport_controller[] =
 {
     {"joystick_x_axis",        0},
+    {"joystick_x_invert",      1},
     {"joystick_y_axis",        1},
+    {"joystick_y_invert",      1},
     // Button configuration is the default as used for Vanilla Doom,
     // Heretic and Hexen. When playing with a Gravis Gamepad, this
     // layout should also be vaguely similar to the standard layout