[PATCH] Keyboard improvements

Discussion of development and patch submission.
Post Reply
Battler
Posts: 793
Joined: Sun 06 Jul, 2014 7:05 pm

[PATCH] Keyboard improvements

Post by Battler »

The patch is attached. It does this:
- Adds keyboard scan code sets 2 and 3 to AT keyboard emulation and several commands relating to set 3;
- Adds keyboard scan code translation;
- Improves processing of scan codes so that ALT, CTRL, etc. get passed in the correct order;
- Fixes to the Windows raw keyboard input code;
- PC/XT keyboard fix by reenigne.
Attachments
pcem_keyboard.patch
(59.38 KiB) Downloaded 345 times
Battler
Posts: 793
Joined: Sun 06 Jul, 2014 7:05 pm

Re: [PATCH] Keyboard improvements

Post by Battler »

New version of the patch is attaches. Fixes undeclared variables in keyboard_at.c and win.c.
Attachments
pcem_keyboard.patch
(63.38 KiB) Downloaded 333 times
Battler
Posts: 793
Joined: Sun 06 Jul, 2014 7:05 pm

Re: [PATCH] Keyboard improvements

Post by Battler »

And yet another version. Readds keyboard_at_adddata_mouse() that I accidentally removed.
Attachments
pcem_keyboard.patch
(63.12 KiB) Downloaded 329 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: [PATCH] Keyboard improvements

Post by SarahWalker »

What does the PC/XT keyboard change fix?
Battler
Posts: 793
Joined: Sun 06 Jul, 2014 7:05 pm

Re: [PATCH] Keyboard improvements

Post by Battler »

It makes the IBM XT actually receive key presses. Though for more, you should ask reenigne, as he created the fix.

Also, you should wait a bit for all the patches because I'm going to post new versions of all of them soon, as I've improved some of them a bit during the holidays. :p
Greatpsycho
Posts: 151
Joined: Tue 22 Mar, 2016 10:03 am
Location: Korea
Contact:

Re: [PATCH] Keyboard improvements

Post by Greatpsycho »

This patch applies all even command value between 0xF0 and 0xFE to reset CPU. XENIX uses command value 0xF0 to reset CPU.

Edit : This patch has been incorporated here.
Greatpsycho
Posts: 151
Joined: Tue 22 Mar, 2016 10:03 am
Location: Korea
Contact:

Re: [PATCH] Keyboard improvements

Post by Greatpsycho »

This patch changes right window key to ctrl+alt key combination on non-windows enviroment. It makes easy to enter CTRL+ALT+DEL and CTRL+ALT+ESC combinations on Linux(On Linux, it is difficult to enter the CTRL+ALT+ESC combination. Some BIOS like Award286 clone uses it to enter CMOS setup).
Attachments
keyboard.c.patch
(744 Bytes) Downloaded 309 times
Post Reply