User Tools

Site Tools


proton:gamepadmanager_60beatgamepad

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
proton:gamepadmanager_60beatgamepad [2012/07/07 04:03]
seth created
proton:gamepadmanager_60beatgamepad [2012/07/08 08:23] (current)
seth
Line 4: Line 4:
 This pad is iOS only.  See RTLooneyLadders for a working example. This pad is iOS only.  See RTLooneyLadders for a working example.
 ===Adding files and libs (iOS) === ===Adding files and libs (iOS) ===
-Add the following files to your xCode project:+Add the following files to your Xcode project:
   * Add /​shared/​Gamepad/​GamepadProvider60Beat.mm   * Add /​shared/​Gamepad/​GamepadProvider60Beat.mm
   * Add /​shared/​Gamepad/​GamepadProvider60BeatNative.mm   * Add /​shared/​Gamepad/​GamepadProvider60BeatNative.mm
Line 11: Line 11:
 Get the 60beat SDK from [[http://​www.60beat.com|60beat]]. ​ I think you need to email them, don't see it freely available on the website. Get the 60beat SDK from [[http://​www.60beat.com|60beat]]. ​ I think you need to email them, don't see it freely available on the website.
  
-Copy the contents of the SDK to /shared/addons/sbgamepad.  Why do I tell you where to copy it?  It's so the RTLooneyLadder example will find it, and you'll have a single place to change when new SDK versions come out.+Copy the contents of the SDK to /shared/iOS/60BeatGamepad.  Why do I tell you where to copy it?  It's so the RTLooneyLadder example will find it, and you'll have a single place to change when new SDK versions come out.
  
-Add /shared/addons/sbgamepad/​lib/​SBJoystickLib.a to your xCode project.+  * Add /shared/iOS/60BeatGamepad/​lib/​SBJoystickLib.a to your Xcode project 
 +  * Add /​shared/​iOS/​60BeatGamepad/​lib/​SBJoystick.h to your Xcode project
  
 ===Code additions in App.cpp === ===Code additions in App.cpp ===
Line 33: Line 34:
 </​code>​ </​code>​
  
-Next, in xCode, define RT_IOS_60BEAT_GAMEPAD_SUPPORT in the preprocesser macros in the project target. ​ It's not enough to just define it in App.h, because one of the iOS audio managers actually see this and adjust some audio things as needed. ​ (This pad actually sends fake audio signals through the mic jack to communicate)+Next, in Xcode, define RT_IOS_60BEAT_GAMEPAD_SUPPORT in the preprocesser macros in the project target. ​ It's not enough to just define it in App.h, because one of the iOS audio managers actually see this and adjust some audio things as needed. ​ (This pad actually sends fake audio signals through the mic jack to communicate)
  
 That's it! That's it!
proton/gamepadmanager_60beatgamepad.1341633828.txt.gz · Last modified: 2012/07/07 04:03 by seth