Do you use HID Manager in your games?

Member
Posts: 208
Joined: 2005.04
Post: #1
Just wondering how many of you use HID Manager directly, and what you think of the API and/or documentation.
Quote this message in a reply
Lord Vader
Unregistered
 
Post: #2
I have only looked at HID Manager, from what I have seen it seems useless to me because I don’t really car about joysticks and stuff.
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #3
I don't mind the COM-esque API, that's easily understandable once you've caught onto the style. What bugs me is the inconsistency of the devices themselves. You never know what a particular kind of input will actually show up as, or what kinds of values it'll return.
Quote this message in a reply
Member
Posts: 269
Joined: 2005.04
Post: #4
I think the HID Manager has gotten a bum rap. It's far from the easiest API out there, but it's no CoreAudio. Well, I suppose it is if you don't get HID Utilities. With that you can easily get gamepads working in about a day or less.
Quote this message in a reply
Oldtimer
Posts: 834
Joined: 2002.09
Post: #5
I second the HID Manager through HID Utilities as well. I managed to implement gamepads in a day, with spare time for InputSprocket.
Quote this message in a reply
Sage
Posts: 1,403
Joined: 2005.07
Post: #6
???

How come ive never heard of it, is it for controllers and steering wheels and stuff?

Sir, e^iπ + 1 = 0, hence God exists; reply!
Quote this message in a reply
Member
Posts: 156
Joined: 2002.11
Post: #7
Jammin' Racer uses it.

Time is running out!
Quote this message in a reply
Member
Posts: 208
Joined: 2005.04
Post: #8
unknown Wrote:???

How come ive never heard of it, is it for controllers and steering wheels and stuff?

That's exactly what it's for. It also handles other input devices like mice, keyboards, and barcode scanners. Here are the docs for it:

http://developer.apple.com/documentation...ptual/HID/
Quote this message in a reply
Member
Posts: 79
Joined: 2002.08
Post: #9
OneSadCookie Wrote:You never know what a particular kind of input will actually show up as, or what kinds of values it'll return.

That's the core problem. Using the HID manager is not especially difficult but the need to more or less custom handle every device out there is a pain and leads to lots of support emails.

KenD

CodeBlender Software - http://www.codeblender.com
Quote this message in a reply
Member
Posts: 208
Joined: 2005.04
Post: #10
OneSadCookie Wrote:What bugs me is the inconsistency of the devices themselves. You never know what a particular kind of input will actually show up as, or what kinds of values it'll return.

A good example of this is hatswitches. On my MadCatz controller, the hatswitch values are laid out like so:

8 1 2
7 0 3
6 5 4

However, my Logitech Rumblepad 2 lays them out like this (which is counter-intuitive IMO):

7 0 1
6 8 2
5 4 3
Quote this message in a reply
Member
Posts: 116
Joined: 2002.04
Post: #11
Quote:What bugs me is the inconsistency of the devices themselves. You never know what a particular kind of input will actually show up as, or what kinds of values it'll return.

None of which is Apple's fault BTW.

Apple has provided feedback to device manufacturer's for years - and they hardly implemented any of it. Hardware vendors don't even attempt to fix any bugs in existing products. They might fix it in the next version of the device if they're in a good mood. Of course that doesn't help all the people that own the current version of the device.

Now, with that said, some good proposals have been presented to Apple over the years for building a system to take all the inconsistent inputs and map them into a consistent format before the application gets the input. Apple was receptive to the idea and it was apparently close to release. However, it has never seen the light of day, likely for a variety of reasons - some of which are valid technical concerns.

With all this said, HID Utilities works pretty well and once you figure out the most popular device exceptions, it's not too bad.

Wade
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  How to write a custom memory manager Malarkey 3 3,660 Oct 27, 2005 09:52 AM
Last Post: aqua_scummm
  Bundles with Carbon File Manager... BinarySpike 2 3,198 Apr 25, 2005 03:36 PM
Last Post: BinarySpike
  InputSprocket to HID Manager SethWillits 23 9,752 Oct 12, 2004 03:55 PM
Last Post: anonuser