From: <he...@us...> - 2004-11-16 21:38:04
|
Update of /cvsroot/gc-linux/linux/drivers/input In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8234 Modified Files: gcn-si.c Log Message: Fix retrieval of analog joystick y position. (It was broken but didn't show up until a Thrustmaster joystick reporting values in range 0x00-0xff was used) Use same coding style for retrieval of x position. Index: gcn-si.c =================================================================== RCS file: /cvsroot/gc-linux/linux/drivers/input/gcn-si.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- gcn-si.c 15 Nov 2004 04:11:40 -0000 1.5 +++ gcn-si.c 16 Nov 2004 21:37:54 -0000 1.6 @@ -256,9 +256,9 @@ /* axis */ /* a stick */ input_report_abs(&port[portno].idev, ABS_X, - (raw[0] >> 8) & 0xFF); + raw[0] >> 8 & 0xFF); input_report_abs(&port[portno].idev, ABS_Y, - -(raw[0] >> 0) & 0xFF); + 0xFF - (raw[0] >> 0 & 0xFF)); /* b pad */ if (raw[0] & PAD_RIGHT) |