SDL icon indicating copy to clipboard operation
SDL copied to clipboard

Amazon Luna Controller causing app not to launch

Open slowe4583 opened this issue 1 year ago • 9 comments

This is in regards to MGBA which uses SDL.

"MGBA will not start if a Amazon Luna Controller is connected to my pc at least via bluetooth. If you turn of the controller it turns on. If you turn it on after MGBA boots it boots right up"

slowe4583 avatar Nov 13 '24 20:11 slowe4583

Can you debug it and see what's going on?

slouken avatar Nov 15 '24 18:11 slouken

If you point me in the right direction probably. I have some event viewer logs.

slowe4583 avatar Nov 15 '24 18:11 slowe4583

Ideally you can run the app under Visual Studio to catch any crash or debug output. @endrift might have some insight here as well.

slouken avatar Nov 15 '24 18:11 slouken

Hmm I'm not the author but let me see what I can do

slowe4583 avatar Nov 15 '24 19:11 slowe4583

This bug was filed on the advice of a user who is known to make wild assertions based on almost nothing, most of which are wrong. It's pretty questionable that SDL is the actual issue here, but I don't have an Amazon Luna controller to test with so I'm not sure either way.

endrift avatar Nov 15 '24 23:11 endrift

That's just what the creator of MGBA the GBA emulator told me. Said to put it here

slowe4583 avatar Nov 15 '24 23:11 slowe4583

I am the creator of mGBA. Squall is not.

endrift avatar Nov 15 '24 23:11 endrift

My apologies I am trying to compile it on my device but I am no programmer. Given enough time I could probably debug it.

slowe4583 avatar Nov 16 '24 00:11 slowe4583

What bluetooth radio do you have @slowe4583

on Windows with the Luna driver installed, SDL see's this as a Xinput driver and accesses it through WGI (via User mode emulated XInput), while without it is accessed via the Luna's HIDAPI implementation.

Squall-Leonhart avatar Nov 29 '24 09:11 Squall-Leonhart