summaryrefslogtreecommitdiffstats
path: root/sys/alpha
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>1997-10-01 20:46:29 +0000
committersos <sos@FreeBSD.org>1997-10-01 20:46:29 +0000
commit85a02d214d4daf2fbdbfa72558a07df37a7d832f (patch)
tree21006868c4674b0de8ef5f6bfd5dd0fd1d08d979 /sys/alpha
parent8880ef0decba18474fbb1f90a0869f48177cabf3 (diff)
downloadFreeBSD-src-85a02d214d4daf2fbdbfa72558a07df37a7d832f.zip
FreeBSD-src-85a02d214d4daf2fbdbfa72558a07df37a7d832f.tar.gz
Add a new keyboard mode K_CODE. Returns a single byte for each key
much like the scancode mode. However the keys that (for no good reason) returns extension codes etc, are translated into singlebyte codes. Needed by libvgl. This makes life ALOT easier, also the XFree86 folks could use this.
Diffstat (limited to 'sys/alpha')
-rw-r--r--sys/alpha/include/console.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/alpha/include/console.h b/sys/alpha/include/console.h
index a700eaa..cbeb2c4 100644
--- a/sys/alpha/include/console.h
+++ b/sys/alpha/include/console.h
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: console.h,v 1.30 1997/08/08 22:52:25 sos Exp $
+ * $Id: console.h,v 1.31 1997/09/04 09:05:17 kato Exp $
*/
#ifndef _MACHINE_CONSOLE_H_
@@ -153,6 +153,7 @@ struct mouse_info {
#define K_RAW 0 /* keyboard returns scancodes */
#define K_XLATE 1 /* keyboard returns ascii */
+#define K_CODE 2 /* keyboard returns keycodes */
#define KB_84 1 /* 'old' 84 key AT-keyboard */
#define KB_101 2 /* MF-101 or MF-102 keyboard */
OpenPOWER on IntegriCloud