aboutsummaryrefslogtreecommitdiff
path: root/arch/sh/drivers
diff options
context:
space:
mode:
authorDavid Herrmann2011-09-06 13:50:29 +0200
committerJiri Kosina2011-09-07 13:25:16 +0200
commitefcf91887419ec37ca564073a9fe30db49fe6c7c (patch)
treebb27e060cfb3ac8b9401eef9b828f7ed074b2c3b /arch/sh/drivers
parent98a558ae35930e02dfc2dd0a124c93ad39b0828d (diff)
HID: wiimote: Parse accelerometer data
Add parser functions for accelerometer data reported by the wiimote. The data is almost always reported in the same format, so we can use a single handler. However, an own handler function is created for each DRM-mode because when IR and extension support is added, each of them is parsed differently. Also set the appropriate DRM including accelerometer data on DRM requests to actually retrieve the accelerometer data. Data is reported to userspace as ABS_RX/Y/Z values. The values are between -500 and 500 and 0 means no acceleration. See also userspace xwiimote library for data parsing. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'arch/sh/drivers')
0 files changed, 0 insertions, 0 deletions