Alt Gr not working?

Pagina 1/2
| 2

Door BernardBernoulli

Resident (34)

afbeelding van BernardBernoulli

28-07-2014, 01:43

It seems my openMSX has problems with my Alt Gr key...
Unfortunatly my keyboard has the square brackets [ ] accessible only through Alt Gr and i seem unable to make openMSX see them.
Anyone got an idea about how i could fix this?

Thanx.

Aangemeld of registreer om reacties te plaatsen

Van Manuel

Ascended (19691)

afbeelding van Manuel

28-07-2014, 08:50

Which version are you using on which OS?

Van BernardBernoulli

Resident (34)

afbeelding van BernardBernoulli

28-07-2014, 10:21

I think the latest: OpenMSX 0.10.1 with Catapult on Windows 7 64bit

Thanx.

Van Manuel

Ascended (19691)

afbeelding van Manuel

28-07-2014, 12:30

What kind of keyboard is it exactly?

Van BernardBernoulli

Resident (34)

afbeelding van BernardBernoulli

28-07-2014, 12:59

It's a laptop (Sony VAIO), italian layout.

Van Manuel

Ascended (19691)

afbeelding van Manuel

28-07-2014, 21:52

Can you enable the keyboard trace logging?
TO do so, open the console with F10 and type: set kbd_trace_key_presses on
Then try to type the symbols with Alt-Gr (like [ and ]) and paste the output of the logging. (Probably ends up in the Catapult Output tab, or in the command prompt window.)

Van BernardBernoulli

Resident (34)

afbeelding van BernardBernoulli

29-07-2014, 03:35

The command is accepted without error but i can't see any log generated by that command.
Catapult doesn't show anything, in any tab i can see, stdout and stderr are empty and no file seems to be generated in the openMSX folder or the user-data openMSX folder...

Does your Alt-Gr work? Do you have windows too?

Van wouter_

Hero (535)

afbeelding van wouter_

29-07-2014, 09:17

Please double check for typos. (Hint use tab-completion, so type 'set kbd_tr[tab] on'). If this step went correct you should get a response 'true' from openMSX. Next close the openMSX console (press F10) again. And start typing in e.g. MSX-BASIC. The logging information should appear on stdout. When you started openMSX from catapult this should appear in one of the tabs. If you started openMSX manually from a command prompt, the logging should appear there.

Van BernardBernoulli

Resident (34)

afbeelding van BernardBernoulli

29-07-2014, 12:21

You are correct, sorry for being this stupid... i kept typing "pressed" instead of "presses" in the command that Manuel suggested me... i typed it so many times and never noticed it... the autocompletition helped figure it out... thanx.

This is the log i can now see on stdout/stderr when i click ALTGR+[:
Key pressed, unicode: 0x0000, keyCode: 0x00132, keyName: LCTRL
Key pressed, unicode: 0x0000, keyCode: 0x40133, keyName: RALT+CTRL
Key pressed, unicode: 0x005b, keyCode: 0xc005b, keyName: LEFTBRACKET+CTRL+ALT
Key released, unicode: 0x0000, keyCode: 0x4c005b, keyName: LEFTBRACKET+CTRL+ALT,
RELEASE
Key released, unicode: 0x0000, keyCode: 0x480132, keyName: LCTRL+ALT,RELEASE
Key released, unicode: 0x0000, keyCode: 0x400133, keyName: RALT,RELEASE

I don't understand why it sees LCTRL, CTRL and ALT....

This is what happens when i only click once ALTGR:
Key pressed, unicode: 0x0000, keyCode: 0x00132, keyName: LCTRL
Key pressed, unicode: 0x0000, keyCode: 0x40133, keyName: RALT+CTRL
Key released, unicode: 0x0000, keyCode: 0x480132, keyName: LCTRL+ALT,RELEASE
Key released, unicode: 0x0000, keyCode: 0x400133, keyName: RALT,RELEASE

Thanx.

Anyways... for now i kind of fixed the problem with:
bind F6 "keymatrixdown 1 0x20"
bind F6,release "keymatrixup 1 0x20"
bind F7 "keymatrixdown 1 0x40"
bind F7,release "keymatrixup 1 0x40"

but of course i would very much prefer to have my ALTGR key working...

Van Alex

Master (207)

afbeelding van Alex

29-07-2014, 19:01

I have tried with Belgium Azert keyboard which also has [ and ] only available with alt-gr key. Under linux (openSuSE 13.1) it works fine. I get following output from kbd_trace=true when I enter [:

Key pressed, unicode: 0x0000, keyCode: 0x00139, keyName: RMODE
Key pressed, unicode: 0x005b, keyCode: 0x20005e, keyName: CARET+MODE
Key released, unicode: 0x0000, keyCode: 0x60005e, keyName: CARET+MODE,RELEASE
Key released, unicode: 0x0000, keyCode: 0x400139, keyName: RMODE,RELEASE
Key pressed, unicode: 0x0000, keyCode: 0x00139, keyName: RMODE

RMODE is the logical code for the alt-gr key
the [ character is on the same key as the caret (^) character, which is the second press; CARET+MODE
After that, CARET+MODE get first released and then RMODE gets released.

I notice in the windows output that you posted above that apparently Windows or SDL on Windows is not recognizing the alt-gr key as the RMODE code but as LCTRL together zith RALT (left control key + right alt key)

Unfortunately I don't have Windows 7 but I do have Windows Vista. I'll try openMSX under Vista and then post here another comment with the findings.

Van mars2000you

Enlighted (6570)

afbeelding van mars2000you

29-07-2014, 19:41

It's more probably a Windows 7/8 problem. If you use Google with 'AltGr not working", you'll get many results!

On blueMSX, the problem can also happen (I've a Belgian AZERTY keyboard), and the solution seems to choose temporarily as Language preference English (USA) with English USA keyboard layout. You need to go in the Config Panel to add this "2nd" language (and an icon in the traybar will be useful to switch from one language to another one).

Pagina 1/2
| 2