Add iCade controller support to your Unity iOS project.
Objective-C C
Latest commit 8470a95 Dec 5, 2013 @mattfox12 Update README.md
The C# script is no longer required.
Permalink
Failed to load latest commit information.
XCode Classes
.DS_Store Big changes Nov 24, 2013
README.md Update README.md Dec 5, 2013
iCade8-bitty.png

README.md

iCade Unity

Add iCade controller support to your Unity iOS project.

Usage

In your Xcode project, add the files that begin with iCade to the Classes folder. Open AppController.mm from this repo, and copy/paste the lines of code to the correct places in the Unity generated AppController.mm of your project.

In MonoDevelop, simply use Input.GetKeyDown(KeyCode.JoystickButton#)), Input.GetKeyUp(KeyCode.JoystickButton#)) or Input.GetKey(KeyCode.JoystickButton#)). The corresponding button numbers are shown in iCade8-bitty.png.


iCadeReaderView.h, iCadeReaderView.m and iCadeState.h slightly modified (retains/releases delegate) from https://github.com/scarnie/iCade-iOS