From: <he...@us...> - 2004-07-20 17:59:23
|
Update of /cvsroot/gc-linux/linux/drivers/input In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21310 Modified Files: gamecube_si.c Log Message: Fixed wrong direction on Y axis. Index: gamecube_si.c =================================================================== RCS file: /cvsroot/gc-linux/linux/drivers/input/gamecube_si.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- gamecube_si.c 24 Jun 2004 19:55:42 -0000 1.2 +++ gamecube_si.c 20 Jul 2004 17:59:14 -0000 1.3 @@ -210,8 +210,8 @@ // axis // a stick - input_report_abs (&port[portNo].inputDev, ABS_X, raw[0] >> 8 & 0xFF); - input_report_abs (&port[portNo].inputDev, ABS_Y, raw[0] >> 0 & 0xFF); + input_report_abs (&port[portNo].inputDev, ABS_X, (raw[0] >> 8) & 0xFF); + input_report_abs (&port[portNo].inputDev, ABS_Y, -(raw[0] >> 0) & 0xFF); // b pad if (raw[0] & PAD_RIGHT) |