About Store Forum Documentation Contact



Post Reply 
JoypadClass on mobile devices?
Author Message
gwald Offline
Member

Post: #1
JoypadClass on mobile devices?
Hello,
I've been looking at esthenel's JoypadClass & InputButton classes, very usefulness but one issue i've found:
http://www.esenthel.com/community/showth...p?tid=6453
No biggy.

So using this, I was wondering if Android/iOS have the same interface to controller devices?

This is what I mean:
http://www.phonearena.com/news/10-game-c...ts_id39901
And
http://www.theverge.com/2013/2/20/400127...oid-or-ios

These are Portable Games Controllers, but usb controllers work just as well (ebay cheap!) via a USB OTG converter cable.

These are becoming more popular, not only for smart phones but also tablets.
Also, some devices having HDMI out for TV output!

Anyway, I don't have access to an android device only emulator (which doesn't run EE builds).
I got a few iOS devices but no access to a mac to build anything :(

So I can't test it, if you know.. please let me know smile

Cheers
gwald.

My Blog
http://www.esenthel.com/community/showthread.php?tid=6043

I hang out at Esenthel IRC Channel
http://webchat.freenode.net/?channels=#Esenthel
(This post was last modified: 05-23-2013 01:26 PM by gwald.)
05-23-2013 01:25 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: JoypadClass on mobile devices?
Hi, I only have Logitech Rumblepad 2, after connecting it to my Asus Transformer Prime, the tablet does not detect it at all, so I can't add any joypad support for Android yet.

As for the iOS, I'm not aware of any joypad/joystick/gamepad specific API for iOS.
05-26-2013 02:25 PM
Find all posts by this user Quote this message in a reply
Rubeus Offline
Member

Post: #3
RE: JoypadClass on mobile devices?
(05-23-2013 01:25 PM)gwald Wrote:  These are Portable Games Controllers, but usb controllers work just as well (ebay cheap!) via a USB OTG converter cable.

This requires a rootkit on 99% of Android devices. Very few support OTG connections straight from the manufacturer-only 1 or 2 models, last I saw.
05-26-2013 04:11 PM
Find all posts by this user Quote this message in a reply
gwald Offline
Member

Post: #4
RE: JoypadClass on mobile devices?
Thanks for the replies,

The Logitech Rumblepad 2, I assume it's the wireless RF model.
http://forum.xda-developers.com/showthre...?t=1623298
The last post recommend, not free but popular:
https://play.google.com/store/apps/detai...rch_result

"As for the iOS, I'm not aware of any joypad/joystick/gamepad specific API for iOS. "
There is a popular keyboard emulation SDK, from the second link:
"On iOS, game developers have almost universally selected the iCade standard as the language that the games and gamepads communicate with. It cleverly sidesteps Apple’s limited Bluetooth support in iOS, but more importantly, its widespread adoption also means that games that support one gamepad may also be supported by other iOS-compatible models, even if they haven’t been officially tested. We’ve included links to each gamepad’s iOS compatibility list, and even if a game isn’t listed below, the odds are pretty good that it’ll still work."

Good doc here:
http://www.raywenderlich.com/8618/adding...-your-game

"This requires a rootkit on 99% of Android devices. Very few support OTG connections straight from the manufacturer-only 1 or 2 models, last I saw. "

Android 4.0 has native (kernel) gamepad support, it's the manufactures disabling hosting support thus rooting.
Also problem here is EE is using 2.3.3 SDK which doesn't support it.

I guess for now the only way for controller support is via keyboard emulation, which means no analog support.

Thanks anyway smile
05-27-2013 01:48 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Rubeus Offline
Member

Post: #5
RE: JoypadClass on mobile devices?
(05-27-2013 01:48 AM)gwald Wrote:  Android 4.0 has native (kernel) gamepad support, it's the manufactures disabling hosting support thus rooting.
Also problem here is EE is using 2.3.3 SDK which doesn't support it.

This may be true, but it's the OTG cables that they don't support. I have a Nexus 7, which is vanilla Android 4.x. I was looking into the OTG just a couple weeks ago in order to gain access to an external storage device.
I'm really not very fond of the Android OS. I'm absolutely dreading putting money down to get a Mac and an iOS device. It makes me want to shower just thinking about it. X_X
05-27-2013 03:20 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #6
RE: JoypadClass on mobile devices?
(05-27-2013 01:48 AM)gwald Wrote:  The Logitech Rumblepad 2, I assume it's the wireless RF model.
http://forum.xda-developers.com/showthre...?t=1623298
I did see that link in the past, but it requires rooting.

Quote:The last post recommend, not free but popular:
https://play.google.com/store/apps/detai...rch_result
I've installed this https://play.google.com/store/apps/detai...rch_result and it did not detect my logitech pad.

Quote:Good doc here:
http://www.raywenderlich.com/8618/adding...-your-game
I took a quick look, if it's based on touches, then you can add support for that by yourself through EE.Touches

Quote:Android 4.0 has native (kernel) gamepad support, it's the manufactures disabling hosting support thus rooting.
Also problem here is EE is using 2.3.3 SDK which doesn't support it.
Not at all, EE uses lowest supported API level, but I can still use 4.0 Android API through JNI as long as the device supports it.
The problem is that Android does not detect my pad, and I can't add support for pads without actually testing one.
05-27-2013 12:59 PM
Find all posts by this user Quote this message in a reply
gwald Offline
Member

Post: #7
RE: JoypadClass on mobile devices?
@Rubeus why not just root it and expose all that linux kernel goodness? grin
@Esenthel, thanks for the info, okay I'll do more research on controller support and will let you know what I find.
05-28-2013 12:54 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Rubeus Offline
Member

Post: #8
RE: JoypadClass on mobile devices?
(05-28-2013 12:54 AM)gwald Wrote:  @Rubeus why not just root it and expose all that linux kernel goodness? grin
Because I got it for development purposes, so I want my device to be the equivalent to what my clientele is using. I would cut my potential sales by 95% or more by requiring a root.
05-28-2013 01:22 AM
Find all posts by this user Quote this message in a reply
gwald Offline
Member

Post: #9
RE: JoypadClass on mobile devices?
Ahh I see. cool
05-28-2013 01:25 AM
Visit this user's website Find all posts by this user Quote this message in a reply
gwald Offline
Member

Post: #10
RE: JoypadClass on mobile devices?
Okay the ouya is still around... what about this bad boy:
http://madcatz.com/mojo/
It's NVIDIA Tegra 4 and on par with the PS Vita!

Also the gamestick: http://gamestick.tv/
It uses the same controller specifications.

Oh.. and what about the Sony getting in on the action?
http://en.wikipedia.org/wiki/PlayStation_Vita_TV

Any one know how to do JNI wrapping from the editor? lol
Here's the speficiations:
http://docs.nvidia.com/tegra/index.html#...llers.html
10-11-2013 11:30 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply