Subject: [Patch] Linux keycode translation
From: Matt Brubeck (mbrubeck@hmc.edu)
Date: Sat Dec 09 2000 - 16:55:25 MST
This patch adds translation from linux keycodes, for the new 2.4 input
layer. It checks /proc/sys/dev/mac_hid to see whether the kernel is using
linux keycodes, and if so it translates to adb using a table. This patch
is only for the X11 video driver.
Next I plan to get keycode translation working with console video. I'd
also like to clean up some of the keyboard code in xvideo.c, unless
someone objects. Eventually I'd like to add a more sophisticated way to
switch between mac and linux keycodes.
Patch summary:
* Created new files drivers/keycodes.c and drivers/include/keycodes.h,
containing the translation code. Modified drivers/xvideo.c to use the
new keycode translation.
* Created new header include/mol_types.h for some common typedefs
(uint8 and bool). This is now included by xvideo.c and vncvideo.c.
Matt Brubeck
This archive was generated by hypermail 2a24 : Sat Dec 09 2000 - 16:55:25 MST