Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread Display Modes
Old Jul 14, 2007, 10:39 PM   #1
macrumors newbie
Join Date: Jul 2007
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?
guest42 is offline   0 Reply With Quote
Old Jul 16, 2007, 01:53 PM   #2
macrumors regular
Join Date: Mar 2006
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.
Mark Szymczyk
Author, Xcode Tools Sensei
szymczyk is offline   0 Reply With Quote
Old Jul 17, 2007, 10:46 AM   #3
macrumors 6502a
ExoticFish's Avatar
Join Date: Dec 2002
Location: The inner depths of madness, aka Kent, OH
Send a message via AIM to ExoticFish Send a message via Skype™ to ExoticFish
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
ExoticFish is offline   0 Reply With Quote
Old Jul 17, 2007, 12:53 PM   #4
macrumors 6502a
boss1's Avatar
Join Date: Jan 2007
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.

boss1 is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Doodle Control 1.4 Goes Free on the App Store for Limited Time TammyWal22 iPhone and iPod touch Apps 0 Jun 10, 2011 05:26 AM
Control Which Apps Show Up In Game Center? t0264 iPhone and iPod touch Apps 0 Dec 27, 2010 06:25 PM
Apple Remote Control support in Leopard Volante Mac Pro 0 Feb 11, 2008 01:30 PM
Which USB Cameras supported in 10.4.9 ikarus79m OS X 1 Mar 14, 2007 05:49 AM
Should I buy a USB controller to begin gaming on my new PB? settledown Games 9 Nov 16, 2004 08:33 PM

All times are GMT -5. The time now is 02:52 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013,, LLC