[quake3-commits] r2157 - trunk/code/sdl

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Sep 9 17:46:37 EDT 2011


Author: ztm
Date: 2011-09-09 17:46:37 -0400 (Fri, 09 Sep 2011)
New Revision: 2157

Modified:
   trunk/code/sdl/sdl_input.c
Log:
Changed the joystick axis to key remap to start at K_JOY17 (fits better with hat_keys and K_JOY16 is used by button).

Modified: trunk/code/sdl/sdl_input.c
===================================================================
--- trunk/code/sdl/sdl_input.c	2011-09-07 19:38:19 UTC (rev 2156)
+++ trunk/code/sdl/sdl_input.c	2011-09-09 21:46:37 UTC (rev 2157)
@@ -535,13 +535,12 @@
 static int joy_keys[16] = {
 	K_LEFTARROW, K_RIGHTARROW,
 	K_UPARROW, K_DOWNARROW,
-	K_JOY16, K_JOY17,
-	K_JOY18, K_JOY19,
-	K_JOY20, K_JOY21,
-	K_JOY22, K_JOY23,
-
-	K_JOY24, K_JOY25,
-	K_JOY26, K_JOY27
+	K_JOY17, K_JOY18,
+	K_JOY19, K_JOY20,
+	K_JOY21, K_JOY22,
+	K_JOY23, K_JOY24,
+	K_JOY25, K_JOY26,
+	K_JOY27, K_JOY28
 };
 
 // translate hat events into keypresses



More information about the quake3-commits mailing list