summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon
AgeCommit message (Collapse)Author
2019-08-02InputCommon/DInputJoystick: Correct force-feedback flag testingLioncash
Introduced in a995e2f5ba3bb55b4245675428bbdc3d34cb7355 We need to be performing a bitwise AND on the flags and not a logical AND, otherwise we could end up counting device objects that don't support forced feedback.
2019-07-23StringUtil: Use std::string_view moreJosJuice
2019-06-26Use separate libusb contexts to avoid thread safety issuesLéo Lam
Unfortunately, it appears that using libusb's synchronous transfer API from several threads causes nasty race conditions in event handling and can lead to deadlocks, despite the fact that libusb's synchronous API is documented to be perfectly fine to use from several threads (only the manual polling functionality is supposed to require special precautions). Since usbdk was the only real reason for using a single libusb context and since usbdk (currently) has so many issues with Dolphin, I think dropping support for it in order to fix other backends is acceptable.
2019-06-17InputCommon: Use nested namespace specifiers where applicableLioncash
2019-06-10Added key for relative inputMatthew Foulds
2019-06-08Merge pull request #8117 from weihuoya/threaded_envConnor McLaughlin
android: get java env from thread local storage
2019-06-07Core/ConfigManager: Use forward declarations where applicableLioncash
Avoids dragging in IniFile, EXI device and SI device headers in this header which is quite widely used throughout the codebase. This also uncovered a few cases where indirect inclusions were being relied upon, which this also fixes.
2019-05-31InputCommon/CMakeLists: Specify headers in target sourcesLioncash
2019-05-30Merge pull request #8138 from lioncash/input-stringLéo Lam
ControllerInterface/Device: Minor cleanup
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-29GCAdapter: Update Android-specific sourceVincent Duvert
Fix the Android version of GCAdapter.cpp so it matches the new definitions in GCAdapter.h.
2019-05-29GCAdapter: Handle dynamic status updates for non-hotplug libusbVincent Duvert
Detect when the setup function found no adapter, or found one but could not connect to it, and report the new status in that case.
2019-05-29GCPadWiiUConfigDialog: Update the adapter state dynamicallyVincent Duvert
Update the GC adapter config GUI if the adapter is plugged or unplugged.
2019-05-29GCAdapter: Report libusb open errors to the userVincent Duvert
If opening the adapter fails, report the libusb error message in the GUI instead of “No Adapter Detected”. The error condition is removed when the adapter is unplugged.
2019-05-29GCAdapter: Close libusb handle if an open error occursVincent Duvert
The handle was previously kept open, which was causing future adapter plug/unplug events to be ignored.
2019-05-29android: thread local envweihuoya
2019-05-27Move libusb utilities to LibusbUtilsLéo Lam
* Simplifies libusb context usage and allows us to set options for all contexts easily. Notably, this lets us enable usbdk support in libusb, which is now opt-in in the latest version. * Moves the libusb config descriptor wrapper class to LibusbUtils too since that could easily be reused. * Moves device listing to LibusbUtils too and add a lock around it as some libusb backends are not thread safe. * Consequences: only a single context and a single event handling thread is used now, which is more efficient.
2019-05-20Merge pull request #7992 from artemist/centeringLéo Lam
ControllerEmu: Add support for setting the center of a ReshapableInput
2019-05-18ControllerEmu: Add support for setting the center of a ReshapableInputArtemis Tosini
This is useful in far out-of-calibration controllers, such as the Switch Pro controller. This also adds support for configuring the center in the Mapping widget.
2019-05-14Merge pull request #8087 from spycrab/cmake_win2019spycrab
Support CMake on Windows
2019-05-08WiimoteEmu/DolphinQt: Rename "IR" to "Point" and eliminate redundant ↵Jordan Woyak
Forward/Backward mappings.
2019-05-08InputCommon/ControlGroup.h: Add missing includespycrab
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-05-01WiimoteEmu/DolphinQt: Better extension display names.Jordan Woyak
2019-04-29InputCommon: Remove unused "sign" macro.Jordan Woyak
2019-04-27InputCommon: Make sure setting values are initialized in case they are used ↵Jordan Woyak
before config load.
2019-04-23WiimoteEmu: Improve emulated swing.Jordan Woyak
2019-04-23WiimoteEmu: Implement MotionPlus parameter y0 and other cleanups.Jordan Woyak
2019-04-20ControllerInterface/DInput: Optimize cursor position updating.Jordan Woyak
2019-04-15Merge pull request #8002 from JMC47/CursorSlowdownJMC47
Slow down relative input cursor
2019-04-15Reduce Relative Input Cursor Speed DramaticallyJMC47
This makes it about 1/4th the speed which may be a bit slow, but should work for most controllers.
2019-04-13Merge pull request #7923 from jordan-woyak/full-surface-renameJMC47
ControllerInterface: Rename full surface analog inputs.
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-12WiimoteEmu: Allow shake frequency and intensity to be configured. Other ↵Jordan Woyak
minor cleanups.
2019-04-07InputCommon: Clean up how numeric settings are handled. Add units of measure ↵Jordan Woyak
to UI. Eliminate hidden magic values of the IR cursor.
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-30Merge pull request #7776 from jordan-woyak/wm_devicechangeJMC47
Add hotplug support to DInput and XInput controller backends
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-29HW/SI: GCAdapter calibration fix.Jordan Woyak
2019-03-23Merge pull request #7903 from spycrab/imgui_np_chatspycrab
Add imgui-based Netplay Chat
2019-03-22Merge pull request #7918 from spycrab/iokit_refactorspycrab
InputCommon/OSX: Refactor IOKit controller interface