summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface
AgeCommit message (Collapse)Author
2024-08-20Remove redundant semicolonsDr. Dystopia
2024-08-15Misc. Container Find Changesmitaclaw
2024-08-15Use 'contains' methodmitaclaw
2024-08-14Use 'contains' methodDr. Dystopia
2024-07-26Adjust order and spacing of various #includesDentomologist
Move some #includes around to match the Contributing guidelines.
2024-07-21Use C++20 erase_if() instead of erase(remove_if()) (NFC)Tillmann Karras
2024-06-15Merge pull request #12850 from jordan-woyak/device-sortingAdmiral H. Curtiss
ControllerInterface: Adjust sort priorities to ensure default keyboard-mouse device is first.
2024-06-15ControllerInterface: Adjust sort priorities to ensure default keyboard-mouse ↵Jordan Woyak
device is first.
2024-05-31TAS Input: Enable hotkeys and controller input when Input has focusDentomologist
Enable emulator hotkeys and controller input (when that option is enabled) when a TAS Input window has focus, as if it was the render window instead. This allows TASers to use frame advance and the like without having to switch the focused window or disabling Hotkeys Require Window Focus which also picks up keypresses while other apps are active. Cursor updates are disabled when the TAS Input window has focus, as otherwise the Wii IR widget (and anything else controlled by the mouse) becomes unusable. The cursor continues to work normally when the render window has focus.
2024-04-13Android/ControllerInterface: Run the init codeJosJuice
This was broken by a9a9fdd9e9. Because Init didn't run, the Android input backend would crash whenever it tried to call into JVM code.
2024-04-13Merge pull request #12632 from jordan-woyak/input-backend-implsTilka
Implement missing InputBackend classes.
2024-04-06evdev: close file descriptors in a separate threadTillmann Karras
For some reason Linux is surprisingly slow at closing file descriptors of event devices. This commit improves GUI startup times on my computer by about 1.5 seconds.
2024-04-01Merge pull request #12631 from jordan-woyak/remove-osx-input-leftoversOatmealDome
InputCommon: Remove some IOKit leftovers.
2024-03-14SDL: Remove duplicate button/hat Inputs. Hide duplicate Axis Inputs.Jordan Woyak
2024-03-14ControllerInterface: Add IsHidden function to Control interface.Jordan Woyak
2024-03-14SDL: Deduplicate Motor logic with templates.Jordan Woyak
2024-03-14SDL: Move class definition out of header.Jordan Woyak
2024-03-11InputCommon/WiimoteController: Add inputs that report the raw IR objects ↵Admiral H. Curtiss
seen by the Wiimote.
2024-03-11InputCommon: Add Android InputBackend class.Jordan Woyak
2024-03-11InputCommon: Handle window change in Quartz.Jordan Woyak
2024-03-11InputCommon: Implement xlib window change logic.Jordan Woyak
2024-03-11InputCommon: Add Win32 InputBackend class.Jordan Woyak
2024-03-11InputCommon: Add Pipes InputBackend class.Jordan Woyak
2024-03-11InputCommon: Add XInput2 InputBackend class.Jordan Woyak
2024-03-11InputCommon: Add Quartz InputBackend class.Jordan Woyak
2024-03-11InputCommon: Provide WindowSystemInfo getter for ControllerInterface.Jordan Woyak
2024-03-11InputCommon: Remove some IOKit leftovers.Jordan Woyak
2024-01-18InputCommon/WGInput: Handle add/remove events on separate thread to prevent ↵Admiral H. Curtiss
deadlocks. In particular this is triggered when running Dolphin with the Steam overlay.
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-13Merge pull request #12085 from SuperSamus/sdl-gamecontrollerAdmiral H. Curtiss
SDL: Add GameController API, cleanup
2024-01-13SDL: Add GameController API, cleanupMartino Fontana
2024-01-10Steam Deck: Pad out feature report to 64 bytesVicki Pfau
Also update the names of the setting post-Steam Deck commits to SDL Fixes https://bugs.dolphin-emu.org/issues/13412
2024-01-10ControllerInterface: Make FullAnalogSurface inherit IsDetectable()Martino 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-12-12MappingCommon: Make use of std::erase_ifLioncash
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
2023-09-28Merge pull request #12172 from ArcaneNibble/sdAdmiral H. Curtiss
Steam Deck: Periodically reenable gyro
2023-09-21fmt 10.0.0-10.1.1 compile fixesget
Implicit conversion operators and enums was removed for parity with std::format (https://github.com/fmtlib/fmt/commit/fce74caa15b24cbc0fcafe4706692cb06cb0b815).
2023-09-07Steam Deck: Periodically reenable gyroR
2023-08-17Use structs for config callback IDsJosJuice
This way you can't mix up regular config callback IDs and CPU thread config callback IDs. (It would be rather bad if you did!)
2023-08-15ControllerInterface/Android: Add null check to AddDeviceJosJuice
The Google Play Console is showing some users getting a crash here, and indeed, InputDevice.getDevice can return null.
2023-06-18Replace std::ostringstream usage with fmt::formatget
2023-06-06InputCommon: Don't treat two analog inputs as a spurious trigger comboJosJuice
I've received a report from an Android user with a gamepad (a "BSP-D3") where one physical trigger is controlling two analog axes at the same time. This was causing RemoveSpuriousTriggerCombinations to delete both axes, which is clearly not a desireable outcome. With this change, now the axis with the greatest smoothness is kept, or both in case they have the same smoothness.
2023-06-06Merge pull request #11762 from jbosboom/xinput2-raw-event-queryAdmiral H. Curtiss
Xinput2: use raw events and queries
2023-05-29Merge pull request #11819 from JosJuice/android-input-device-nullAdmiral H. Curtiss
ControllerInterface/Android: Use InputEvent.getDeviceId
2023-05-19XInput2: Listen to master devices onlyJeffrey Bosboom
A comment removed by this commit gives two reasons for listening to slave devices, both of which no longer apply: - "Only slaves emit raw motion events": perhaps this was true when the comment was written, but now master devices provide raw motion events along with the other raw events. - "Selecting slave keyboards avoids dealing with key focus": we get raw key events regardless of the focus. Listening to both master and slave devices results in duplicate raw events. For button and key events, that's a tiny waste of time setting the update flag a second time, but for raw mouse events the raw motion will be processed twice. That makes this commit a user-facing change.