summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface
AgeCommit message (Collapse)Author
2019-06-17InputCommon: Use nested namespace specifiers where applicableLioncash
2019-06-08Merge pull request #8117 from weihuoya/threaded_envConnor McLaughlin
android: get java env from thread local storage
2019-05-29ControllerInterface/Device: Make DetectInput() a const member functionLioncash
This doesn't actually modify object instance state, so it can be made const.
2019-05-29ControllerInterface/Device: Take vector by const reference in DetectInput()Lioncash
The vector is only ever queryied and it's contents aren't modified, so there's no reason to take the vector by value. We can take a constant reference to it to avoid unnecessary allocating.
2019-05-29ControllerInterface/Device: std::move strings in constructor where applicableLioncash
Allows callers to move std::string values into the constructor, potentially avoiding copies.
2019-05-29ControllerInterface/Device: Use std::string_view where applicableLioncash
In these cases, the given string is only ever compared against other string, so std::string can be turned into a std::string_view to allow non-allocating inputs.
2019-05-29android: thread local envweihuoya
2019-05-08InputCommon/Device.cpp: Add missing includespycrab
2019-05-08InputCommon/DInput.h: Add missing includespycrab
2019-05-06Reformat repo to clang-format 7.0 rulesTechjar
2019-05-04Replace MathUtil::Clamp with std::clampLéo Lam
2019-04-20ControllerInterface/DInput: Optimize cursor position updating.Jordan Woyak
2019-04-13ControllerInterface: Rename full surface analog inputs to be more visually ↵Jordan Woyak
dissimilar from their underlying inputs. e.g. "Full Axis X+".
2019-04-06Merge pull request #7689 from jordan-woyak/sdl-improveJMC47
ControllerInterface: SDL cleanups/fixes
2019-03-31InputCommon: Fix Win32 init race.Jordan Woyak
2019-03-29ControllerInterface/Win32: Prevent devcies from losing their "id" on a ↵Jordan Woyak
hotplug event.
2019-03-29Add hotplug support to DInput and XInput controller backendsMichael M
2019-03-29Add ControllerInterface::Win32 to wrap XInput and DInputMichael M
2019-03-22Merge pull request #7918 from spycrab/iokit_refactorspycrab
InputCommon/OSX: Refactor IOKit controller interface
2019-03-22InputCommon/OSX: Refactor IOKit controller interfacespycrab
2019-03-21Merge pull request #7906 from jordan-woyak/leak-fixTilka
DolphinQt/InputCommon: Fix a few memory leaks.
2019-03-19ControllerInterface: Unbreak DirectInput POV Hats having bad values on init.Jordan Woyak
2019-03-17DolphinQt/InputCommon: Fix a few memory leaks.Jordan Woyak
2019-03-17ControllerInterface: SDL: Replace unclear bool parameter with enum class.Jordan Woyak
2019-03-17ControllerInterface: SDL cleanup and FF effect fixes.Jordan Woyak
2019-03-03ControllerInterface/DolphinQt: Make mapping "all devices" way less hacky.Jordan Woyak
2019-03-03ControllerInterface: Input detection improvements.Jordan Woyak
2019-02-03Merge pull request #7688 from jordan-woyak/evdev-improveAnthony
ControllerInterface: evdev: Cleanups and effect processing fixes.
2019-01-26Android: Optimize rumble callzackhow
Moved rumble call to IDCache since GetMethodID is expensive
2019-01-19Android: Add touch to move pointer in overlayzackhow
2019-01-17ControllerInterface: evdev: Replace unclear bool parameter with enum class.Jordan Woyak
2019-01-17ControllerInterface: evdev: Cleanup rumble effect processing so effects ↵Jordan Woyak
aren't removed and re-uploaded with every SetState() call. Split the "LeftRight" output into separate "Strong" and "Weak" outputs. Other minor cleanups.
2019-01-16Merge pull request #7693 from jordan-woyak/hotplug-callback-fixLéo Lam
ControllerInterface: Hotplug callback fixes.
2019-01-16Merge pull request #7680 from jordan-woyak/dinput-axis-rangeLéo Lam
DirectInput: Use more than 8 bits of precision on axis inputs.
2019-01-10ControllerInterface: Allow hotplug callbacks to be unregistered and don't ↵Jordan Woyak
reload the entire config from the ini file on hotplug, just update the control references. This should fix a crash on shutdown on Android.
2019-01-08Merge pull request #7666 from jordan-woyak/input-shutdown-fixJosJuice
ControllerInterface: Shutdown order and race condition fix.
2019-01-07Android: Change all analoginputs to just inputszackhow
Android doesn't report values for the inputs generated by FullAnalogInput so there isn't a reason to add them as such. This also avoids a bug(for android) where if there are three inputs(say 12, 11, and 121), and you generate a FullAnalogInput with 12/11 then it will create another input with the name 121 which can cause conficts with the real 121 input. This is probably not an issue on PC since most Axis inputs are named and not numbered.
2019-01-06DirectInput: Use more than 8 bits of precision on axis inputs.Jordan Woyak
2019-01-05ControllerInterface: Set DInput FF effect parameters sanely. This fixes a ↵Jordan Woyak
crash with periodic effects and my GCPad adapter (probably a divide by zero behind the scenes).
2019-01-02ControllerInterface: Shutdown order and race condition fix.Jordan Woyak
2018-12-24ControllerInterface: DInput: Update force feedback effects in a thread. This ↵Jordan Woyak
should prevent slowdowns experienced by a handful of users.
2018-10-29Core: Switch controller interface to render widget on bootingStenzek
Previously, the Qt frontend would initialize the controller interface on starting, resulting in the cursor position being relative to the main window, instead of the render window.
2018-10-29ControllerInterface: Don't crash on non-X11 QPAStenzek
2018-10-08evdev: simplify codeTillmann Karras
No need to check write access if we call open() right after which checks that anyway. Also only get the device name once.
2018-09-07Android: Add rumble for phonezackhow
This currently only supports using the internal vibrate on a phone for rumble.
2018-08-27InputCommon/XInput2: Increase mouse buttons to 32Techjar
Xlib supports many mouse buttons, though there are 9 standard buttons, and they aren't arranged like other mouse APIs. Using only 5 buttons was preventing the use of buttons besides left/right/middle click and the scroll wheel. Here's what all the standard buttons are: 1. left button 2. middle button (pressing the scroll wheel) 3. right button 4. turn scroll wheel up 5. turn scroll wheel down 6. push scroll wheel left 7. push scroll wheel right 8. 4th button (aka browser backward button) 9. 5th button (aka browser forward button) The remaining button indices are non-standard and device-specific, and technically far more than 32 are supported, but this seems like a reasonable limit to avoid cluttering the list with tons of useless mouse buttons. What mouse has more than 32 buttons anyways?
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.
2018-06-04CMake: make SDL a private dep of InputCommonMichael M
2018-04-12Reformat all the things!spycrab