Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68662
b: refs/heads/master
c: c01d50d
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Kosina committed Oct 14, 2007
1 parent 2639207 commit 9243938
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 82eb121989c06e3de33b56ade1fa52c9e86c014e
refs/heads/master: c01d50d181f074a60bf3ed54eb055ce1679afb98
8 changes: 8 additions & 0 deletions trunk/drivers/hid/hid-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,11 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
set_bit(KEY_VOLUMEDOWN, input->keybit);
}

if (usage->type == EV_KEY) {
set_bit(EV_MSC, input->evbit);
set_bit(MSC_SCAN, input->mscbit);
}

hid_resolv_event(usage->type, usage->code);

dbg_hid_line("\n");
Expand Down Expand Up @@ -1043,6 +1048,9 @@ void hidinput_hid_event(struct hid_device *hid, struct hid_field *field, struct
input_event(input, usage->type, last_key, 0);
}
}
/* report the usage code as scancode if the key status has changed */
if (usage->type == EV_KEY && !!test_bit(usage->code, input->key) != value)
input_event(input, EV_MSC, MSC_SCAN, usage->hid);

input_event(input, usage->type, usage->code, value);

Expand Down

0 comments on commit 9243938

Please sign in to comment.