Offline
France Eure Et Loire

Hello,

I finally got a gp2x (f100) with midi interface. But I found the mapping keys completly garbage. A and B are at the opposite...

Do you know how to map it with config.xml? For have A on Right, close to B on Left like on the DMG-01 and all gameboys and like on sness controllers.

I already tested all these :

<MAP src="but:0:11" dst="/event/a" />
<MAP src="but:0:12" dst="/event/a" />
<MAP src="but:0:14" dst="/event/a" />
<MAP src="but:0:13" dst="/event/b" />
<MAP src="but:0:15" dst="/event/a" />
<MAP src="but:0:16" dst="/event/a" />


<MAP src="but:0:12" dst="/event/a" />
<MAP src="but:0:14" dst="/event/b" />
<MAP src="but:0:13" dst="/event/a" />
<MAP src="but:0:15" dst="/event/a" />
<MAP src="but:0:16" dst="/event/a" />

<MAP src="but:0:12" dst="/event/b" />
<MAP src="but:0:14" dst="/event/a" />
<MAP src="but:0:13" dst="/event/a" />
<MAP src="but:0:15" dst="/event/a" />
<MAP src="but:0:16" dst="/event/a" />

<MAP src="but:0:12" dst="/event/b" />
<MAP src="but:0:14" dst="/event/b" />

<MAP src="but:0:12" dst="/event/b" />
<MAP src="but:0:14" dst="/event/a" />

<MAP src="but:0:12" dst="/event/a" />
<MAP src="but:0:14" dst="/event/b" />

<MAP src="but:0:12" dst="/event/b" />
<MAP src="but:0:13" dst="/event/a" />

But none of it did what I expected...

It is acting weird I often don't understand what happening. I know something for dump events but that worked on linux for a usb controller, I don't know how use it on gp2x

Last edited by MazHoot (Mar 19, 2021 6:47 pm)

Offline
France Eure Et Loire

I found the gp2x mapping here :

https://wiki.littlegptracker.com/doku.p … pt:mapping

so I did that :

<MAPPINGS>
<MAP src="but:0:12" dst="/event/b" />
<MAP src="but:0:15" dst="/event/a" />
<MAP src="but:0:14" dst="/event/b" />
<MAP src="but:0:13" dst="/event/a" />
</MAPPINGS>

But it don't work, it do changes but it is acting very weird, it's like lgpt changes his principal commands in same time (for exemple one button can erase, normally you have to press A+B for that...) maybe the guy who sold me the gp2x with midi interface has an other custom mapping somewhere (I can't see it). I will ask to him

Offline
Geneva, NY

So your issue is that mapping.xml OVERLAYS button commands on top of what's already mapped (in case you want to use an external controller of some type, so GP2X buttons remain the same and external buttons do similar stuff). It actually explains that on the top of the mapping.xml page you linked! You would want to use confix.xml to REPLACE the current mapping on the GP2X. Further, there used to be a mapping command to specifically flip the GP2X buttons but it's not in the wiki and I'm not sure if it will work on newer GP2X builds. I no longer have a GP2X so I can't test it but it's:

<INVERT value="YES" /> 
original xml comment wrote:

"YES" to invert button A&X with Y&B (feels like gp32/lsdj). regardless of value, X always mirrors A and Y always mirrors B

Offline
France Eure Et Loire

Hello BLEO,

Aouch, yea I should read better the documentation... I was confused because I used only mapping.xml until now and it worked good on raspberry pi with controller, and with a pi boy (raspberry pi inside gameboy shell) with the built in buttons! But because it is a raspberry pi inside, it certainly think that the button on the pi boy are an external controller.

I will test with config.xml and say, thank you! :-)

Last edited by MazHoot (Mar 19, 2021 4:11 pm)

Offline
France Eure Et Loire

I successfully did what I want by combinating this :

config.xml
<CONFIG>
    <INVERT value="YES" />
</CONFIG>

mapping.xml
<MAPPINGS>
<MAP src="but:0:14" dst="/event/b" />
<MAP src="but:0:15" dst="/event/a" />
</MAPPINGS>

I let it here in case it will help someone

Last edited by MazHoot (Mar 19, 2021 6:48 pm)