Revision: 93 http://svn.sourceforge.net/mactel-linux/?rev=93&view=rev Author: nboichat Date: 2007-03-21 04:02:39 -0700 (Wed, 21 Mar 2007)
Log Message: ----------- Allow applesmc input device to be used as a joystick in neverball (needs x-axis inversion). Added Paths: ----------- trunk/kernel/mactel-patches-2.6.21/0009-applesmc_joydev.patch Added: trunk/kernel/mactel-patches-2.6.21/0009-applesmc_joydev.patch =================================================================== --- trunk/kernel/mactel-patches-2.6.21/0009-applesmc_joydev.patch (rev 0) +++ trunk/kernel/mactel-patches-2.6.21/0009-applesmc_joydev.patch 2007-03-21 11:02:39 UTC (rev 93) @@ -0,0 +1,30 @@ +Fix y axis on applesmc input device. + +From: Nicolas Boichat <[EMAIL PROTECTED]> + + +--- + + drivers/hwmon/applesmc.c | 2 ++ + 1 files changed, 2 insertions(+), 0 deletions(-) + +diff --git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c +index 4060667..581ed3e 100644 +--- a/drivers/hwmon/applesmc.c ++++ b/drivers/hwmon/applesmc.c +@@ -349,6 +349,7 @@ static void applesmc_calibrate(void) + { + applesmc_read_motion_sensor(SENSOR_X, &rest_x); + applesmc_read_motion_sensor(SENSOR_Y, &rest_y); ++ rest_x = -rest_x; + } + + static void applesmc_mousedev_poll(unsigned long unused) +@@ -366,6 +367,7 @@ static void applesmc_mousedev_poll(unsigned long unused) + if (applesmc_read_motion_sensor(SENSOR_Y, &y)) + goto out; + ++ x = -x; + input_report_abs(applesmc_idev, ABS_X, x - rest_x); + input_report_abs(applesmc_idev, ABS_Y, y - rest_y); + input_sync(applesmc_idev); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Mactel-linux-devel mailing list Mactel-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mactel-linux-devel