InputSprocket to HID Manager
I looked at the code, and it is something of a mess. I'll do my very best to clean it up during the weekend. In the meantime, check out the HID Utilities sample code from Apple - that's where I learned it all. Look at the examples, and you'll be up and running with HID in no-time. 
Anyways, the code is up at http://www.rusted.se/hidstuff.zip
I know there are bugs in it, it doesn't work perfectly with all gamepads (which is a bit odd) but at least it's a starting point. There's a lot of hardcoded stuff, and it is not compileable. (Because of omitted source)
The source includes the following:
InputController.cpp/h - the classes for handling an input controller. You create a pointer of type BaseInputController (which is a singleton, by the way) and set it to point to an object of the type you want (GetKeys, Events, HID or ISp) - check out the header.
HIDDevice.cpp/h is just the stuff that encapsulates a HID device, of course.
HIDDialog.cpp/h is a configuration dialog in Carbon. It is written on top of the stuff in BaseDialog.cpp/h, which is a quite nifty way of doing Carbon dialogs, by the way. I've gotta run, but check it out! And do ask questions.

Anyways, the code is up at http://www.rusted.se/hidstuff.zip
I know there are bugs in it, it doesn't work perfectly with all gamepads (which is a bit odd) but at least it's a starting point. There's a lot of hardcoded stuff, and it is not compileable. (Because of omitted source)
The source includes the following:
InputController.cpp/h - the classes for handling an input controller. You create a pointer of type BaseInputController (which is a singleton, by the way) and set it to point to an object of the type you want (GetKeys, Events, HID or ISp) - check out the header.
HIDDevice.cpp/h is just the stuff that encapsulates a HID device, of course.
HIDDialog.cpp/h is a configuration dialog in Carbon. It is written on top of the stuff in BaseDialog.cpp/h, which is a quite nifty way of doing Carbon dialogs, by the way. I've gotta run, but check it out! And do ask questions.
| Messages In This Thread |
|
InputSprocket to HID Manager - SethWillits - Jan 18, 2004, 01:06 AM
InputSprocket to HID Manager - SethWillits - Jan 18, 2004, 04:54 AM
InputSprocket to HID Manager - isgoed - Sep 2, 2004, 12:01 PM
InputSprocket to HID Manager - isgoed - Sep 2, 2004, 12:15 PM
InputSprocket to HID Manager - aarku - Sep 2, 2004, 12:41 PM
InputSprocket to HID Manager - SethWillits - Sep 2, 2004, 12:53 PM
InputSprocket to HID Manager - Fenris - Sep 2, 2004, 01:07 PM
InputSprocket to HID Manager - isgoed - Sep 2, 2004, 02:07 PM
InputSprocket to HID Manager - aarku - Sep 2, 2004, 02:10 PM
InputSprocket to HID Manager - ThemsAllTook - Sep 2, 2004, 02:20 PM
InputSprocket to HID Manager - Fenris - Sep 2, 2004 11:43 PM
InputSprocket to HID Manager - isgoed - Sep 3, 2004, 02:19 AM
InputSprocket to HID Manager - Fenris - Sep 3, 2004, 01:57 PM
InputSprocket to HID Manager - isgoed - Sep 20, 2004, 09:05 AM
InputSprocket to HID Manager - SethWillits - Sep 21, 2004, 08:20 AM
InputSprocket to HID Manager - Fenris - Oct 4, 2004, 01:07 PM
InputSprocket to HID Manager - isgoed - Oct 7, 2004, 11:22 AM
InputSprocket to HID Manager - SethWillits - Oct 9, 2004, 02:01 PM
InputSprocket to HID Manager - Fenris - Oct 9, 2004, 02:35 PM
InputSprocket to HID Manager - Fenris - Oct 9, 2004, 02:36 PM
InputSprocket to HID Manager - isgoed - Oct 10, 2004, 02:50 AM
InputSprocket to HID Manager - SethWillits - Oct 11, 2004, 04:49 PM
InputSprocket to HID Manager - aegidian - Oct 12, 2004, 04:52 AM
InputSprocket to HID Manager - anonuser - Oct 12, 2004, 03:55 PM
|
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| How to write a custom memory manager | Malarkey | 3 | 3,339 |
Oct 27, 2005 09:52 AM Last Post: aqua_scummm |
|
| Do you use HID Manager in your games? | Andrew | 10 | 4,464 |
Aug 14, 2005 01:00 PM Last Post: wadesworld |
|
| Bundles with Carbon File Manager... | BinarySpike | 2 | 2,886 |
Apr 25, 2005 03:36 PM Last Post: BinarySpike |
|

