summaryrefslogtreecommitdiff
path: root/extras/input_id/input_id.c
diff options
context:
space:
mode:
Diffstat (limited to 'extras/input_id/input_id.c')
-rw-r--r--extras/input_id/input_id.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/extras/input_id/input_id.c b/extras/input_id/input_id.c
index b2d4a6770a..588ff8992a 100644
--- a/extras/input_id/input_id.c
+++ b/extras/input_id/input_id.c
@@ -148,6 +148,17 @@ static void test_key (const unsigned long* bitmask_ev,
found |= bitmask_key[i];
DBG("test_key: checking bit block %lu for any keys; found=%i\n", i*BITS_PER_LONG, found > 0);
}
+ /* If there are no keys in the lower block, check the higher block */
+ if (!found) {
+ for (i = KEY_OK; i < BTN_TRIGGER_HAPPY; ++i) {
+ if (test_bit (i, bitmask_key)) {
+ DBG("test_key: Found key %x in high block\n", i);
+ found = 1;
+ break;
+ }
+ }
+ }
+
if (found > 0)
puts("ID_INPUT_KEY=1");