Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OSX 360 gamepad driver. #61

Closed
benvanik opened this issue Jan 10, 2014 · 4 comments
Closed

Add OSX 360 gamepad driver. #61

benvanik opened this issue Jan 10, 2014 · 4 comments

Comments

@benvanik
Copy link
Collaborator

Haven't looked into this too much, but it should be possible to do.
http://www.lastrayofhope.com/2009/06/12/athena-xbox-360-pad-and-mac-os-x/
https://developer.apple.com/library/mac/technotes/tn2187/_index.html

@wtfaremyinitials
Copy link
Contributor

I don't know much C++, but I'll give it a shot after I'm done with finals.

@benvanik
Copy link
Collaborator Author

Things don't even compile under OSX right now, so it may not be possible to
do anything beyond research. Research would be interesting, though, as
there doesn't seem to be clear ways to get access to gamepads on OSX
(though it seems like 10.9 may have added some APIs), and it'd be nice to
know what and how to support different controllers when the time comes.

On Tue Jan 14 2014 at 3:40:43 PM, Will Franzen notifications@github.com
wrote:

I don't know much C++, but I'll give it a shot after I'm done with finals.


Reply to this email directly or view it on GitHubhttps://github.com//issues/61#issuecomment-32320341
.

@3van
Copy link

3van commented Dec 16, 2014

Unfortunately the 360 gamepad (and the wireless receiver) don't represent themselves as HID-compliant device classes so IOHIDManager and ForceFeedback won't do anything with them out of the box.

The driver alluded to in your first link implements the protocol as an IOHIDDevice. The author hasn't updated it in a while, though, and a lot broke with Mavericks (and Yosemite). A lot of these have been fixed in a fork of the driver.

So essentially, nothing special really needs to be done on the dev side to support the 360 controller itself. The user just needs to install this driver and then it acts just like any other HID gamepad.

I haven't looked much at the Xenia code yet, but if there are already interfaces for implementing gamepad support on other platform(s), I'd be happy to work on an implementation for OS X.

@benvanik
Copy link
Collaborator Author

FYI: OSX probably won't be supported for awhile - at least until Apple moves beyond OpenGL 4.1. The new GL driver needs a lot of 4.3-4.5 features. Probably not worth doing much more there.

mkwong98 pushed a commit to mkwong98/xenia that referenced this issue Jan 24, 2023
performance improvements, kernel fixes, cpu accuracy improvements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants