|
|
1.1 ! root 1: #ifndef lint ! 2: static char *rcsid_keyboard_c = "$Header: keyboard.c,v 10.1 86/11/19 10:42:06 jg Exp $"; ! 3: #endif lint ! 4: /* Copyright 1985 Massachusetts Institute of Technology */ ! 5: ! 6: /* keyboard.c - key code processing routine ! 7: * ! 8: * ProcessInput matches RT/PC keyboard codes to ! 9: * to LK201 (DEC) codes. ! 10: * ! 11: * Author: ! 12: * ! 13: * Scott Bates ! 14: * Brown University ! 15: * IRIS, Box 1946 ! 16: * Providence, RI 02912 ! 17: * ! 18: * Copyright (c) 1986 Brown University ! 19: * ! 20: * Permission to use, copy, modify and distribute this software and its ! 21: * documentation for any purpose and without fee is hereby granted, provided ! 22: * that the above copyright notice appear in all copies, and that both ! 23: * that copyright notice and this permission notice appear in supporting ! 24: * documentation, and that the name of Brown University not be used in ! 25: * advertising or publicity pertaining to distribution of the software ! 26: * without specific, written prior permission. Brown University makes no ! 27: * representations about the suitability of this software for any purpose. ! 28: * It is provided "as-is" without express or implied warranty. ! 29: */ ! 30: ! 31: #include "private.h" ! 32: #include "keymatch.h" ! 33: ! 34: ProcessInput (ev) ! 35: register vsEvent *ev; ! 36: { ! 37: ! 38: if (ev->vse_device == VSE_DKB) { ! 39: register int vse_key = ((int) ev->vse_key) & 0xFF; ! 40: if ((vse_key >= 0) && (vse_key <= RTPC_CODES)) ! 41: ev->vse_key = keymatch[vse_key]; ! 42: } ! 43: Deal_with_input (ev); ! 44: return; ! 45: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.