TerryCavanagh / VVVVVV

The source code to VVVVVV! http://thelettervsixtim.es/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GameCube controllers use swapped glyphs

leo60228 opened this issue · comments

All non-Joy-Con controllers with Nintendo's VID use LAYOUT_NINTENDO_SWITCH_PRO. For GameCube controllers (057e:0337) this is incorrect, with issues like A and B being swapped.

Shoot, I probably need to set USE_BUTTON_LABELS=0 or something...

Should have a commit tomorrow that just sets the hint, but to confirm: Does setting SDL_GAMECONTROLLER_USE_BUTTON_LABELS=0 fix the issue for this device, at least for the A button? It probably won't get B/X right but we're specifically looking at north/south/east/west correctness.

It does not. I'm not sure "north/south/east/west correctness" is actually meaningful here, since the GameCube controller does not have the buttons arranged in a diamond shape like most controllers do.

Hmm, I think I understand a bit more - does adding a check for the GameCube product ID fix it? We can probably just use Xbox for now (maybe Generic if we want to avoid color coding?), though if we have space I suppose it'd be cool to add GameCube bitmaps...

Yes.

Alrighty, if nobody beats me to it I'll add this check in the morning.