Today im just got
MFI Game Controllers to works in glbasic :-) for iOS7+, while iCade still working with iOS5.1.1. Button Presaures is also supported.
Rather to add them to the glbasic included JOY commands, im have dedicated to creating a another Api for it.
The reason is input behaiver for Android, iOS and Windows is quite different, and there is some incompatible between platforms with various commands, So its better to join them to use one API instead.
Button Preasure on iOS cannot been used with Joy commands, while with Android, some sticks is mapped quite different and then impossible to route them to the Joy commands. Here its easier to route them to KEY() command instead. Few Android controllers is auto mapped, but not all.
Here is the currectly supported devices and controllers:Android :: "Ouya", "GameStick", "FireTV", "GamePad", "Keyboard"
iOS :: "iOS Gamepad", "iOS Extended", "iCade"
Windows :: "xbox", "Keyboard"
Pandora :: "Pandora"
On Android, if you plans to use
RIGHT STICK and
TRIGGERS, then Remapping is
required for ther user. This can been done in the remapping Api as well. Checkout the Remapping class for instructions how that is done.
Requirements:- xCode project Beta 5+ for iOS.
- Newer Android Extras version for Android.
Please Note:-
Android.GameControllers$() is deprecated as well, but this api works quite very similar, and easy to change it to use this api.
Release (V1.3 as 08-AUG-2015):http://www.dropbox.com/s/ipab1lb3b48j8p0/GameInput.zip?dl=0Yes, Android Extras sample is used as the example, which also include a GameInput API usage too. That part also works for other platforms.
Files Used:- GameInput.gbas, Funcs_General.gbas required for include, and AndroidExtras.gbas if you compile to Android as well.