Bennu Game Development

English Forums => Platforms => Android => Topic started by: josebita on January 01, 2013, 04:57:24 PM

Title: Advance info
Post by: 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.
Title: Re:Advance info
Post by: 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...
Title: Re:Advance info
Post by: josebita on January 01, 2013, 05:21:42 PM
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.
Title: Re:Advance info
Post by: SplinterGU on January 01, 2013, 11:34:09 PM
but I don't understand... I have lot of games with joys support.
Title: Re:Advance info
Post by: josebita on January 06, 2013, 06:10:15 PM
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.
Title: Re:Advance info
Post by: SplinterGU on January 07, 2013, 02:18:32 AM
but is possible with previous SDL use the joys attached or not (without refresh when you connect and disconnect)?
Title: Re:Advance info
Post by: josebita on February 15, 2013, 11:13:10 AM
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 :)
Title: Re:Advance info
Post by: panreyes on February 15, 2013, 11:17:11 AM
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
Title: Re:Advance info
Post by: FreeYourMind on February 15, 2013, 11:52:12 AM
no works in 2.2 (in the other forum you put 2.2)
Title: Re:Advance info
Post by: 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

The code is pretty much done, it just needs testing.
Title: Re:Advance info
Post by: BlackCurtain on July 12, 2013, 10:57:31 AM
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!
Title: Re:Advance info
Post by: josebita on August 20, 2013, 02:54:07 PM
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
Title: Re:Advance info
Post by: tmoney on August 22, 2013, 12:19:08 AM
cool. do you have any idea when you will post an updated version of the packager?
Title: Re:Advance info
Post by: josebita on October 14, 2013, 08:01:15 PM
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.