summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/SDL
AgeCommit message (Collapse)Author
2024-08-20Remove redundant semicolonsDr. Dystopia
2024-03-14SDL: Remove duplicate button/hat Inputs. Hide duplicate Axis Inputs.Jordan Woyak
2024-03-14SDL: Deduplicate Motor logic with templates.Jordan Woyak
2024-03-14SDL: Move class definition out of header.Jordan Woyak
2024-01-15InputCommon/SDL: Code style fixes.Admiral H. Curtiss
2024-01-15InputCommon/SDL: Avoid potential infinite loops from integer truncation.Admiral H. Curtiss
2024-01-15InputCommon/SDL: Check for errors from SDL_JoystickNumButtons(), ↵Admiral H. Curtiss
SDL_JoystickNumAxes(), SDL_JoystickNumHats().
2024-01-15InputCommon/SDL: Fix incorrect use of std::vector::assign() and check bounds.Admiral H. Curtiss
2024-01-13SDL: Add GameController API, cleanupMartino Fontana
2023-12-18Input: Improve Controller Interface devices threadingFiloppi
This specific issue was already addressed by https://github.com/dolphin-emu/dolphin/pull/11635 though I felt like there was something more we could do, and wasn't too happy with the likelihood of devices update calls being skipped (due to `m_devices_population_mutex` being locked).
2023-11-10SDL: Add default case to switch statementDentomologist
Fix -WSwitch warning about unhandled enum value SDL_NUM_LOG_PRIORITIES. log_level is initialized to LNOTICE right before the switch statement so this doesn't cause any behavior changes.
2023-10-26ControllerInterface/SDL: Remove Xbox 360 controller disabling hack.Jordan Woyak
2022-11-24InputCommon:SDL: Add SDL 2.26 left and right motion inputsTellowKrinkle
2022-11-01ControllerInterface: Add InputBackend interface and SDL implementation.Jordan Woyak
2022-07-25StripSpaces: only strip spacesShawn Hoffman
StripWhitespace maintains old behavior
2022-07-13InputCommon: Don't force-link against SDL2.lib on Windows.Admiral H. Curtiss
2022-07-10ci/sdl: pump messages for SDL_hidapi so device detection worksShawn Hoffman
2022-07-10sdl: enable SDL_HINT_JOYSTICK_THREADShawn Hoffman
fixes window message pumping
2022-07-10ci/sdl: re-add the x360 controller blockShawn Hoffman
2022-07-10ci/sdl: minor cleanupShawn Hoffman
2022-07-10Add SDL motion input and rumble supportJun Bo Bi
2022-06-14InputCommon: SDL 2.0.22 init crash workaroundTellowKrinkle
See https://github.com/libsdl-org/SDL/pull/5598
2022-01-16Use Common::ToLower and Common::ToUpperPokechu22
2021-07-05treewide: convert GPLv2+ license info to SPDX tagsPierre Bourdon
SPDX standardizes how source code conveys its copyright and licensing information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX tags are adopted in many large projects, including things like the Linux kernel.
2021-06-07ControllerInterface: make SDL use PlatformPopulateDevices()Filoppi
and avoid waiting on SDL async population being finished for no reason
2021-05-05InputCommon: replace SerialInterface log with ControllerInterfaceFiloppi
where appropriate. SerialInterface was a leftover from the past, and makes no sense to be used on actual/real controllers.
2021-01-27rename InputCommon/ControllerInterface/Device to CoreDeviceShawn Hoffman
2020-10-23InputCommon: Migrate logging over to fmtLioncash
Continues the migration of the logging calls over to the fmt capable ones.
2019-06-17InputCommon: Use nested namespace specifiers where applicableLioncash
2019-03-17ControllerInterface: SDL: Replace unclear bool parameter with enum class.Jordan Woyak
2019-03-17ControllerInterface: SDL cleanup and FF effect fixes.Jordan Woyak
2018-06-04Add hotplug support to SDL2 controller backendMichael M
2018-06-04SDLJoystick: store name on creationMichael M
Otherwise, Dolphin will crash when the joystick is removed.
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-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-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
2015-06-08Revert "SDL: handle SDL_QUIT event"Matthew Parlane
2015-06-05SDL: handle SDL_QUIT eventTillmann Karras
Using SDL_INIT_JOYSTICK implies SDL_INIT_EVENTS which installs a signal handler for SIGINT and SIGTERM. There will be a way to prevent this in 2.0.4 but for now we'll need to handle SDL_QUIT.
2015-05-25Set copyright year to when a file was createdTillmann Karras
2015-05-25Update license headers to GPLv2+Tillmann Karras
2015-01-19Remove an assumption in SDL.Ryan Houdek
We can compile with haptic support, and then not initialize due to haptics not being available. So if we are compiling with haptics, test initializing with haptics and if that fails attempt to initialize without haptics before bailing out.
2015-01-13 SDL haptic: minor style change based on review feedbackAdam D. Moss
2015-01-11 SDL input: unhardcode a few values.Adam D. Moss
& change effect length to half a second instead of infinite, in futile attempt to avoid runaway rumbles.
2015-01-11 SDL Input: More minor refactoring of SDL haptic effectsAdam D. Moss
2015-01-08 SDL: Refactor the SDL haptic effects a little.Adam D. Moss
2015-01-08SDL: more global memsetKarol Herbst
2015-01-06SDL Input: Support more types of force feedback for controllers through SDL.Adam Moss
2014-12-20Manually revert d34418100be19fdbdf112febde3303edd48c9247comex