• D
    HID: wiimote: Parse motion+ data · b17b57a5
    David Herrmann 提交于
    Motion+ reports rotation gyro data which we report to userspace as ABS_RX/Y/Z
    values. The device reports them either in fast or slow mode. We adjust the
    values to get a linear scale so userspace does not need to know about slow and
    fast mode.
    
    The motion+ also reports whether an extension is connected to it. We keep track
    of this value and reinitialize the extensions if an extension is plugged or
    unplugged.
    Signed-off-by: NDavid Herrmann <dh.herrmann@googlemail.com>
    Signed-off-by: NJiri Kosina <jkosina@suse.cz>
    b17b57a5
hid-wiimote-ext.c 12.0 KB