summaryrefslogtreecommitdiff
path: root/include/linux/keyboard.h
diff options
context:
space:
mode:
authorVojtech Pavlik <vojtech@suse.cz>2002-10-07 19:38:11 +0200
committerVojtech Pavlik <vojtech@suse.cz>2002-10-07 19:38:11 +0200
commitad970526214ec2fce8ee477a6d9327eade4c5773 (patch)
treefb1de1bfdb678a2e5c41e5e1321de58c344ff84f /include/linux/keyboard.h
parent20c49e923f2b25c7d0825a065b8c9ed77e677a28 (diff)
Make NR_KEYS be (KEY_MAX+1) so that keybindings
can be set for keys over 128.
Diffstat (limited to 'include/linux/keyboard.h')
-rw-r--r--include/linux/keyboard.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/keyboard.h b/include/linux/keyboard.h
index caa66cd98d18..5bd97c23e72b 100644
--- a/include/linux/keyboard.h
+++ b/include/linux/keyboard.h
@@ -2,6 +2,7 @@
#define __LINUX_KEYBOARD_H
#include <linux/wait.h>
+#include <linux/input.h>
#define KG_SHIFT 0
#define KG_CTRL 2
@@ -15,9 +16,9 @@
#define NR_SHIFT 9
-#define NR_KEYS 128
+#define NR_KEYS (KEY_MAX+1)
#define MAX_NR_KEYMAPS 256
-/* This means 64Kb if all keymaps are allocated. Only the superuser
+/* This means 128Kb if all keymaps are allocated. Only the superuser
may increase the number of keymaps beyond MAX_NR_OF_USER_KEYMAPS. */
#define MAX_NR_OF_USER_KEYMAPS 256 /* should be at least 7 */