OpenMSX question: How to bind keys...

Page 3/5
1 | 2 | | 4 | 5

By NYYRIKKI

Enlighted (5587)

NYYRIKKI's picture

09-01-2015, 00:27

Windows

By NYYRIKKI

Enlighted (5587)

NYYRIKKI's picture

09-01-2015, 11:44

Hmm... BTW is this bug or planned feature?

- I press and hold CTRL
- I press and hold PageUP
- I get "PageUP+CTRL event"
- I release CTRL
- I release PageUP
- I get "PageUP, release" event. (No "PageUP+CTRL, release" event at any point)

... I also can't bind CTRL.

By Manuel

Ascended (16824)

Manuel's picture

09-01-2015, 12:12

Note that CTRL is a modifier, and not a normal key. Modifiers are special. You can't bind something to a modifier alone.

As for that behaviour: I'd have to check later.

By mars2000you

Enlighted (5670)

mars2000you's picture

09-01-2015, 12:38

Manuel wrote:

Note that CTRL is a modifier, and not a normal key. Modifiers are special. You can't bind something to a modifier alone.

That's another difference with blueMSX, where I can easily map MSX SPACE key to PC LeftCTRL key (=LCONTROL) and map MSX CTRL key to PC SPACE key for example. Of course, for shortcuts to emulator's feature, CTRL can't be used alone, but combined with 1 or 2 other keys.

By wouter_

Champion (431)

wouter_'s picture

09-01-2015, 12:39

You will get a "PageUp+CTRL,release" event when you have PageUp and CTRL pressed and then release PageUp before releasing CTRL. The "release" annotation relates to the primary key (not the modifiers).

You indeed can't bind to "CTRL" or "CTRL,release". Not sure why that is, probably just an oversight (we never needed this before). I'll try to fix this.

By Manuel

Ascended (16824)

Manuel's picture

09-01-2015, 13:06

Oh, good, Wouter. I thought it was some SDL thing. Would be nice if you could indeed fix/improve this Smile

mars2000you: yes, I know that blueMSX is not the same as openMSX Tongue

By NYYRIKKI

Enlighted (5587)

NYYRIKKI's picture

09-01-2015, 15:06

wouter_ wrote:

You will get a "PageUp+CTRL,release" event when you have PageUp and CTRL pressed and then release PageUp before releasing CTRL. The "release" annotation relates to the primary key (not the modifiers).

You indeed can't bind to "CTRL" or "CTRL,release". Not sure why that is, probably just an oversight (we never needed this before). I'll try to fix this.

Yes, fixing this would be nice... Then I could add bind CTRL,release "keymatrixup 6 2" to fix the issue that if I release PageUp before CTRL my CTRL will get "stuck" until I press the combination again and release in correct order.

By wouter_

Champion (431)

wouter_'s picture

09-01-2015, 15:43

wouter_ wrote:

You indeed can't bind to "CTRL" or "CTRL,release" .... I'll try to fix this.

Actually when looking at the code, I saw that it is already possible: to bind something to the left or right CTRL key you have to use the names LCTRL or RCTRL (and the name CTRL acts as a modifier for other keys).

This stuff is so rarely used that I completely forgot about it (it's been over 10 years since I initially wrote that code).

By NYYRIKKI

Enlighted (5587)

NYYRIKKI's picture

09-01-2015, 16:19

Grrr.... At the moment I have bigger problems, so I can't test...

I was using openMSX for development while my CTRL got stuck again... For some reason this time I could not release it with any command, so closed openMSX and started it again... Now ALL my MSX configurations VDP's are completely broken from MSX1 to tR, no matter what configuration I select from Catapult...

I'm just about 10 seconds away of loosing my nerves right now... I really have limited time today to get my code working and I'm still fighting with the emulator and not with my code.

By Manuel

Ascended (16824)

Manuel's picture

09-01-2015, 17:19

So, you probably lost your nerves by now...

How did you do this? (I remember seeing this before (on real machine?) but I can't remember what caused it...)

Ah, I saw it here: (see this ancient article: http://www.mac-emu.net/spip.php?article1074 ) Quite a long time ago... but I can't remember what caused it right now.

Page 3/5
1 | 2 | | 4 | 5