Android Gamepad Support

tried to compile test build but the android port won't compile with this error:

Code:
Compiling APK ...
-----------------------------------------------------------------------
Buildfile: D:\Games\OpenBOR\Engine\Trunk\engine\android\build.xml

BUILD FAILED
D:\Games\OpenBOR\Engine\Trunk\engine\android\build.xml:90: Cannot find D:\tools\ant\build.xml imported from D:\Games\OpenBOR\Engine\Trunk\engine\android\build.xml

the build.xml file is definitely there !

here is a test build based on a earlier release: https://drive.google.com/open?id=1vabWpE4hBP7x1VrwLC-9wb-WSaa2k_8g please report back bWWd.
 
Yes 32 limit is checked just after remapping.
Is checked in game when you press...

For msmalik :
Check the local.properties to target to sdk
Or use an environment variable to target to sdk
And delete copy_me file
 
msmalik681 said:
tried to compile test build but the android port won't compile with this error:

Code:
Compiling APK ...
-----------------------------------------------------------------------
Buildfile: D:\Games\OpenBOR\Engine\Trunk\engine\android\build.xml

BUILD FAILED
D:\Games\OpenBOR\Engine\Trunk\engine\android\build.xml:90: Cannot find D:\tools\ant\build.xml imported from D:\Games\OpenBOR\Engine\Trunk\engine\android\build.xml

the build.xml file is definitely there !

here is a test build based on a earlier release: https://drive.google.com/open?id=1vabWpE4hBP7x1VrwLC-9wb-WSaa2k_8g please report back bWWd.

I think that bwwd got a crash..
You need to use u64 bit for keys
Also unsigned type ot Data in joystick struct needs to be u64
 
Just tested new build. Does not work.

I'm on the Nvidia shield TV.

Mouse doesn't show cursor, Keyboard has no control over anything
Controller d-pad still doesn't move.
 
@White Dragon
could you please fix the latest build.  The android build will not compile with this error:

Code:
-----------------------------------------------------------------------
Building libraries from OpenBOR source...
-----------------------------------------------------------------------
Android NDK: Found platform level in ./project.properties. Setting APP_PLATFORM to android-19.
[armeabi-v7a] Install        : libSDL2.so => libs/armeabi-v7a/libSDL2.so
[armeabi-v7a] Install        : libopenbor.so => libs/armeabi-v7a/libopenbor.so
-----------------------------------------------------------------------
Compiling APK ...
-----------------------------------------------------------------------
Buildfile: D:\Games\OpenBOR\Engine\Trunk\engine\android\build.xml

BUILD FAILED
D:\Games\OpenBOR\Engine\Trunk\engine\android\build.xml:90: Cannot find D:\tools\ant\build.xml imported from D:\Games\OpenBOR\Engine\Trunk\engine\android\build.xml

Total time: 0 seconds
-----------------------------------------------------------------------
Press any key to continue . . .

Every time it fails to build to makes a local.properties file pointing to "sdk.dir=" I updated it to "sdk.dir=C:\\android\\sdk" but it failed and reverted back to the first one.  I then updated it again with the correct sdk directory and made  local.properties file read only then it worked.  If you know what is wrong please fix this.
 
test build: https://drive.google.com/open?id=10Uah3V2vjGEqNLw4sNpqFmWbFmHgILRA

tried to modify the mainfest with this:
Code:
	<!-- test for sheild tv -->
	<uses-feature android:name="android.hardware.gamepad" android:required="false" />
	<uses-feature android:name="android.hardware.touchscreen" android:required="false" />

@bWWd
try this test build and see if it is any better.  I have ordered the same gamepad as yours but it's from china so it could take a month to get here.

@lilcza
Please try this test build on your Nvidia shield TV.
 
Stil doesnt work, its generic gamepad, theres lots of rebrandings of it everywhere on ebay.
If i can help somehow by running some software on android with this gamepad let me know.
 
bWWd said:
Stil doesnt work, its generic gamepad, theres lots of rebrandings of it everywhere on ebay.
If i can help somehow by running some software on android with this gamepad let me know.

If you can find app that gives the exact keycode of the button pressed that might help.  It might be under something like gamepad mapper or key mapper.

There is a chance when you press a direction it reports to different keys maybe.
 
I have usual axis inputs in openbor but i remember this axis problem with gyro.. when accelerometer was not disabled then ive got axis recognized for all my keys, so maybe disabling gyro have something to do with my gamepads not working fully? maybe accelerometer should be disabled differently ? Or assigned to something that wont disrupt input setting like before.
2G4A1.png
 
ok maybe bwwd is right!
try to test:
https://www4.zippyshare.com/v/1qW8lGAU/file.html
it has accelerometer disabled on c code: SDL_SetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, "0");
and all keys to 64bit (with corrected base key 'k')

in this debug version you can read the key flag number to see if the button is pressed!

for msmalik681:
before compile android delete copy_and_rename_me_to_local.properties if you set SDK variable environment
 
IT says keyflag 0 all the time, doesnt change when i press buttons, dpad still doesnt work after setup.
 
Back
Top Bottom