|Jul 14, 2007, 11:39 PM||#1|
USB controller support in game
I have a simple USB NES controller that I bought from Retrozone, and I would really like to program the ability to use a USB controller in the game I'm making (in C/openGL with XCode). Does anyone know a package or interface I can use to achieve this?
|Jul 16, 2007, 02:53 PM||#2|
SDL has support for USB game controllers. It is cross-platform so you can support Windows and Linux as well as Mac OS X. SDL can also work with OpenGL.
Apple provides support for USB game controllers with the HID Manager. Apple does not have a lot of HID Manager documentation, but they provide a HID Utilities sample on their developer site that you can plug into your game.
Author, Xcode Tools Sensei
|Jul 17, 2007, 11:46 AM||#3|
the latest stable version of SDL has a problem with USB controllers. i found out while trying to figure out why i couldn't get it to work right. supposedly it's been fixed for the next release which is already in an RC state. so if you're going to go with SDL make sure you use the latest dev version or wait for 1.2.12
20" Intel iMac 2.16GHz C2D, OS X.5
ASUS M51Sn laptop running Ubuntu/Vista
play Dofus on your Mac? try Dofex
|Jul 17, 2007, 01:53 PM||#4|
Not sure if this will help but this software has helped me with just about any device i could plug into my mac.
I use it for the gaming pad below. I'm sure it can handle an NES pad :P
That said I don't game much anymore but i still use the Fang to launch apps, hot key combos in the Finder and other apps. It actually makes navigating and working with apps that have a lot of hotkeys combos very fast and efficient.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|iPad: Controller support tweaks||nolegirl||Jailbreaks and iOS Hacks||1||Jan 5, 2014 12:41 AM|
|Unity Update Adds iOS 7 Game Controller Support||MacRumors||iOS Blog Discussion||3||Oct 11, 2013 08:42 PM|
|Apple Approves Game With iOS 7 Controller Support||MacRumors||iOS Blog Discussion||23||Sep 21, 2013 10:28 PM|
|What about video game controller support?||skimcpip||iPhone||0||Sep 10, 2013 03:29 PM|
|OS X: Choosing a USB Game Controller - Help!||BigMacAttack1||Mac and PC Games||5||Mar 4, 2013 03:41 PM|
All times are GMT -5. The time now is 03:09 PM.