]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
HID: hid-magicmouse: Add pointer and buttonpad properties for Magic Trackpad
authorChase Douglas <chase.douglas@canonical.com>
Tue, 14 Feb 2012 04:12:31 +0000 (20:12 -0800)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 3 Jan 2013 03:32:43 +0000 (03:32 +0000)
commit 503f7d53b368c8e4e13a7756220c0536fcf1a034 upstream.

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/hid/hid-magicmouse.c

index 2ab71758e2e22940e0c53c1873a32a03152a9808..7cf3ffe4b7bc26f4eeda3f2167c1f88f6e46e29b 100644 (file)
@@ -418,6 +418,8 @@ static void magicmouse_setup_input(struct input_dev *input, struct hid_device *h
                __set_bit(BTN_TOOL_TRIPLETAP, input->keybit);
                __set_bit(BTN_TOOL_QUADTAP, input->keybit);
                __set_bit(BTN_TOUCH, input->keybit);
+               __set_bit(INPUT_PROP_POINTER, input->propbit);
+               __set_bit(INPUT_PROP_BUTTONPAD, input->propbit);
        }
 
        if (report_touches) {