MissionControl icon indicating copy to clipboard operation
MissionControl copied to clipboard

Bluetooth controller for gem box (gem pad bt f500)

Open oxley192 opened this issue 5 years ago • 19 comments

I found a old Bluetooth controller that's meant to be for the gem box and it linked up if I do that same as before can we see if we can get that working too cause a good controller 15992608886698315926701372665020 15992610277603697810729487811776 15992610461935769632363721832782 15992610688523740728985056605940

Originally posted by @oxley192 in https://github.com/ndeadly/MissionControl/issues/42#issuecomment-687457928

oxley192 avatar Sep 05 '20 08:09 oxley192

Can you post the output of btdb and hid_report_tool as with the gamestick?

ndeadly avatar Sep 05 '20 08:09 ndeadly

The controller starts with 07 0f 00 00 00 00 00 00 00 00

Home button = 02 00

Back button = 02 40 Start button = 07 0f 00 00 00 00 00 00 00 08 Y button = 07 0f 00 00 00 00 00 00 10 00 X button = 07 0f 00 00 00 00 00 00 08 00 A button = 07 0f 00 00 00 00 00 00 01 00 B button = 07 0f 00 00 00 00 00 00 02 00 Lb button = 07 0f 00 00 00 00 00 00 40 00 Lt button = 07 0f 00 00 00 00 ff 00 00 00 Rb button = 07 0f 00 00 00 00 00 00 80 00 RT button = 07 0f 00 00 00 00 00 ff 00 00 L3 button = 07 0f 00 00 00 00 00 00 00 20 R3 button = 07 0f 00 00 00 00 00 00 00 40

Dpad Up = 07 00 00 00 00 00 00 00 00 00 Down = 07 04 00 00 00 00 00 00 00 00 Left = 07 06 00 00 00 00 00 00 00 00 Right = 07 02 00 00 00 00 00 00 00 00

Left analog stick Up = 07 0f 00 81 00 00 00 00 00 00 Down = 07 0f 00 7f 00 00 00 00 00 00 Left = 07 0f 81 00 00 00 00 00 00 00 Right = 07 0f 7f 00 00 00 00 00 00 00

right analog stick Up = 07 0f 00 00 00 81 00 00 00 00 Down = 07 0f 00 00 00 7f 00 00 00 00 Left = 07 0f 00 00 81 00 00 00 00 00 Right = 07 0f 00 00 7f 00 00 00 00 00

oxley192 avatar Sep 05 '20 09:09 oxley192

1599297613378661508339936252032

oxley192 avatar Sep 05 '20 09:09 oxley192

Can you double check them Home button for me? I wouldn't expect it to send 00

Try this build out and see how it works. The analog sticks will be wrong for now until I have time to properly decode them. I haven't mapped Home yet either as I suspect you made a mistake there. MissionControl-0.1.0-gembox-experimental.zip

ndeadly avatar Sep 05 '20 13:09 ndeadly

This one should hopefully map the sticks correctly now. Just waiting to hear about the home button. MissionControl-0.1.0-gembox-experimental.zip

ndeadly avatar Sep 06 '20 11:09 ndeadly

Hey just try the last one and nothing comes up in change grip / order and the home button says 02 00 15994244977976118766053030438430

oxley192 avatar Sep 06 '20 20:09 oxley192

Oh I'm dumb and forgot to actually create the handler for the controller. Try this one.

Still not convinced that's what the controller would send for home. It might be getting overwritten before you get the chance to see it. I've taken a guess at what the real value might be. Let me know if home works.

MissionControl-0.1.0-gembox-experimental.zip

ndeadly avatar Sep 06 '20 21:09 ndeadly

It works but the analog sticks are wrong up is down down is up and left is right and right is left on both and the back button and home button don't work

oxley192 avatar Sep 06 '20 22:09 oxley192

The analog sticks work fine now just back and home buttons don't

oxley192 avatar Sep 06 '20 22:09 oxley192

At least back should work now. If home doesn't then I guess it really does send the value 00 to indicate pressed. MissionControl-0.1.0-gembox-experimental.zip

ndeadly avatar Sep 06 '20 23:09 ndeadly

Lol yes the back button works but home doesn't and the controller doesnt work in controller test anymore but works fine in games and other apps

oxley192 avatar Sep 06 '20 23:09 oxley192

Alright, one last one before I head off to bed. This should hopefully work for home. Out of curiosity, I wonder what the controller sends if you press both back and home at the same time? No idea why ControllerTest would stop working. As long as everything else is working it's probably just a bug in my ControllerTest code. MissionControl-0.1.0-gembox-experimental.zip

ndeadly avatar Sep 06 '20 23:09 ndeadly

Yes home works but the controller stops working on the home overlay menu and some times pressing backing but brings up the home menu

oxley192 avatar Sep 06 '20 23:09 oxley192

Still something weird happening there by the sound of things. I'll look into it tomorrow. Might need you to log everything the controller is sending.

ndeadly avatar Sep 07 '20 00:09 ndeadly

Don't know what happened but it seem to work now in home overlay and control test app but the back button seems to act like the home button some times lol and the home button only brings up the home overlay menu and doesn't bring u to the qlaunch menu but the back button does some times lol

oxley192 avatar Sep 07 '20 00:09 oxley192

How will i log everything the controller is sending

oxley192 avatar Sep 08 '20 07:09 oxley192

I'll need to make you a special build that can do it. Sorry, I'm a bit caught up in preparing some other stuff to make an update that works with the new Atmosphere release. Can hopefully get something to you later today or tomorrow.

ndeadly avatar Sep 08 '20 09:09 ndeadly

That's cool bud when ever u can and thank u for doing this 🙂

oxley192 avatar Sep 08 '20 10:09 oxley192