AminetAminet
Search:
84734 packages online
About
Recent
Browse
Search
Upload
Setup
Services

driver/input/keycode2rawkey-presario.zip

Mirror:Random
Showing: ppc-powerup icongeneric icon
No screenshot available
Short:AROS keycode table for Compaq Presario
Author:Nathan Hesterman
Type:driver/input
Version:1.0.0
Architecture:generic
Date:2012-09-29
Requires:linux-hosted AROS
Download:driver/input/keycode2rawkey-presario.zip - View contents
Readme:driver/input/keycode2rawkey-presario.readme
Downloads:907

This is an alternative keycode tabe for users of the linux "hosted" flavor of AROS.

The available tables did not map well to my Compaq Presario R3370 laptop (no amiga, cursor,"\", PgUp, PgDown, Home, End, etc keys.  This table seems to have no peculiarities :o)
R_Amiga --> R_MenuKey (R_Windows)
L_Amiga --> L_Windows
HELP --> Scroll
Everything else works as written on the key itself.

To install, copy to Devs:Keymaps/X11 on the AROS side.  Make backup of the existing table and rename this file as keycode2rawkey.table.

This was built with the brute force method using a Calc spreadsheet (X11toAmigaKeyboardMapping.ods), hex editor, and xev (Xwindows event viewer) under Ubuntu 11.04.  The table seems to provide simple translation.  For example using my particular keyboard, when the letter 'e' is hit, X11 generates a decimal 26.  AROS hosted looks at the 26th byte (27th entry as first is zeroeth byte) in this table and sends the hex value shown (0x12 in my case) to the AROS side.  So, within the hex editor, the 26th byte should read 0x12.  Hex code FF is used wherever there is no corresponding X11 key.  I noticed that change-x11keymaptable uses hex 2B for "\" while hex OD works better for me.  The following method should be usable with any keyboard and linux using X11, I suspect:
1.  Open spreadsheet
2   Sort by ID column (arbitrary key order as displayed in change-x11keymaptable)
3.  run xev in a linux terminal
4.  start at top left of keyboard and hit a key
5.  place the decimal xev code in the XEV Code column of the spreadsheet
6.  repeat for all keys on your keyboard
7.  Sort spreadsheet by XEV Code
8.  Open keycode2rawkey.table in hex editor
9.  Go line-by-line in the spreadsheet and byte-by-byte in the hex editor to enter the appropriate hex amiga code in the proper spot of the table.  My wife called them out to me which went much faster and accurately.
10.  Save
11.  Launch AROS
12.  Test
13.  Correct/modify as wanted/needed

Nathan Hesterman - 9/27/2012


Uploaded using: archives.aros-exec.org


Contents of driver/input/keycode2rawkey-presario.zip
Archive:  /home/aminet/aminet_root/doc//driver/input/keycode2rawkey-presario.zip
 Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
--------  ------  ------- ---- ---------- ----- --------  ----
    1992  Defl:X     1084  46% 2012-09-28 11:07 d89c81f0  X11toAmiga.readme
   23041  Defl:X    21335   7% 2012-09-28 11:16 dce9fabf  X11toAmigaKeyboardMapping.ods
     256  Defl:X      113  56% 2012-09-21 22:31 0d5cc86b  keycode2rawkey-Presario.table
--------          -------  ---                            -------
   25289            22532  11%                            3 files
Page generated in 0.01 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>