diff options
author | miwi <miwi@058c260c-8361-11dd-a0ac-aa2bafec7d09> | 2010-02-15 07:00:54 +0800 |
---|---|---|
committer | miwi <miwi@058c260c-8361-11dd-a0ac-aa2bafec7d09> | 2010-02-15 07:00:54 +0800 |
commit | 244839495c275e9457be660ef28ee3f284c72ca5 (patch) | |
tree | 2612015604732ff0067cc8ba92cadbb6fcba458b /x11-drivers/xf86-input-keyboard/files | |
parent | 9f2ae103b3488ed9519ef7d49be69f75798e074e (diff) | |
download | xorg-devel-ports-244839495c275e9457be660ef28ee3f284c72ca5.tar xorg-devel-ports-244839495c275e9457be660ef28ee3f284c72ca5.tar.gz xorg-devel-ports-244839495c275e9457be660ef28ee3f284c72ca5.tar.bz2 xorg-devel-ports-244839495c275e9457be660ef28ee3f284c72ca5.tar.lz xorg-devel-ports-244839495c275e9457be660ef28ee3f284c72ca5.tar.xz xorg-devel-ports-244839495c275e9457be660ef28ee3f284c72ca5.tar.zst xorg-devel-ports-244839495c275e9457be660ef28ee3f284c72ca5.zip |
- Add first input drivers
git-svn-id: https://trillian.chruetertee.ch/svn/ports/branches/xorg-dev@76 058c260c-8361-11dd-a0ac-aa2bafec7d09
Diffstat (limited to 'x11-drivers/xf86-input-keyboard/files')
-rw-r--r-- | x11-drivers/xf86-input-keyboard/files/patch-at_scancode.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/x11-drivers/xf86-input-keyboard/files/patch-at_scancode.c b/x11-drivers/xf86-input-keyboard/files/patch-at_scancode.c new file mode 100644 index 0000000..4a24423 --- /dev/null +++ b/x11-drivers/xf86-input-keyboard/files/patch-at_scancode.c @@ -0,0 +1,31 @@ +--- src/at_scancode.c.orig Sun Jul 3 09:01:35 2005 ++++ src/at_scancode.c Sat Oct 7 21:27:29 2006 +@@ -84,6 +84,10 @@ + case KEY_Prefix0: + pKbd->scanPrefix = 0; + switch (*scanCode) { ++ case 0x1e: *scanCode = KEY_AudioRaise;break; ++ case 0x1f: *scanCode = KEY_AudioLower;break; ++ case 0x20: *scanCode = KEY_Power; break; ++ case 0x25: *scanCode = KEY_Mute; break; + case KEY_KP_7: *scanCode = KEY_Home; break; /* curs home */ + case KEY_KP_8: *scanCode = KEY_Up; break; /* curs up */ + case KEY_KP_9: *scanCode = KEY_PgUp; break; /* curs pgup */ +@@ -103,6 +107,17 @@ + case 0x5b: *scanCode = KEY_LMeta; break; + case 0x5c: *scanCode = KEY_RMeta; break; + case 0x5d: *scanCode = KEY_Menu; break; ++ case 0x5e: *scanCode = KEY_L1; break; /* stop */ ++ case 0x5f: *scanCode = KEY_L2; break; /* again */ ++ case 0x60: *scanCode = KEY_L3; break; /* props */ ++ case 0x61: *scanCode = KEY_L4; break; /* undo */ ++ case 0x62: *scanCode = KEY_L5; break; /* front */ ++ case 0x63: *scanCode = KEY_L6; break; /* copy */ ++ case 0x64: *scanCode = KEY_L7; break; /* open */ ++ case 0x65: *scanCode = KEY_L8; break; /* paste */ ++ case 0x66: *scanCode = KEY_L9; break; /* find */ ++ case 0x67: *scanCode = KEY_L10; break; /* cut */ ++ case 0x68: *scanCode = KEY_Help; break; + case KEY_F3: *scanCode = KEY_F13; break; + case KEY_F4: *scanCode = KEY_F14; break; + case KEY_F5: *scanCode = KEY_F15; break; |