aboutsummaryrefslogtreecommitdiffstats
path: root/input-kbd.man
diff options
context:
space:
mode:
authorkraxel <kraxel>2005-07-27 14:17:04 +0000
committerkraxel <kraxel>2005-07-27 14:17:04 +0000
commitc2bfceb3f4f46d3b2d1df47c9368ffdcc37496ed (patch)
tree71cf2652aa1fc05295da25c5a813fb7489da6a4a /input-kbd.man
parent36e15966c4808a6edc453d1f8f7887a7d7823863 (diff)
downloadinput-c2bfceb3f4f46d3b2d1df47c9368ffdcc37496ed.tar.gz
- added man-pages, contributed by Marcus Better <marcus@better.se>
Diffstat (limited to 'input-kbd.man')
-rw-r--r--input-kbd.man54
1 files changed, 54 insertions, 0 deletions
diff --git a/input-kbd.man b/input-kbd.man
new file mode 100644
index 0000000..3a792ba
--- /dev/null
+++ b/input-kbd.man
@@ -0,0 +1,54 @@
+.TH INPUT-KBD 8 "July 2005" "" ""
+
+.SH NAME
+input-kbd \- print or modify keyboard maps for input devices
+
+.SH SYNOPSIS
+\fBinput\-kbd\fR \fInum\fR
+.HP 10
+\fBinput\-kbd \fR [\fB\-f\fR\ \fIfile\fR] \fIdevnr\fR
+
+.SH DESCRIPTION
+
+.PP
+\fBinput\-kbd\fR prints the keyboard map of kernel input device
+\fIdevnr\fR on stdout.
+The keyboard map maps scancodes to keycodes.
+
+.PP
+If the device supports a keyboard map,
+it is printed in the following format
+(from the output for an AT keyboard):
+.IP
+ 0x0001 = 67 # KEY_F9
+ 0x0002 = 65 # KEY_F7
+ 0x0003 = 63 # KEY_F5
+ 0x0004 = 61 # KEY_F3
+
+
+.PP
+If the device does not support a keyboard map,
+\fBinput\-kbd\fR just lists the keys and buttons supported by the device,
+like this (for a mouse):
+.IP
+ bits: BTN_LEFT
+ bits: BTN_RIGHT
+ bits: BTN_MIDDLE
+
+
+.SH OPTIONS
+
+.TP
+\fIdevnr\fR
+The index of the input device to use (0 for /dev/input/event0 and so on).
+
+.TP
+\fB\-f\fR \fIfile\fR
+Read a keyboard map from a file and reconfigure the device with this map.
+The map file uses the same format as the output of this command.
+Key names are also accepted instead of keycodes, like this:
+.IP
+ 0x0001 = KEY_F9
+
+.SH AUTHOR
+Gerd Knorr.