diff options
author | Stefan Achatz <stefan_achatz@web.de> | 2013-04-07 01:08:44 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-04-08 04:33:13 -0400 |
commit | b42065f31704686e69002343403f45fff863a120 (patch) | |
tree | 0cf2db09a4e7ac53807bc95ee4a9867f8d91dcd7 /drivers/hid/hid-roccat-kone.c | |
parent | 02060045cd93b886381b02ec816e312f19d5e505 (diff) |
HID: roccat: added media key support for Kone
Kone now reports media key events through it's chardev to userspace.
Signed-off-by: Stefan Achatz <erazor_de@users.sourceforge.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-roccat-kone.c')
-rw-r--r-- | drivers/hid/hid-roccat-kone.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hid/hid-roccat-kone.c b/drivers/hid/hid-roccat-kone.c index 9ce2d0b615a4..7fae070788fa 100644 --- a/drivers/hid/hid-roccat-kone.c +++ b/drivers/hid/hid-roccat-kone.c | |||
@@ -818,8 +818,9 @@ static void kone_report_to_chrdev(struct kone_device const *kone, | |||
818 | (uint8_t *)&roccat_report); | 818 | (uint8_t *)&roccat_report); |
819 | break; | 819 | break; |
820 | case kone_mouse_event_call_overlong_macro: | 820 | case kone_mouse_event_call_overlong_macro: |
821 | case kone_mouse_event_multimedia: | ||
821 | if (event->value == kone_keystroke_action_press) { | 822 | if (event->value == kone_keystroke_action_press) { |
822 | roccat_report.event = kone_mouse_event_call_overlong_macro; | 823 | roccat_report.event = event->event; |
823 | roccat_report.value = kone->actual_profile; | 824 | roccat_report.value = kone->actual_profile; |
824 | roccat_report.key = event->macro_key; | 825 | roccat_report.key = event->macro_key; |
825 | roccat_report_event(kone->chrdev_minor, | 826 | roccat_report_event(kone->chrdev_minor, |