love icon indicating copy to clipboard operation
love copied to clipboard

[BUG] Seems there is something wrong with 8bitDo gamepads in 11.5

Open dganzella opened this issue 4 months ago • 4 comments

hello! I just started development with Love2D and got to a issue using my old 8bitdo Zero bluetooth gamepad in macOSX.

In Love2D 11.5, this is the data I get:

name 8Bitdo Zero GamePad GUID 05006f42ac050000020000004f066d02 Mapping: 05006f42ac050000020000004f066d02,*,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b6,leftshoulder:b4,rightshoulder:b5, x:b2,y:b3,platform:Mac OS X,

-- Not only the GUID is different from what seems to be the actual GUID provided https://github.com/mdqinc/SDL_GameControllerDB , but also the mapping is wrong.

but not only that -- the map is unfixable because a single button is lighting up multiple inputs. For example, pressing A in the controller lights up b0, b1, b2 and b3

in 11.4, this is what I get:

name 8Bitdo Zero GamePad GUID 03000000a00500003232000009010000 Mapping: 03000000a00500003232000009010000,8BitDo Zero Gamepad,a:b0,b:b1,back:b10,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b6,rightshoulder:b7,start:b11,x:b3,y:b4,hint:SDL_GAMECONTROLLER_USE_BUTTON_LABELS:=1,platform:Mac OS X,platform:Mac OS X

the GUID seems to be the correct one and the mapping works perfectly.

so I'm guessing there is a bug in 11.5, or maybe my 8bitdo zero is no longer supported (its an old controlelr, from like 2017 I think)

I tried copying the mapping from 11.4 to 11.5 but no dice.

Thank you!!

dganzella avatar Aug 27 '25 06:08 dganzella

Do you have any way to test on another platform? Possibly, a macOS-specific bug in SDL?

Controllers from 2017 are not that old, and should still be supported.

tpimh avatar Sep 03 '25 11:09 tpimh

Do you have any way to test on another platform? Possibly, a macOS-specific bug in SDL?

Controllers from 2017 are not that old, and should still be supported.

I do not but I just ordered a 8bitdo lite 2 that arrives later this month. this is much newer, already USB C, I can test 11.4 vs 11.5 and check if this one works

dganzella avatar Sep 10 '25 03:09 dganzella

You're not alone. 8bitdo gamepads seems to do some unexpected things which can require work-arounds on mac.

I don't personally own any of these gamepads, but this thread on the pyglet Discord server and commits below may be relevant:

  • Broke things: https://github.com/pyglet/pyglet/commit/ba71b7f34eddd6cc461cb49661120eff4a930440
  • Fixed them: https://github.com/pyglet/pyglet/pull/1297/files

Yes, it's a Python framework rather than Lua, but the weird behavior sounds very similar.

pushfoo avatar Oct 19 '25 06:10 pushfoo

Do you have the same problem with a love 12 nightly build? Also when testing, avoid using third party GUID databases like the one you linked, to help narrow down where the issue is.

slime73 avatar Nov 23 '25 17:11 slime73