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)
committerJiri Kosina <jkosina@suse.cz>
Tue, 21 Feb 2012 10:52:20 +0000 (11:52 +0100)
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-magicmouse.c

index 2ab7175..7cf3ffe 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) {