shithub: choc

Download patch

ref: f2ee7829d74d721ba5db1657a1b85e38b7f6fc41
parent: 7504716edfe360c6a72d4d10eb4213d9cfe1f551
author: Simon Howard <fraggle@soulsphere.org>
date: Mon Apr 13 16:54:08 EDT 2015

setup: Invert both axes for Gameport adapter.

Directions were backwards for both X and Y axes when testing with an
original Gravis Gamepad.

--- a/src/setup/joystick.c
+++ b/src/setup/joystick.c
@@ -300,7 +300,9 @@
 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