summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/DInput
AgeCommit message (Collapse)Author
2021-01-27rename InputCommon/ControllerInterface/Device to CoreDeviceShawn Hoffman
2021-01-02Fix DInput cursor going to +infinite if the window size was 0Filippo Tarpini
2020-10-23InputCommon: Migrate logging over to fmtLioncash
Continues the migration of the logging calls over to the fmt capable ones.
2020-09-25ControllerInterface: Add platform consistent names for modifier keys.Jordan Woyak
2020-07-08Common: Rename UTF16ToUTF8JosJuice
This function does *not* always convert from UTF-16. It converts from UTF-16 on Windows and UTF-32 on other operating systems. Also renaming UTF8ToUTF16 for consistency, even though it technically doesn't have the same problem since it only was implemented on Windows.
2020-02-22InputCommon: Constify Device::Input::IsDetectable function.Jordan Woyak
2020-02-08Cleanup: Use std::abs instead of abs.Jordan Woyak
2020-01-24InputCommon: Make "Cursor" inputs aware of the rendered aspect ratio.Jordan Woyak
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-06-17InputCommon: Use nested namespace specifiers where applicableLioncash
2019-05-08InputCommon/DInput.h: Add missing includespycrab
2019-05-06Reformat repo to clang-format 7.0 rulesTechjar
2019-04-20ControllerInterface/DInput: Optimize cursor position updating.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-19ControllerInterface: Unbreak DirectInput POV Hats having bad values on init.Jordan Woyak
2019-03-03ControllerInterface: Input detection improvements.Jordan Woyak
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).
2018-12-24ControllerInterface: DInput: Update force feedback effects in a thread. This ↵Jordan Woyak
should prevent slowdowns experienced by a handful of users.
2017-06-05Fix minor formatting issuesLéo Lam
These were not caught by the lint script while it was broken.
2017-01-23No longer need to //clang-format off for Windows headersMichael 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-08-11InputCommon: Fix slow startup on some Windows systemsEmptyChaos
Rewrite GetXInputGUIDS to use SetupAPI instead of WMI Queries. When using a language pack where the system language and user/program language differ, Windows starts taking a VERY long time (10+ seconds) to complete Queries for Win32_PNPEntity objects (it's probably translating every single string since it transfers every single one from the WMI server into memory in the program). Fixes Issue 9744.
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-25Fix a small formatting issueLéo Lam
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-12-24Ignored the mouse position unless the cursor is over the Dolphin window.skidau
Fixes issue 8673.
2015-09-05Add missing override specifiersLioncash
2015-05-25Set copyright year to when a file was createdTillmann Karras
2015-05-25Update license headers to GPLv2+Tillmann Karras
2015-05-25Add missing license headersTillmann Karras
2015-03-28Track the co-ordinates of the mouse relative to the pointed window instead ↵skidau
of the original hwnd.
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: Remove unused ClearInputStateJasper St. Pierre
2014-11-28DInput: Remove the unsupported Lights outputJasper St. Pierre
The LEDs feature doesn't actually do anything: the SetState method is entirely commented out.
2014-11-11Fix some double->float conversions.Rachel Bryk
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-09-01Revert changes to how DInput filters out XInput devices.Shawn Hoffman
This is to remain compatible with XBCD devices.
2014-08-23windows: remove now-extraneous NOMINMAX and WIN32_LEAN_AND_MEAN #defines ↵Shawn Hoffman
from dolphin code. Wrap dinput.h in a header defining DIRECTINPUT_VERSION instead of repeating it multiple places.
2014-08-19msvc: enable strictStrings solution-wide for release.Shawn Hoffman
strictStrings is not supported by debug libraries, and indeed breaks the build. Drop wbemidl.h (incompatible with strictStrings) dependency by using SDL-style search for XInput GUIDs.
2014-03-11Fixes spacing for "for", "while", "switch" and "if"Matthew Parlane
Also moved && and || to ends of lines instead of start. Fixed misc vertical alignments and some { needed newlining.
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-28Various changes suggested by cppcheckTillmann Karras
- remove unused variables - reduce the scope where it makes sense - correct limits (did you know that strcat()'s last parameter does not include the \0 that is always added?) - set some free()'d pointers to NULL
2014-02-20Fix the Windows build in relation to the recent changes.Lioncash
2014-02-20Fix more header sorting issues in InputCommon/ (now check-includes clean).Pierre Bourdon
2014-02-18Convert all includes to relative paths.Lioncash
2014-02-17Second and final pass of clearing out tabs.Lioncash