Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-12-17 | Merge pull request #7302 from VPeruS/check-deadlock | bunnei | |
[input_common] Fixed thread hang | |||
2021-12-17 | [input_common] Move variable declaration closer to usage | vperus | |
MSVC supplied with VS2022 generates "warning C4189: 'CALIBRATION_THRESHOLD': local variable is initialized but not referenced" which is treated as an error. Circumvent it by moving constexpr variable directly into body of lambda function. | |||
2021-12-14 | Merge pull request #7581 from lioncash/input-iface | Narr the Reg | |
common/input: Avoid numerous large copies of CallbackStatus | |||
2021-12-14 | Merge pull request #7577 from v1993/patch-2 | Narr the Reg | |
input/SDL: Update SDL hints | |||
2021-12-14 | input/SDL: Update SDL hints | Valeri | |
SDL_HINT_JOYSTICK_HIDAPI_SWITCH_HOME_LED is no longer needed thanks to new default in SDL 2.0.18. SDL_HINT_JOYSTICK_HIDAPI_XBOX is reported to cause conflicts with native driver Xbox driver on Linux, and Xbox controllers don't benefit from hidapi anyways. | |||
2021-12-13 | common/input: Avoid numerous large copies of CallbackStatus | Lioncash | |
CallbackStatus instances aren't the cheapest things to copy around (relative to everything else), given that they're currently 520 bytes in size and are currently copied numerous times when callbacks are invoked. Instead, we can pass the status by const reference to avoid all the copying. | |||
2021-12-13 | input_poller: Add missing override specifiers | Lioncash | |
2021-12-13 | input_mapping: Amend specification of parameters | Lioncash | |
param tags are supposed to specify the parameter name without any quoting. Silences several -Wdocumentation warnings. | |||
2021-12-13 | input_poller: Remove several unnecessary @param tags | Lioncash | |
Silences quite a bit of -Wdocumentation warnings, given the @param tag is only intended to be used to identify function parameters, not what it contains. | |||
2021-12-13 | Merge pull request #7575 from lioncash/input | bunnei | |
input_engine: Minor object churn cleanup | |||
2021-12-13 | tas_input: Avoid minor copies in Read/WriteCommandButtons() | Lioncash | |
We don't need to copy the whole pair | |||
2021-12-13 | tas_input: Remove unnecessary semicolon | Lioncash | |
Resolves a -Wextra-semi warning | |||
2021-12-13 | tas_input: Execute clear() even if empty | Lioncash | |
clear() when empty is simply a no-op, so we can get rid of the check here and let the stdlib do it for us. | |||
2021-12-13 | tas_input: Remove unnecessary includes | Lioncash | |
Gets rid of indirect includes and includes only what the interface needs. | |||
2021-12-13 | tas_input: std::move strings into vector | Lioncash | |
While we're in the same area, we can also avoid performing std::stoi in a loop when it only needs to be performed once. | |||
2021-12-13 | tas_input: Use istringstream over stringstream | Lioncash | |
This is only using the input facilities, so we don't need to use the fully-fleged stringstream. | |||
2021-12-13 | tas_input: Use u8string_view instead of u8string | Lioncash | |
Same behavior, but without the potential for extra allocations. | |||
2021-12-13 | tas_input: Remove unused std::smatch variable | Lioncash | |
This also means we can get rid of the dependency on <regex> | |||
2021-12-13 | tas_input: Amend -Wdocumentation warnings | Lioncash | |
Parameters shouldn't have the colon by their name. | |||
2021-12-13 | tas_input: Make TasAxes enum an enum class | Lioncash | |
Prevents these values from potentially clashing with anything in other headers. | |||
2021-12-13 | input_engine: Fix typo in TriggerOnAxisChange() parameter name | Lioncash | |
2021-12-13 | input_engine: Simplify PreSet* family of functions | Lioncash | |
We can make use of try_emplace() to insert values only if they don't already exist. | |||
2021-12-13 | input_engine: Avoid redundant map lookups | Lioncash | |
We can use iterators to avoid looking up into maps twice in the getter functions. At the same time we can also avoid copying the ControllerData structs, since they're 264 bytes in size. | |||
2021-12-13 | input_engine: Remove left-over namespace qualifiers | Lioncash | |
These types are part of the InputCommon namespace. | |||
2021-12-13 | input_engine: Iterate by reference rather than by value where applicable | Lioncash | |
Avoids creating copies of several object instances (some of which being over 100 bytes in size). | |||
2021-12-13 | input_engine: Take BasicMotion by const reference with SetMotion() and ↵ | Lioncash | |
TriggerOnMotionChange() Copies the BasicMotion instance once instead of twice. | |||
2021-12-13 | input_engine: std::move InputIdentifier in SetCallback() | Lioncash | |
Allows avoiding std::function allocations. | |||
2021-12-13 | input_engine: Pass LedStatus by const reference | Lioncash | |
Avoids copies where reasonably applicable | |||
2021-12-13 | input_engine: Pass VibrationStatus by const reference in SetRumble() | Lioncash | |
Avoids creating copies of the struct where not necessary. | |||
2021-12-13 | input_engine: std::move engine name where applicable | Lioncash | |
We can allow the name to be moved into, allowing allocations to be avoided. | |||
2021-12-13 | input_engine: Remove callback clearing in constructor | Lioncash | |
The callback map is a member variable, so this will always be empty on initial construction. | |||
2021-12-13 | input_engine: Remove unnecessary semi-colons | Lioncash | |
Silences -Wextra-semi warnings | |||
2021-12-13 | input_engine: Remove unnecessary return | Lioncash | |
This is a void function, so it doesn't need this. | |||
2021-11-29 | input_common: Fix error with thread name | Narr the Reg | |
2021-11-29 | Revert of b01aa72 | vperus | |
Caused worker_thread to be stuck in Stage1Completed state until job's destruction. | |||
2021-11-29 | [input_common] Add completion test for CalibrationConfigurationJob | vperus | |
2021-11-26 | input_common: Fully implement UDP controllers | Narr the Reg | |
2021-11-24 | input_common: Move button names to the frontend | german77 | |
2021-11-24 | input_common: Fix SDL controller with inverted axis | german77 | |
2021-11-24 | kraken: Address comments from review | german77 | |
Fix compiler bug | |||
2021-11-24 | core/hid: Improve accuary of mouse implementation | german77 | |
2021-11-24 | core/hid: Fully implement native mouse | german77 | |
2021-11-24 | input_common: Allow keyboard to be backwards compatible | german77 | |
2021-11-24 | core/hid: Improve accuracy of the keyboard implementation | german77 | |
2021-11-24 | input_common: Fix motion from 3 axis | german77 | |
2021-11-24 | core/hid: Prevent Emulated controller from flapping with multiple inputs devices | german77 | |
2021-11-24 | core/hid: Fully emulate motion from button | german77 | |
2021-11-24 | second commit lion review | german77 | |
2021-11-24 | settings: Fix Debug controller type options | german77 | |
2021-11-24 | kraken: Address comments from review | german77 | |
start lion review |