https://ian.jeffray.co.uk/riscos/joypad/
I noticed in the !Help file Ian mentions a possible enhancement to save an Obey file representing the mappings chosen in the UI.
This would allow automated mapping setup in a given games !Run file for example.
Attached is a replacement !RunImage file based on the latest version that implements this.
Once applied simply then shift double click to open the app and you will see your last settings in !JoyKeysCf.
Thanks to Ian for building this awesome tool!
Code: Select all
3271 CFG=OPENOUT("<Obey$Dir>.!JoyKeysCfg")
3280 FORn=1 TO 12
3290 IF map(n)= 9 A$+=B$:B$="":sel$=" "+STR$n
3300 IF map(n)=10 A$+=B$:B$="":men$=" "+STR$n
3310 IF map(n)=11 A$+=B$:B$="":adj$=" "+STR$n
3320 OSCLI"JoyKeysEmulateKey "+STR$n+" "+STR$map(n)
3321 BPUT#CFG,"JoyKeysEmulateKey "+STR$n+" "+STR$map(n)
3330 NEXT
3340 IF B$="" A$+=sel$+men$+adj$
3350 OSCLI"JoyKeysEmulateMouse "+A$
3351 BPUT#CFG,"JoyKeysEmulateMouse "+A$
3352 CLOSE#CFG