OpenMSX question: How to bind keys...

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

By NYYRIKKI

Enlighted (5505)

NYYRIKKI's picture

09-01-2015, 17:52

Just solved it... by looking my settings.xml... My own fault, sorry for being so negative... It seems that I accidentally had pushed F6 that I had binded long time ago to toggle z80_freq_locked with too high speed. I removed the key now to avoid same mistake again...

Good thing is that I now managed to solve the keyboard issue like I wanted... It seems that it is mandatory to bind also LCTRL and not only LCTRL,release. Other ways it goes haywire.

Here is the list of bindings that solved my keyboard issue:

  < bindings>
    < bind key="keyb PAGEUP,RELEASE">keymatrixup 7 0x10< /bind>
    < bind key="keyb LCTRL,RELEASE">keymatrixup 6 2< /bind>
    < bind key="keyb PAGEUP+CTRL,RELEASE">keymatrixup 6 2 ; keymatrixup 7 16< /bind>
    < bind key="keyb PAGEUP">keymatrixdown 7 16< /bind>
    < bind key="keyb PAGEDOWN">keymatrixdown 6 23 ; after time .04 "keymatrixup 6 23"< /bind>
    < bind key="keyb LCTRL">keymatrixdown 6 2< /bind>
    < bind key="keyb PAGEUP+CTRL">keymatrixdown 6 2 ; keymatrixdown 7 16< /bind>
  < /bindings>

(Extra spaces added to bypass MRC censorship)

By sss77

Resident (38)

sss77's picture

10-01-2015, 01:27

How to bind Numeric Keys or Numpads ?

i've done this on consol : set kbd_numkeypad_always_enabled on

but i don't know the names of numpad keys on OpenMSX consol ?
is it possible to bind left right up & down on numeric keys ?

By Manuel

Ascended (16375)

Manuel's picture

10-01-2015, 14:56

What do you want to bind to what?

Numpad keys are like: KP0, KP1, KP_PERIOD, KP_DIVIDE, KP_PLUS, etc.

About "set kbd_numkeypad_always_enabled on", this only means that you can use a numeric keypad of the MSX, even though the real MSX doesn't have a numeric keypad. It is not related to your host PC numeric keypad.

About your last question: can you explain in a bit more detail what you want to do?

By sss77

Resident (38)

sss77's picture

11-01-2015, 06:57

i want to bind KP1 , KP2, KP3 , KP5 as cursor / directional keys instead or arrow keys
because the keyboard i used in my work have limited anti-ghosting

By Manuel

Ascended (16375)

Manuel's picture

11-01-2015, 12:29

If the game you are playing supports joystick, perhaps it's the easiest to plug in keyjoystick1 and configure it for your keypad, see http://openmsx.sourceforge.net/manual/commands.html#keyjoyst...

By sss77

Resident (38)

sss77's picture

11-01-2015, 20:52

it worked ! i forget to set keyjoystick1 in joystick port 1 option

thank you very much manual Smile

By ren

Paragon (1387)

ren's picture

30-11-2019, 17:43

wouter_ wrote:
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).

So.. it should be possible to make a single left Alt (LALT) press translate to an MSX space bar press right? Doesn't seem to work, I can e.g. bind Z to space (8 1), but not not keys like LALT, LSHIFT, LCTRL. (Latest openMSX Win dev build.)

By Manuel

Ascended (16375)

Manuel's picture

30-11-2019, 22:43

That got broken in our development build. Under investigation... Thanks for reporting!

See https://github.com/openMSX/openMSX/issues/1202

By ren

Paragon (1387)

ren's picture

01-12-2019, 11:03

Welcome, thanks for picking up Smile NB, probably you're aware already, but the Fixato Win dev build has been stuck for a while at commit 4f70ab48e (file date 2019-08-26 23:51)
I see the first commits after that date (August 31) (openMSX & wxcatapult repos) have to do with 'Update build to Python 3', so that's the cause I suspect?

Not that big of a problem, as you can still get the binary from Vampier & combine with the openMSX repo resources & the August 26 build (Catapult).. Cheers!

By Manuel

Ascended (16375)

Manuel's picture

01-12-2019, 12:30

That is because the automatic Catapult build is broken... Which happened when it was moved to the latest wxWidgets release.

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