Previous Thread
Next Thread
Print Thread
Keyboard mapping in MESS driver #53044 08/24/09 08:50 PM
Joined: Aug 2009
Posts: 8
M
mariuszw Offline OP
Member
OP Offline
Member
M
Joined: Aug 2009
Posts: 8
Hi,

I'm working on driver for Elwro 800 Junior, Polish ZX Spectrum clone with additional features. The current version with working emulation was already sent to Nathan.

I'm still working on it and I have found a problem: original computer had several keys with Polish specific letters on them (Ą, Ć etc.). Obviously, modern PCs doesn't have such keys. My idea is to map them in the same way as standard mapping in Windows, i.e. Right Alt + key. How can I do that in driver code?

Mariusz Wojcieszek

Re: Keyboard mapping in MESS driver [Re: mariuszw] #53052 08/24/09 10:29 PM
Joined: Nov 1999
Posts: 661
B
Bletch Offline
Senior Member
Offline
Senior Member
B
Joined: Nov 1999
Posts: 661
Generally the way that has been done is to map the keys to whatever keys might be convenient (such as on the keypad). The natural keyboard support in MESS can be used independently.

Re: Keyboard mapping in MESS driver [Re: Bletch] #53053 08/25/09 01:56 AM
Joined: Dec 1999
Posts: 1,175
J
Justin Offline
Very Senior Member
Offline
Very Senior Member
J
Joined: Dec 1999
Posts: 1,175
The 'standard' in MESS for the emulated keyboard layout is to map the keys according to the physical layout on the original keyboard (so e.g. if Ą is where the ' key would be on a US 102-key keyboard you would map it to ').

MESS also supports "natural" keyboard layouts which use Unicode characters to allow for example clipboard paste to work, to support that you would specify e.g. PORT_CHAR(0x0104)

Re: Keyboard mapping in MESS driver [Re: mariuszw] #53054 08/25/09 06:49 AM
Joined: Feb 2008
Posts: 326
M
Micko Offline
Senior Member
Offline
Senior Member
M
Joined: Feb 2008
Posts: 326
I have placed your driver in SVN, please note that meanwhile FDC have been updated, so I had to do a little update on your code. So it would be good if you update your local tree to a latest SVN content.

Nice work BTW.

Re: Keyboard mapping in MESS driver [Re: Micko] #53071 08/25/09 02:48 PM
Joined: Jul 2007
Posts: 4,625
A
Anna Wu Offline
Very Senior Member
Offline
Very Senior Member
A
Joined: Jul 2007
Posts: 4,625
Originally Posted By Micko
I have placed your driver in SVN, please note that meanwhile FDC have been updated, so I had to do a little update on your code. So it would be good if you update your local tree to a latest SVN content.

Nice work BTW.


I will test. smile
My clean compilation is still in procress frown


Who's Online Now
2 registered members (DarthMarino, pmackinlay), 106 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,751
Posts115,013
Members4,884
Most Online890
Jan 17th, 2020
Powered by UBB.threads™ PHP Forum Software 7.7.3