Android Gamepad Support

i think that old build is using older sdl thats why it kinda works differently. in older sdl dpad works but only dpad works and other buttonts dont work, in current version dpad didnt worked and all other buttons worked.
 
@bWWd

For now this app could be a work around: https://www.youtube.com/watch?v=5_bf7rnbdsI

I have tested using otg ps4, xbox 360 and ps3 gamepads they all work.  So is it just 1 controller of yours that does not work or are there others.  I am trying to get a ps2 controller if I could re-create your bug it would be a lot easier to debug and resolve.
 
@bWWd
looks like your gamepad is based on ps2 gamepads I just connected one by otg and it has all the same issues as yours.

The controller works fine when I press the the "ANALOG" button in the middle have you tried that ?
 
bWWd said:
Buttons work, dpad doesnt work after setup , everything is detected when configuring input .
bWWd said:
It works in windows , never had problems, i tested new android build and axis shows "axis key 4" when i press up,1 when left,2 -right,8-down ,upleft-5,upright-6,downright-10,downleft -9.So it is detected.Is it possible to make it use axis buttons too to control openbor instead of only hats ?

After these reports I noticed that the SDL_PollEvent(&ev) to detect hats/exes works properly but related function nope (ex. SDL_JoystickGetAxis() and SDL_JoystickGetHat()))
So in this 7th build I have enabled from SDLActivity the DPAD buttons and I use SDL_PollEvent(&ev) to attach to hats/axes the relative values.
Now I expected that it works!

7ths test build:
https://www93.zippyshare.com/v/TXZlxpCk/file.html

7ths test build (version A) with SDL DPAD mapping:
https://www96.zippyshare.com/v/PnXr0f2c/file.html
 
Tested both, no difference from last time, everything can be configured but once i press ok to leave gamepad config then dpad doesnt work and buttons work.Is it possible to check how build 4161 compile date  apr 2015 had implemented gamepads dpad ? this was the one that had it working but other buttons didnt work.
 
bWWd said:
Tested both, no difference from last time, everything can be configured but once i press ok to leave gamepad config then dpad doesnt work and buttons work.Is it possible to check how build 4161 compile date  apr 2015 had implemented gamepads dpad ? this was the one that had it working but other buttons didnt work.

It's the same. Just change sdl build version...
BTW it's very strange...
I use the some method to check button for config and ingame
 
- fixed bug: num of plugged joystick > max num supported joystick
- improved detection of joystick for android in SDLActivity.java mapping DPAD to keyboard buttons
- improved Android Hats/Axes detection and added it into PollEvent() events
- added plug and play feature

Tested with ps4 gamepad via Bluetooth and it works well!
 
On My Nvidia Shield TV neither my Original DS4 (v1) wired or bluetooth has any movement on both the main menu or in game.

I am able to push the share button to run start a game but thats completely it.

My shield controller has the same exact issue.

I need to use a old copy of OpenBOR to do anything.
 
you need to be able to get into the menu to map your controller buttons try connecting a wired keyboard and see if the directional keys and "a" key let you navigate openbor.
 
Is there anyway i can assist in compiling a version that has menu controls working?

I remember there was someone that modified an older version with dualshock controls for the menu. Possibly i can do the same?
 
Also just tried a wireless keyboard and i cannot move at all either or select anything.

Edit: im using the most recent build. Trying the 2 links provided in this thread next with the keyboard.

Edit 2: just tried. Cant move with either.
 
Just wanted to add I got my china usb gamepad looks just like the one bWWd is using and it works but only after pressing the "ANALOG" button.  The analogs don't work but dpad does.
 
As of the most recent build for this weekend, The connectivity between the DS4 and the Shield TV controllers are spotty and iffy when they want to work.

With an external keyboard and using the X and A buttons to move up and down on the 2nd boot, as the first bootup only lets you use enter and esc mapped keys, I was able to setup my keyboard as player 4.

Then i setup my joystick after a 3rd restart of OpenBOR. But no other controller is unusable for P2 P3 or P4. I've tried every setup, from DS4 to Shield TV controller to just shield controllers to just ps4 controllers, nada.

Also many of my keyboard settings map as Joystick buttons.

Just giving a heads up as the new release says Nvidia Shield support but i guess not for the Shield TV.
 
Back
Top Bottom