I'm happy to say that I've patched SDL2 to include joystick support for Android, so the new SVN code now supports joysticks in Android!
You'll need Android 4.1 or over, though.
Quote from: josebita on January 01, 2013, 04:57:24 PM
I'm happy to say that I've patched SDL2 to include joystick support for Android, so the new SVN code now supports joysticks in Android!
You'll need Android 4.1 or over, though.
android 4.1 minimal?! is very high request... :(
I have an recent android device, and I don't have 4.1... you need support early versions...
Quote from: SplinterGU on January 01, 2013, 05:03:58 PM
Quote from: josebita on January 01, 2013, 04:57:24 PM
I'm happy to say that I've patched SDL2 to include joystick support for Android, so the new SVN code now supports joysticks in Android!
You'll need Android 4.1 or over, though.
android 4.1 minimal?! is very high request... :(
I have an recent android device, and I don't have 4.1... you need support early versions...
Android 4.1 is required to have working joysticks. I still need to do some testing but
the exact same binaries will work in previous Android versions, you just won't be able to use joysticks if you don't have Android 4.1 or over.
One of my premises is that BennuGD on Android must work on anything above Android 2.3.
but I don't understand... I have lot of games with joys support.
Quote from: SplinterGU on January 01, 2013, 11:34:09 PM
but I don't understand... I have lot of games with joys support.
Sorry for taking so long to answer.
The thing is that when SDL is initialized it has to know the full list of joysticks attached to the system. In order to do that you need a list of all the input devices attached to the system and you need to be able to tell the joysticks apart.
As far as I know you can do that only in Android 4.1 or over.
However, joystick button and movement where included much earlier. You can parse those events in earlier versions of Android, but you can only (as far as I know) get a full list of joysticks attached to the system in Android 4.1 or later.
The problem here is creating the list of devices, then, not parsing the input itself.
but is possible with previous SDL use the joys attached or not (without refresh when you connect and disconnect)?
Hi,
I'd like people to test the following APK in older versions of Android (2.3) and in newer ones and report on the result:
https://www.dropbox.com/s/ef7i2g5jn2azddo/MyGame-debug_20130215.apk
It should include the newer joystick code but it should be working in Android 2.3, too.
Thanks a lot in advance :)
Glad to know that :D
I will test it as soon as possible, but I don't know where. My Samsung Galaxy S i9000 has Android 4.2.1 xD
no works in 2.2 (in the other forum you put 2.2)
Here's some update to the status of the port:
http://bennugd-mobile.blogspot.com/2013/07/new-release-coming-this-time-for-ios-too.html
The code is pretty much done, it just needs testing.
Quote from: josebita on July 11, 2013, 05:54:12 PM
Here's some update to the status of the port:
http://bennugd-mobile.blogspot.com/2013/07/new-release-coming-this-time-for-ios-too.html (http://bennugd-mobile.blogspot.com/2013/07/new-release-coming-this-time-for-ios-too.html)
The code is pretty much done, it just needs testing.
Karma to that!
Here's some info on the latest development of the iOS/Android ports, I think it's pretty interesting :)
http://bennugd-mobile.blogspot.com.es/2013/08/wip-games-gpu-scaling-and-bennugd-2.html
cool. do you have any idea when you will post an updated version of the packager?
Here's a new post with info on the latest developments:
http://bennugd-mobile.blogspot.com.es/2013/10/mvr-gpu-scaling-in-app-purchases.html
For those of you looking for an easy way to package your games, see PixTemplate at the end of the post.