summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/OSX
AgeCommit message (Collapse)Author
2016-12-01Merge pull request #4362 from ligfx/osxhotplugAnthony
ControllerInterface: enable hotplugging on macOS
2016-11-30ControllerInterface: enable hotplugging on macOSMichael Maltese
2016-11-30ControllerInterface: replace Reinitialize with RefreshDevicesMichael Maltese
The SDL backend crashes when you close a joystick after SDL_Quit has been called. Some backends don't need to be shutdown and re-initialized everytime, we can just ask to enumerate devices again.
2016-10-31Merge pull request #4405 from xrix4096/mac-unknown-joyaxisMarkus Wick
Make analog triggers on PS3 controllers accessible on Mac
2016-10-30Use the IOHIDElement cookie as a part of the axis name for unknown axis. ↵Chris Pritchard
Previously the 'usage' value was used to identify the axis by name, but this is not unique. For example on a PS3 controller *all* axis other than the well known ones return a usage of '1' so there are 30 or more axis all named "1". This stops things such as analog triggers being usable. Using the element cookie uniquely identifies each axis and allows them to be assigned successfully as controls
2016-10-24Fix various comment typosSintendo
2016-07-14ControllerInterface: Make the ID assigning code commonLéo Lam
This makes the device ID assigning code common to all backends, by moving it to AddDevice() instead of copy-pasting or replicating the logic in the backends. Also, to prepare for hotplugging, instead of relying on a name usage count, the new ID assigning system always starts from ID 0 and tries to assign the first ID that is not used.
2016-07-12Strip whitespace from Evdev and OSX controller names.Scott Mansell
2016-06-25ControllerInterface: Switch to std::shared_ptrLéo Lam
Small cleanup by using std::shared_ptr and getting rid of ciface.Devices() which just returned the m_devices (which defeats the point of making m_devices protected). Incidentally, this should make the code safer when we have different threads accessing devices in the future (for hotplug?). A lot of code use Device references directly so there is no easy way to remove FindDevice() and make those unique_ptrs.
2016-06-25ControllerInterface: Don't pass m_devices to the backendsLéo Lam
Previously, the devices vector would be passed to all backends. They would then manually push_back to it to add new devices. This was fine but caused issues when trying to add synchronisation. Instead, backends now call AddDevice() to fill m_devices so that it is not accessible from the outside.
2016-06-24Reformat all the things. Have fun with merge conflicts.Pierre Bourdon
2016-02-05normalize and check upper/lower bounds of hats input on OS XNick Tiberi
2015-10-02InputCommon: Use NSNumber numeric literals in Obj-C codeLioncash
2015-09-17ControllerInterface: Fix -Winconsistent-missing-override warnings on OSXLioncash
2015-06-21Fix misc. clang warnings - mostly complaints about inconsistent use of override.comex
Previously, MacOpenFile only overrode anything on OS X; otherwise it was just a useless method, which is presumably why it wasn't marked override in the first place. Address this more sanely by wrapping it in #ifdef __APPLE__.
2015-05-25Set copyright year to when a file was createdTillmann Karras
2015-05-25Update license headers to GPLv2+Tillmann Karras
2014-11-28ControllerInterface: Make UpdateInput / UpdateOutput return voidJasper St. Pierre
The return values here have never been checked, so it doesn't make sense to return a value to begin with.
2014-11-28ControllerInterface: Implement dummy UpdateInput / UpdateOutputsJasper St. Pierre
Make the implementation here a bit easier.
2014-10-28Make some OSX-only functions staticLioncash
Gets rid of function prototype warnings.
2014-09-14Kill off the wx casts within InputCommon and GLInterface.Lioncash
All because someone didn't actually return the wxWindow handle for the edge case.
2014-09-13InputCommon: Initialize NSDictionaries using literal syntax.Lioncash
2014-09-03Change ControlState typedef to double, and change all related floats/doubles ↵Rachel Bryk
to use it. Fixes an off by 1 issue related to double->float->double conversion, and eliminates numerous warnings.
2014-08-30InputCommon: Clean up brace placementsLioncash
2014-03-09clang-modernize -use-nullptrTillmann Karras
and s/\bNULL\b/nullptr/g for *.cpp/h/mm files not compiled on my machine
2014-02-18Convert all includes to relative paths.Lioncash
2014-02-17Second and final pass of clearing out tabs.Lioncash
2014-02-16Fix some vertical alignmentsLioncash
ie. uses spaces for alignment.
2014-02-10Replace all include guard ifdefs with "#pragma once"lioncash
2014-02-09ForceFeedback: Add OSX rumble supportJules Blok
2013-12-31Remove unnecessary Src/ foldersJasper St. Pierre