Need a little help binding joystick buttons :)

Page 3/4
1 | 2 | | 4

By Manuel

Ascended (16625)

Manuel's picture

22-02-2017, 23:24

What does this give you:
set joystick1_config

Ah, where did you remove the settings.xml file exactly? It should be removed from your user directory (not from the installation directory) to reset to defaults.

By sss77

Resident (44)

sss77's picture

23-02-2017, 10:50

Manual sorry for being troublesome
i know what you mean the settings.xml in path : C:\Users\MY-PC\AppData\Roaming , C:\Users\MY-PC\AppData\Local
Right ? well i didn't used the installer version (msi) i just download the *.zip portable version Smile from the link you gave me

set joystick1_config gives me the following

should i go with installer version ?

EDITED :

i typed unset joystick1_config
Now L2 and R2 (L Trigger , R.Trigger) Not moving anymore that's good start ! hmm what next :-D

this is How it looks now

By sss77

Resident (44)

sss77's picture

23-02-2017, 15:09

can't edit post above !

Finally i managed to Fire A for L2, R2 (L Trigger , R Trigger)

dict set joystick1_config A {+axis2} by looking at luppie chart i thought that (L2, R2) was button10, 11 but it wasn't

Now let say i want to play Castle , How can i set CTRL "keymatrixdown 6 0x02" for {+axis2] ?

None of methods below works

bind "joy1 +axis2 down" "keymatrixdown 6 0x02"
bind "joy1 +axis2 up" "keymatrixup 6 0x02"

do i miss something ?

By Manuel

Ascended (16625)

Manuel's picture

23-02-2017, 21:13

Why do you want to set it to +axis2? That means you want to press the key when you move the joystick into the positive direction of axis2...!?

For the zip version, your settings.xml still ends up in your user folder... See C:\Users\MY-PC\Documents\openMSX

By sss77

Resident (44)

sss77's picture

26-02-2017, 08:35

because +axis2 and -axis2 indicated as (L2 , R2) which are Triggers not buttons
i wonder if this behaves as a Real Physical xbox 360 controller ?
i hate gamepad with triggers , i wish they were not creat one !

Now i play The Castle i set L1 (button4) for CTRL and R1 (button5) for Graph

By sss77

Resident (44)

sss77's picture

20-06-2020, 11:59

it's been a long time ! Smile2
is it possible to save "plug joyporta joystick2" in settings ?
because everytime i start openmsx joystick not moving unless i type this on consol and hit enter

plug joyporta joystick2

By Manuel

Ascended (16625)

Manuel's picture

20-06-2020, 13:37

Apparently you have 2 joystick devices detected by SDL on your system and you want joystick2.

You cannot save this in settings.

However there are other options:
1. You could make a save state and start from that
2. You can start up openMSX like this (e.g. via a batch file or something): openmsx -command "plug joyporta joystick2"
3. You can put a text file in your openMSX user directory in share/scripts called for example myplug.tcl which contains only plug joyporta joystick2
4. You could adjust a script: edit share/scripts/autoplug.tcl. This script automatically plugs host joystick1 into MSX joystick port A and host joystick2 in MSX joystick port B. You can swap it (see lines 52 and 56). Biggest disadvantage of changing this script is that it will get overwritten if you install a new version.

Let me know how this works out for you, which option you tried and when one doesn't work, what is happening. I do not have 2 host joysticks, so I cannot test this myself.

By sss77

Resident (44)

sss77's picture

21-06-2020, 08:46

Easy on me i'm not a programmer but YOU ARE ABSOLUTLEY RIGHT !

i have DS4 wireless and vjoy installed in control panel ,i tried few methods here's what i got

#1 method i don't want to use it for a reason . You want to have either a game in Cart A or B , or leave it empty so then when you pick a Cart A will lose everything ? . maybe there a fix , nevermind

#2 Didn't work i put in exe shortcut (properties -> target ) Maybe that's because i'm running Catapult.exe not OpenMSX ? i'll try it with OpenMsx.exe

#3 work with me However i got this highlight OSD message at first then disappeared.
Error executing delayed command: plug: plugfailed: joystick2 already plugged in joyporta.

#4 Work just fine (without the OSD warning)

i don't know ! i feel running Catapult is easier than OpenMSX or at least is just me !

Thank you very Manuel.
BTW How about Binding ?
i want to bind delete as a reset ? And How about swappin F10 to (~) for opening Consol ?

By Manuel

Ascended (16625)

Manuel's picture

21-06-2020, 21:28

#2 only works on openMSX.exe and you need to point Catapult to your bat file.
#3 I think the message is probably "joystick2 already plugged in joyportb". Well, you can make it a bit smarter:

unplug joyportb
plug joyporta joystick2

Try things like this:

bind "keyb DELETE" reset
bind "keyb MINUS" "toggle console"

Are you sure you want this? You can't use the delete key in MSX-BASIC anymore then, without getting a reset...
And the last one only works to open the console. The console uses the - character to type a - in the console...

By sss77

Resident (44)

sss77's picture

22-06-2020, 08:12

Can you explain How to Point catapult to my bat file ?
hmm i'll change Delete to something else ,

i mean (~) Tilde (Not Minus) the key above TAB
About :
unplug joyportb
plug joyporta joystick2

Still Shown the OSD warning ?

Page 3/4
1 | 2 | | 4