summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-ezkey.c
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@googlemail.com>2011-09-06 13:50:29 +0200
committerJiri Kosina <jkosina@suse.cz>2011-09-07 13:25:16 +0200
commitefcf91887419ec37ca564073a9fe30db49fe6c7c (patch)
treebb27e060cfb3ac8b9401eef9b828f7ed074b2c3b /drivers/hid/hid-ezkey.c
parentHID: wiimote: Add accelerometer input device (diff)
downloadlinux-efcf91887419ec37ca564073a9fe30db49fe6c7c.tar.xz
linux-efcf91887419ec37ca564073a9fe30db49fe6c7c.zip
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 'drivers/hid/hid-ezkey.c')
0 files changed, 0 insertions, 0 deletions