OpenMSX keybindings on Pandora

Door slowerisbetter

Master (194)

afbeelding van slowerisbetter

16-07-2012, 20:11

I'm running OpenMSX on a Pandora and it's great fun, but the keys are not OK; the Pandora has an actual gamepad + analog nubs on board, but I cannot seem to bind them. Not that I have any clue to go about it, but I tried using the bind command in the console to bind keys and couldn't figure it out.

Anyone have a clue how I could go about that?

Aangemeld of registreer om reacties te plaatsen

Van Manuel

Ascended (18256)

afbeelding van Manuel

16-07-2012, 21:39

http://boards.openpandora.org/index.php?/topic/6234-openmsx-... There it is reported that the keymapping is OK... Are you using Sladecraven's port?

Van slowerisbetter

Master (194)

afbeelding van slowerisbetter

16-07-2012, 21:45

Thanks, but please check the last 3 comments of this thread;

http://boards.openpandora.org/index.php?/topic/6234-openmsx-...

The keymappings are a bit better but what you would like is use the real pad a/b (or x/y) buttons for the MSX joystick buttons and I cannot seem to get that done. So playing games now is with space (+n for Konami games) which will give you RSI :)

Van Manuel

Ascended (18256)

afbeelding van Manuel

16-07-2012, 21:59

Did you try to plug in a joystick? In the console (press F10) type: plug
If it shows that joyporta does not contain something like "joystick1", try to plug it. I hope at least that the pad is exposed as a joystick in SDL.... Try to see the options when typing in the console: plug joyporta [TAB] (where [TAB] is the tab-key to complete the possibilities...) If it contains something like 'joystick1' then you might be happy.

Modern openMSX versions autoplug a joystick if it exists to make this stuff easier.

Van slowerisbetter

Master (194)

afbeelding van slowerisbetter

17-07-2012, 00:31

The left gamepad works but the right (the a/b/x/y buttons) do not ; they are connected to something in the emulator;

X = power/caps/kana/pause/turbo/FDD
Y = play time (?) it shows minutes/seconds in the top
A, B seem not to be attached, but any pluggable doesn't work for them unfortunately (I tried to plug all options)

Does that give any clue?

Van Manuel

Ascended (18256)

afbeelding van Manuel

17-07-2012, 07:53

According to http://pandorawiki.org/SDL_Controls the X and Y button are mapped to PageUp and PageDown respectively. That means that you're currently using the reverse feature with those buttons :)

The page also lists the SDL keycodes for the other buttons. This means you can map them in openMSX with the bind command indeed.

However, I would still expect that when you plug in a joystick1 pluggable (is it available? Please confirm!) those buttons would be used for joystick buttons... You could unbind them for the reverse function first:

unbind PAGEUP
unbind PAGEDOWN

and see what happens (if available, you do need the joystick1 pluggable plugged in).

For this device, it's probably better to disable reverse altogether:

set auto_enable_reverse off

Van slowerisbetter

Master (194)

afbeelding van slowerisbetter

17-07-2012, 23:17

joystick1 is not available unfortunately. Only joystick1keys (and joystick2keys). I will try your suggestion now and see what happens.

The A/B buttons are not connected to anything I guess? They do nothing Smile

In most emulators (PCX etc), you would play with the X + B, they are the most comfortable by far.

Van Manuel

Ascended (18256)

afbeelding van Manuel

18-07-2012, 10:40

A and B are HOME and END, and those are not bound by default, indeed.

Strange that the gamepad cannot be used as a joystick (in OpenDingux it can). I'll ask around.

Van Manuel

Ascended (18256)

afbeelding van Manuel

18-07-2012, 11:25

Bad news and some good news:

{Quibus} Is there in SDL on OP a joystick device available for using the gamepad plus A,B,X,Y buttons as joystick?
{rv6502} that joystick stuff is a bit of a mess
{Quibus} On OpenDinugux, the pad is simply available as 'joystick1'
{rv6502} not on pandora
{rv6502} both nubs are separate devices
{rv6502} and so is the keypad
{Quibus} hmmmm
{Quibus} that's nasty
{rv6502} very
{Quibus} then all the functionality you get for free by having a 'joystick' device is gone
{rv6502} yup
{Quibus} Although the devices are separate, it should be possible to write some joystick driver that emulates a single joystick, I suppose
{rv6502} fixing this is on my todo list
{Quibus} rv6502: that's good to hear :-)
{rv6502} its so quirky, everything else is pretty much plain vanilla Linux PC style.
{rv6502} but the joystick is this fucked up scheme completely different than what you have on PC
{rv6502} and other sensible designs
{rv6502} Quibus: of course once that's done people will have to go and "unfix" their ports :P

Van slowerisbetter

Master (194)

afbeelding van slowerisbetter

18-07-2012, 11:11

When he says driver, he means driver for SDL right? Not for OpenMSX specifically? So that means all ports have to be unfixed indeed. But that is great to hear. Is that on IRC? Maybe I can help. I wrote drivers in the past.

Van Manuel

Ascended (18256)

afbeelding van Manuel

18-07-2012, 11:26

This is on #openpandora on FreeNode IRC.