summaryrefslogtreecommitdiff
path: root/src/input_common
AgeCommit message (Collapse)Author
2021-10-23Revert "input_common: Fix data race on GC implementation"Fernando S
2021-10-23Merge pull request #6515 from german77/gc_thread_safeFernando S
input_common: Fix data race on GC implementation
2021-10-20input_common: Fix VS2022 compilation errorsameerj
2021-10-11input_common/sdl: Fix joystick rangegerman77
2021-10-02Merge pull request #6979 from german77/joycon_namebunnei
input_common: Add alternative string for joycons
2021-09-24general: Update style to clang-format-12ameerj
2021-09-18UI: Relocate tas menu and add brief descriptiongerman77
2021-09-18input_common/tas: Document the main classgerman77
2021-09-18input_common/tas: Add swap controllergerman77
2021-09-18input_common/tas: overwrite file dialoggerman77
2021-09-18input_common/tas: Fallback to simple updateMonsterDruide1
2021-09-18config: Move TAS options to it's own menugerman77
2021-09-18core: Hacky TAS syncing & load pausingMonsterDruide1
To keep the TAS inputs synced to the game speed even through lag spikes and loading zones, deeper access is required. First, the `TAS::UpdateThread` has to be executed exactly once per frame. This is done by connecting it to the service method the game calls to pass parameters to the GPU: `Service::VI::QueueBuffer`. Second, the loading time of new subareas and/or kingdoms (SMO) can vary. To counteract that, the `CPU_BOOST_MODE` can be detected: In the `APM`-interface, the call to enabling/disabling the boost mode can be caught and forwarded to the TASing system, which can pause the script execution if neccessary and enabled in the settings.
2021-09-18input_common/tas: Base playback & recording systemMonsterDruide1
The base playback system supports up to 8 controllers (specified by `PLAYER_NUMBER` in `tas_input.h`), which all change their inputs simulataneously when `TAS::UpdateThread` is called. The recording system uses the controller debugger to read the state of the first controller and forwards that data to the TASing system for recording. Currently, this process sadly is not frame-perfect and pixel-accurate. Co-authored-by: Naii-the-Baf <sfabian200@gmail.com> Co-authored-by: Narr-the-Reg <juangerman-13@hotmail.com>
2021-09-10input_common: Enable steam controllers and 8 player supportgerman77
2021-09-06input_common: Add alternative string for joyconsgerman77
2021-08-12input_common: Disable sdl raw input modegerman77
2021-08-07input_common: Improve SDL joystick and hide toggle optiongerman77
2021-08-07input_common: Fix data race on GC implementationRodrigo Locatti
2021-07-21Merge pull request #6654 from german77/custom_thresholdbunnei
input_common: Make button threshold customizable
2021-07-20Merge pull request #6649 from german77/toggle_sdlbunnei
input_common: Support SDL toggle buttons
2021-07-20input/sdl_impl: fix rumble support on DualSense. (#6683)Nicolas Jallamion
- value return can be different 0, is not error is normal, error is only -1.
2021-07-19Merge pull request #6652 from lat9nq/cmd-vulkan-fixesbunnei
yuzu-cmd: Linux Vulkan fixes
2021-07-16input_common: Fix mouse panning behaivourgerman77
2021-07-16sdl_impl, emu_window: Remove clang ignorelat9nq
Fixed upstream by libsdl-org/SDL@25fc40b0bd44c484051064bc6b945ea9943f88dd
2021-07-15input_common: Make button threshold customizablegerman77
2021-07-15Merge pull request #6579 from ameerj/float-settingsbunnei
settings: Eliminate usage of float-point setting values
2021-07-15input_common: Support SDL toggle buttonsgerman77
2021-07-10input_common: Fix build with sdl disabledgerman77
2021-07-08configure_input: Use u8 for mouse sensitivityameerj
2021-07-08Merge pull request #6539 from lat9nq/default-settingAmeer J
general: Move most settings' defaults and labels into their definition
2021-07-08general: Code formatting improvementslat9nq
Slight improvements to readability. Dropped suggestions for string_view (settings.h:101), pass by value (settings.h:82), reverting double to a float (config.cpp:316), and other smaller ones, some out of scope. Addresses review feedback. Co-authored-by: Ameer J <52414509+ameerj@users.noreply.github.com>
2021-07-06CMakeLists: Treat -Wsign-compare as an error on GCC/ClangMorph
Treats (un)signed comparison mismatches as errors to be consistent with MSVC
2021-07-05Merge pull request #6537 from Morph1984/warningsbunnei
general: Enforce multiple warnings in MSVC
2021-07-05input_common: Add missing modifier callback to analog from buttongerman77
2021-06-28core, input_common: Miscellaneous fixeslat9nq
bcat: Fix settings access telemetry_session: Fix settings accesses So this is what I get for testing with the web service disabled. touch_from_button: Fix settings access for clang
2021-06-28general: Make most settings a BasicSettinglat9nq
Creates a new BasicSettings class in common/settings, and forces setting a default and label for each setting that uses it in common/settings. Moves defaults and labels from both frontends into common settings. Creates a helper function in each frontend to facillitate reading the settings now with the new default and label properties. Settings::Setting is also now a subclass of Settings::BasicSetting. Also adds documentation for both Setting and BasicSetting.
2021-06-28input_common: Remove #pragma warning directives for external headersMorph
2021-06-28input_common: Enforce C4242Morph
2021-06-24Add missing includes (#6521)Chloe
* Add missing includes * Add array
2021-06-22input_common/mouse_input: Fix data raceRodrigo Locatti
Fix data race using std::jthread and std::stop_token.
2021-06-10Merge pull request #6407 from lat9nq/fix-libusb-2bunnei
cmake: Use autotools for libusb linking generally on GNU, and cleanup
2021-06-03Merge pull request #6389 from german77/Analog_button_fixbunnei
input_common: Analog button, use time based position
2021-06-03cmake: General improvements to libusb linkinglat9nq
Delegates libusb external communication to externals/CMakeLists.txt Ensures an interface library `usb` for every pathway input_common just links to the `usb` library now externals/libusb/CMakeLists.txt sets variables to override SDL2's libusb finding Other minor cleanup
2021-06-01Merge pull request #6318 from german77/dualJoyconbunnei
input_common: Add dual joycon support
2021-05-30input_common: Analog button, use time based position instead of frequent updatesgerman77
2021-05-24Merge pull request #6312 from german77/analogMappingbunnei
input_common: Rewrite sdl analog mapping and fix controller disconnection crash
2021-05-22input_common: Add dual joycon supportgerman77
2021-05-19Merge pull request #6310 from german77/nanMotionbunnei
input_common: Sanitize motion data
2021-05-15input_common: Implement SDL motiongerman77