Previous Thread
Next Thread
Print Thread
Page 2 of 3 1 2 3
Re: Keyboard mapping / natural keyboard [Re: mizapf] #40634
05/01/08 12:01 AM
05/01/08 12:01 AM
Joined: May 2007
Posts: 542
Germany
M
mizapf Offline OP
Senior Member
mizapf  Offline OP
Senior Member
M
Joined: May 2007
Posts: 542
Germany
There is a regression for the natural keyboard for ti99_4x since 0.124. I already filed a bugzilla report.

Specifically, the arrow keys and the delete key stopped working. This makes the natural keyboard useless - you just can't edit what you type.

By the way, the Umlaut keys are still an issue.

We had the discussion above; the previous intermediate solution to use the common German remapping ä->ae etc. is not useful for other European languages. But the current way (since 0.123), mapping the umlauted characters to non-umlauted ones, is not useful either, and also misleading. My suggestion would be rather to have dead keys than wrong keys.

Just to give some funny examples: Omitting the umlaut marks is almost always considered a typo: German "rösten/rosten" (roast/rust), "Gräte/Grate" (fishbone/ridges), "Müll/Mull" (trash/gauze). While German knows a substitution (ä->ae, ö->oe, ü->ue), this may not acceptable for other languages. So as I said, either the keys should be dead, or better: they should pass the iso-8859 code (ä=228) to the emulator and have the emulated system and the native program do whatever they like.

Michael


Re: Keyboard mapping / natural keyboard [Re: mizapf] #40698
05/02/08 11:31 AM
05/02/08 11:31 AM
Joined: May 2007
Posts: 542
Germany
M
mizapf Offline OP
Senior Member
mizapf  Offline OP
Senior Member
M
Joined: May 2007
Posts: 542
Germany
The natural keyboard regression was introduced with r1772; seems to be the time where "running_machine" entered the code.

435 updates to src/mame
22 updates to src/mess
36 updates to src/emu
13 updates to src/osd

Michael

Re: Keyboard mapping / natural keyboard [Re: mizapf] #40700
05/02/08 11:51 AM
05/02/08 11:51 AM
Joined: May 2004
Posts: 862
Germany
D
Duke Online content
Senior Member
Duke  Online Content
Senior Member
D
Joined: May 2004
Posts: 862
Germany
There was a problem with certain keys (including cursor keys) in natural keyboard mode that was fixed a while ago. Are you using the latest version?

Re: Keyboard mapping / natural keyboard [Re: mizapf] #40701
05/02/08 12:05 PM
05/02/08 12:05 PM
Joined: Jan 2006
Posts: 3,687
Trondheim, Norway
etabeta78 Offline
Very Senior Member
etabeta78  Offline
Very Senior Member
Joined: Jan 2006
Posts: 3,687
Trondheim, Norway
here arrow keys work in svn rev.2522 with -natural. I don't have a del key on my keyboard, so I cannot test delete with -natural...

EDIT: actually natural arrow keys work with all drivers but ti99_4 and ti99_4e.
Moreover, ti99_4a prompt is missing a couple of pixels (bottom ones) so letters appear cut at bottom. this seems a bug.

EDIT2: checking the source for inputs I noticed that ti99_4 and ti99_4e don't seem to have separate arrow keys (nor a delete)
Code:
PORT_BIT(0x0040, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("E UP") PORT_CODE(KEYCODE_E) PORT_CHAR('E')
PORT_BIT(0x0020, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("S LEFT") PORT_CODE(KEYCODE_S) PORT_CHAR('S')
PORT_BIT(0x0010, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("X DOWN") PORT_CODE(KEYCODE_X) PORT_CHAR('X')
[...]
PORT_BIT(0x2000, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("D RIGHT") PORT_CODE(KEYCODE_D) PORT_CHAR('D')


but they seem accessible through a combination of letter keys + a function key... how shall the -natural keyboard work in this case?

Last edited by etabeta78; 05/02/08 12:19 PM.
Re: Keyboard mapping / natural keyboard [Re: Duke] #40702
05/02/08 12:30 PM
05/02/08 12:30 PM
Joined: May 2007
Posts: 542
Germany
M
mizapf Offline OP
Senior Member
mizapf  Offline OP
Senior Member
M
Joined: May 2007
Posts: 542
Germany
Oh ... seems to be working now with r2525, indeed. I'll close the Bugzilla entry.

Thanks,

Michael

Re: Keyboard mapping / natural keyboard [Re: etabeta78] #40703
05/02/08 12:34 PM
05/02/08 12:34 PM
Joined: May 2007
Posts: 542
Germany
M
mizapf Offline OP
Senior Member
mizapf  Offline OP
Senior Member
M
Joined: May 2007
Posts: 542
Germany
The missing pixels are caused from the scaling of the screen output. Try to enlarge the window. I guess this is not a bug but just a display artifact.

The output is much better with opengl rendering - if you don't use the fglrx driver...

Michael

Re: Keyboard mapping / natural keyboard [Re: etabeta78] #40708
05/02/08 04:23 PM
05/02/08 04:23 PM
Joined: May 2007
Posts: 542
Germany
M
mizapf Offline OP
Senior Member
mizapf  Offline OP
Senior Member
M
Joined: May 2007
Posts: 542
Germany
Quote:

EDIT2: checking the source for inputs I noticed that ti99_4 and ti99_4e don't seem to have separate arrow keys (nor a delete)

but they seem accessible through a combination of letter keys + a function key... how shall the -natural keyboard work in this case?


ti99 systems have a "FCTN" key modifier (on the console at the position of the PC's AltGR); the arrow keys are FCTN-E/S/D/X. The keyboard on the ti99 systems (except for the Geneve) are kind of matrix key array. See a picture on www.ninerpedia.org.

I did not yet have a closer look, but the natural keyboard emulation just needs to simulate these port bits when the arrow key is pressed. That is, on pressing arrow left, this must cause the FCTN bit and the S bit to be set, and the interpretation is up to the emulated system.

The Del key must be mapped to the FCTN-1 key combination. I tried to have multiple mappings (because it would be nice to also have the Alt-1 or F1 be mapped to FCTN-1), but this does not seem to work.

Michael

Re: Keyboard mapping / natural keyboard [Re: mizapf] #40709
05/02/08 04:35 PM
05/02/08 04:35 PM
Joined: Jan 2006
Posts: 3,687
Trondheim, Norway
etabeta78 Offline
Very Senior Member
etabeta78  Offline
Very Senior Member
Joined: Jan 2006
Posts: 3,687
Trondheim, Norway
I sent Duke a patch on irc to emulate this in the same way it's currently done for ti99_4a (the behavior is currently different between ti99_4 & ti99_4a)

you can find the patch at http://pastebin.com/m54c2adc9

if it's ok for him (the patch mimics his changes in svn rev 1640 & 1643, when natural keyboard was added to ti99_4a), it should reach the repository and fix the current differences between the two families of computers

probably inputs could be improved even more, but at least all drivers shall be usable

Re: Keyboard mapping / natural keyboard [Re: etabeta78] #40823
05/05/08 04:12 PM
05/05/08 04:12 PM
Joined: May 2008
Posts: 2
Indianapolis, IN
F
Flash Angstrom Offline
Member
Flash Angstrom  Offline
Member
F
Joined: May 2008
Posts: 2
Indianapolis, IN
This is what I am needing, but I cannot find where this is in src\mess\drivers\ti99_4x.c

What am I looking for?


Thanks in advance!
[no sig yet]

Re: Keyboard mapping / natural keyboard [Re: Flash Angstrom] #40843
05/06/08 05:24 AM
05/06/08 05:24 AM
Joined: Jan 2006
Posts: 3,687
Trondheim, Norway
etabeta78 Offline
Very Senior Member
etabeta78  Offline
Very Senior Member
Joined: Jan 2006
Posts: 3,687
Trondheim, Norway
either compile by yourself latest svn or wait for 0.125 which will be out soon.

Page 2 of 3 1 2 3

Who's Online Now
3 registered members (Cpt. Pugwash, AJR, Vas Crabb), 104 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,606
Posts112,515
Members4,827
Most Online296
Dec 5th, 2018
Powered by UBB.threads™ PHP Forum Software 7.6.1.1
(Release build 20180111)
Page Time: 0.029s Queries: 15 (0.010s) Memory: 5.7230 MB (Peak: 5.9436 MB) Zlib enabled. Server Time: 2018-12-15 14:32:14 UTC