summaryrefslogtreecommitdiffstats
path: root/src/common/settings_input.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-11-20Configuration: Add per-game input profilesameerj1-0/+1
2022-04-23general: Convert source file copyright comments over to SPDXMorph1-3/+2
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
2022-04-16yuzu: Add custom ringcon configurationgerman771-0/+1
2021-11-28settings: Add debug setting to enable all controllersgerman771-0/+5
2021-11-27config: Remove vibration configurationgerman771-2/+0
2021-11-25core/hid: Fully implement native mousegerman771-4/+11
2021-11-25core/hid: Improve accuracy of the keyboard implementationgerman771-12/+23
2021-11-25settings: Cleanup settingsgerman771-1/+12
2021-04-15common: Move settings to common from core.bunnei1-0/+1
- Removes a dependency on core and input_common from common.
2021-02-08hid: Implement GC controllergerman1-0/+1
2020-11-16input_common: Add VibrationDevice and VibrationDeviceFactoryMorph1-7/+25
A vibration device is an input device that returns an unsigned byte as status. It represents whether the vibration device supports vibration or not. If the status returns 1, it supports vibration. Otherwise, it does not support vibration.
2020-11-16configure_input: Add per-player vibrationMorph1-0/+3
Allows for enabling and modifying vibration and vibration strength per player. Also adds a toggle for enabling/disabling accurate vibrations. Co-authored-by: Its-Rei <kupfel@gmail.com>
2020-10-20configure_input_player: Fix modifier buttonsMorph1-2/+0
Fix them for real this time, now they finally work.
2020-09-05Include HID and configuration changes related to motiongerman1-0/+17
2020-08-29input_common/main: Remove unnecessary headersLioncash1-2/+2
2020-08-26Project Mjölnir: Part 1Morph1-210/+9
Co-authored-by: James Rowe <jroweboy@gmail.com> Co-authored-by: Its-Rei <kupfel@gmail.com>
2020-08-25logging/settings: Increase maximum log size to 100 MB and add extended logging optionM&M1-0/+1
The extended logging option is automatically disabled on boot but can be enabled afterwards, allowing the log file to go up to 1 GB during that session. This commit also fixes a few errors that are present in the general debug menu.
2020-08-16dynarmic: Add unsafe optimizationsMerryMage1-1/+5
2020-07-28configure_graphics: Remove Force 30 FPS modeMorph1-1/+0
The introduction of multicore rendered this setting non-functional as timing code was changed. This removes the setting entirely.
2020-07-17Rebase for per game settingsDavid Marcec1-0/+1
2020-07-14settings: Move settings sanitization to its own functionlat9nq1-0/+3
Creates a new function that can be expanded later to fix other settings that are known to cause emulation errors across executables.
2020-07-11configure_cpu: Show/Hide debugging optionsMerryMage1-0/+7
2020-07-11configuration: Add settings to enable/disable specific CPU optimizationsMerryMage1-1/+10
2020-07-10settings: Remove storage size optionsMorph1-29/+0
2020-07-10configuration: implement per-game configurations (#4098)lat9nq1-43/+81
* Switch game settings to use a pointer In order to add full per-game settings, we need to be able to tell yuzu to switch to using either the global or game configuration. Using a pointer makes it easier to switch. * configuration: add new UI without changing existing funcitonality The new UI also adds General, System, Graphics, Advanced Graphics, and Audio tabs, but as yet they do nothing. This commit keeps yuzu to the same functionality as originally branched. * configuration: Rename files These weren't included in the last commit. Now they are. * configuration: setup global configuration checkbox Global config checkbox now enables/disables the appropriate tabs in the game properties dialog. The use global configuration setting is now saved to the config, defaulting to true. This also addresses some changes requested in the PR. * configuration: swap to per-game config memory for properties dialog Does not set memory going in-game. Swaps to game values when opening the properties dialog, then swaps back when closing it. Uses a `memcpy` to swap. Also implements saving config files, limited to certain groups of configurations so as to not risk setting unsafe configurations. * configuration: change config interfaces to use config-specific pointers When a game is booted, we need to be able to open the configuration dialogs without changing the settings pointer in the game's emualtion. A new pointer specific to just the configuration dialogs can be used to separate changes to just those config dialogs without affecting the emulation. * configuration: boot a game using per-game settings Swaps values where needed to boot a game. * configuration: user correct config during emulation Creates a new pointer specifically for modifying the configuration while emulation is in progress. Both the regular configuration dialog and the game properties dialog now use the pointer Settings::config_values to focus edits to the correct struct. * settings: split Settings::values into two different structs By splitting the settings into two mutually exclusive structs, it becomes easier, as a developer, to determine how to use the Settings structs after per-game configurations is merged. Other benefits include only duplicating the required settings in memory. * settings: move use_docked_mode to Controls group `use_docked_mode` is set in the input settings and cannot be accessed from the system settings. Grouping it with system settings causes it to be saved with per-game settings, which may make transferring configs more difficult later on, especially since docked mode cannot be set from within the game properties dialog. * configuration: Fix the other yuzu executables and a regression In main.cpp, we have to get the title ID before the ROM is loaded, else the renderer will reflect only the global settings and now the user's game specific settings. * settings: use a template to duplicate memory for each setting Replaces the type of each variable in the Settings::Values struct with a new class that allows basic data reading and writing. The new struct Settings::Setting duplicates the data in memory and can manage global overrides per each setting. * configuration: correct add-ons config and swap settings when apropriate Any add-ons interaction happens directly through the global values struct. Swapping bewteen structs now also includes copying the necessary global configs that cannot be changed nor saved in per-game settings. General and System config menus now update based on whether it is viewing the global or per-game settings. * settings: restore old values struct No longer needed with the Settings::Setting class template. * configuration: implement hierarchical game properties dialog This sets the apropriate global or local data in each setting. * clang format * clang format take 2 can the docker container save this? * address comments and style issues * config: read and write settings with global awareness Adds new functions to read and write settings while keeping the global state in focus. Files now generated per-game are much smaller since often they only need address the global state. * settings: restore global state when necessary Upon closing a game or the game properties dialog, we need to restore all global settings to the original global state so that we can properly open the configuration dialog or boot a different game. * configuration: guard setting values incorrectly This disables setting values while a game is running if the setting is overwritten by a per game setting. * config: don't write local settings in the global config Simple guards to prevent writing the wrong settings in the wrong files. * configuration: add comments, assume less, and clang format No longer assumes that a disabled UI element means the global state is turned off, instead opting to directly answer that question. Still however assumes a game is running if it is in that state. * configuration: fix a logic error Should not be negated * restore settings' global state regardless of accept/cancel Fixes loading a properties dialog and causing the global config dialog to show local settings. * fix more logic errors Fixed the frame limit would set the global setting from the game properties dialog. Also strengthened the Settings::Setting member variables and simplified the logic in config reading (ReadSettingGlobal). * fix another logic error In my efforts to guard RestoreGlobalState, I accidentally negated the IsPowered condition. * configure_audio: set toggle_stretched_audio to tristate * fixed custom rtc and rng seed overwriting the global value * clang format * rebased * clang format take 4 * address my own review Basically revert unintended changes * settings: literal instead of casting "No need to cast, use 1U instead" Thanks, Morph! Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com> * Revert "settings: literal instead of casting " This reverts commit 95e992a87c898f3e882ffdb415bb0ef9f80f613f. * main: fix status buttons reporting wrong settings after stop emulation * settings: Log UseDockedMode in the Controls group This should have happened when use_docked_mode was moved over to the controls group internally. This just reflects this in the log. * main: load settings if the file has a title id In other words, don't exit if the loader has trouble getting a title id. * use a zero * settings: initalize resolution factor with constructor instead of casting * Revert "settings: initalize resolution factor with constructor instead of casting" This reverts commit 54c35ecb46a29953842614620f9b7de1aa9d5dc8. * configure_graphics: guard device selector when Vulkan is global Prevents the user from editing the device selector if Vulkan is the global renderer backend. Also resets the vulkan_device variable when the users switches back-and-forth between global and Vulkan. * address reviewer concerns Changes function variables to const wherever they don't need to be changed. Sets Settings::Setting to final as it should not be inherited from. Sets ConfigurationShared::use_global_text to static. Co-Authored-By: VolcaEM <volcaem@users.noreply.github.com> * main: load per-game settings after LoadROM This prevents `Restart Emulation` from restoring the global settings *after* the per-game settings were applied. Thanks to BSoDGamingYT for finding this bug. * Revert "main: load per-game settings after LoadROM" This reverts commit 9d0d48c52d2dcf3bfb1806cc8fa7d5a271a8a804. * main: only restore global settings when necessary Loading the per-game settings cannot happen after the ROM is loaded, so we have to specify when to restore the global state. Again thanks to BSoD for finding the bug. * configuration_shared: address reviewer concerns except operator overrides Dropping operator override usage in next commit. Co-Authored-By: LC <lioncash@users.noreply.github.com> * settings: Drop operator overrides from Setting template Requires using GetValue and SetValue explicitly. Also reverts a change that broke title ID formatting in the game properties dialog. * complete rebase * configuration_shared: translate "Use global configuration" Uses ConfigurePerGame to do so, since its usage, at least as of now, corresponds with ConfigurationShared. * configure_per_game: address reviewer concern As far as I understand, it prevents the program from unnecessarily copying strings. Co-Authored-By: LC <lioncash@users.noreply.github.com> Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com> Co-authored-by: VolcaEM <volcaem@users.noreply.github.com> Co-authored-by: LC <lioncash@users.noreply.github.com>
2020-06-26Add a "Mute Audio" hotkeyKewlan1-0/+3
2020-06-06yuzu/frontend: Remove internal resolution optionMorph1-1/+1
2020-05-30Implement macro JITDavid Marcec1-0/+1
2020-05-19yuzu: Add frontend settings for assembly shadersReinUsesLisp1-0/+1
Add settings for assembly shaders. Currently hidden to avoid users from accidentally enabled them.
2020-05-11core: settings: Add a setting for time zone.bunnei1-0/+4
2020-04-23GPU: Add Fast GPU Time Option.Fernando Sahmkow1-0/+1
2020-04-22Correct Linux Compile Error.Fernando Sahmkow1-7/+2
2020-04-22UI: Replasce accurate GPU option for GPU Accuracy LevelFernando Sahmkow1-1/+15
2020-04-20dynarmic: Add option to disable CPU JIT optimizationsMerryMage1-0/+1
2020-03-19set: implement GetRegionCodeDan1-0/+1
2020-03-17yuzu: Save sound output mode and set it to Stereo by defaultFearlessTobi1-0/+1
2020-02-28Create an "Advanced" tab in the graphics configuration tab and add anisotropic filtering levels.Morph1-0/+1
2020-02-26core: settings: Add setting to enable vsync, which is on by default.bunnei1-0/+1
2020-02-14Add following aspect ratios: 16:9, 21:9, Stretch to WindowMorph1-0/+1
Available as a drop down within the configure graphics tab.
2020-01-29settings: Add settings for graphics backendReinUsesLisp1-0/+9
2020-01-23Input: UDP Client to provide motion and touch controlsfearlessTobi1-0/+3
An implementation of the cemuhook motion/touch protocol, this adds the ability for users to connect several different devices to citra to send direct motion and touch data to citra. Co-Authored-By: jroweboy <jroweboy@gmail.com>
2019-09-30settings: Add option to set BCAT backendZach Hilman1-0/+4
2019-09-21settings: Add options for managing gamecard emulationZach Hilman1-2/+3
2019-09-21settings: Add options for setting storage sizesZach Hilman1-0/+29
2019-09-10Add frametime logging for tracking performance over timefearlessTobi1-0/+1
Co-Authored-By: jroweboy <jroweboy@gmail.com>
2019-07-11yuzu: Remove setting for using UnicornLioncash1-1/+0
The JIT is mature enough that this setting can be removed, falling back to Unicorn only on unsupported architectures. Any missing features from Unicorn (of which there are extremely few), are mostly developer-oriented, which most users don't care about. Features should be coordinated with the JIT, not the interpreter, anyhow.
2019-07-04yuzu: Remove CPU Jit setting from the UIfearlessTobi1-1/+1
A normal user shouldn't change this, as it will slow down the emulation and can lead to bugs or crashes. The renaming is done in order to prevent users from leaving this on without a way to turn it off from the UI.
2019-06-29settings: Add config option for kiosk (quest) modeZach Hilman1-0/+1
2019-05-30rasterizer_opengl: Remove OpenGL core profileReinUsesLisp1-1/+0
2019-05-25settings: Add 'Reporting Services' config optionZach Hilman1-0/+1
Full enable/disable for all reports.
2019-04-20Allow picking a Compatibility Profile for OpenGL.Fernando Sahmkow1-0/+1
This option allows picking the compatibility profile since a lot of bugs are fixed in it. We devs will use this option to easierly debug current problems in our Core implementation.:wq
2019-04-09added a toggle to force 30fps modezarroboogs1-0/+1
2019-03-29core/yuzu: Remove enable_nfc settingfearlessTobi1-1/+0
This was initially added to prevent problems from stubbed/not implemented NFC services, but as we never encountered such and as it's only used in a deprecated function anyway, I guess we can just remove it to prevent more clutter of the settings.
2019-03-07settings: Add new graphics setting for use_asynchronous_gpu_emulation.bunnei1-0/+1
2019-02-07settings: Hide shader cache behind a settingReinUsesLisp1-0/+1
2019-01-22citra_qt: Log settings on launchzhupengfei1-0/+1
2019-01-08settings: Fix comment structureZach Hilman1-4/+5
2019-01-08settings: Use std::chrono::seconds instead of s64 for RTCZach Hilman1-3/+5
2019-01-08settings: Add custom RTC settingsZach Hilman1-0/+3
Stored as signed seconds since epoch.
2018-12-03settings: Store list of disabled add-ons per title IDZach Hilman1-0/+5
2018-11-20settings: Add option to dump ExeFS of games upon launchZach Hilman1-0/+1
When enabled, all exefs(es) will be copied to yuzu/dump/<title_id>/exefs.
2018-11-19hid: Use player-defined controller type as PREFERRED_CONTROLLERZach Hilman1-41/+3
2018-11-19settings: Add settings for multiple players and controllersZach Hilman1-3/+48
Uses the PlayerInput struct to represent all of the data that constitutes a player.
2018-11-19settings: Add Native type for keyboardZach Hilman1-0/+210
2018-11-19settings: Add Native type for mouse buttonsZach Hilman1-0/+27
2018-11-13svc: Use proper random entropy generation algorithmZach Hilman1-1/+1
2018-11-12settings: Add config option to set RNG seedZach Hilman1-0/+2
2018-11-06configure_system: Fix compiler warningFrederic Laing1-2/+2
2018-10-29settings: Add setting to control NSO dumpingZach Hilman1-0/+1
Also adds UI option in Debug > Dump section, with the idea later things to be dumped (i.e. other game data or textures, etc) will use the same group box.
2018-10-24profile_manager: Load user icons, names, and UUIDs from system saveZach Hilman1-2/+0
2018-10-24settings: Add users and current_user settings and remove usernameZach Hilman1-1/+3
2018-10-24Added Amiibo support (#1390)David1-0/+1
* Fixed conflict with nfp * Few fixups for nfc * Conflict 2 * Fixed AttachAvailabilityChangeEvent * Conflict 3 * Fixed byte padding * Refactored amiibo to not reside in "System" * Removed remaining references of nfc from system * used enum for Nfc GetStateOld * Added missing newline * Moved file operations to front end * Conflict 4 * Amiibos now use structs and added mutexes * Removed amiibo_path
2018-10-16config: Rename use_accurate_framebuffers -> use_accurate_gpu_emulation.bunnei1-1/+1
- This will be used as a catch-all for slow-but-accurate GPU emulation paths.
2018-10-07settings: Add program_args string settingZach Hilman1-0/+1
2018-10-02Port web_service from CitrafearlessTobi1-0/+6
2018-09-09hid: Implement ReloadInputDevicesfearlessTobi1-0/+2
2018-09-08Add audio stretching supportfearlessTobi1-0/+1
2018-09-04settings: Save and load NAND/SD dirs from configZach Hilman1-0/+2
2018-08-21Port #3353 from CitrafearlessTobi1-1/+2
2018-08-03Added ability to change username & language code in the settings ui. Added IProfile::Get and SET::GetLanguageCode for libnx tests (#851)David1-0/+2
2018-08-01Remove files that are not usedZach Hilman1-0/+2
2018-08-01audio_core: Add configuration settings.bunnei1-0/+5
2018-06-27settings: Add a configuration for use_accurate_framebuffers.bunnei1-0/+1
2018-05-11core: Add a configuration setting for use_multi_core.bunnei1-0/+1
2018-05-07hid: Tweaks, Analog Sticks (#435)Max Thomas1-0/+4
* hid: Update mouse/keyboard state * hid: Working analog sticks * hid: Nits * hid: Nits * hid: Update mystery sections * hid: Tweaks
2018-03-27settings: Remove unused CpuCore class.bunnei1-5/+0
2018-03-27config: Use simplified checkbox (from Citra) for CPU JIT.bunnei1-1/+1
2018-03-27config: Rename is_docked to use_docked_mode to be consistent with other config bools.bunnei1-1/+1
2018-03-27config: Add setting for whether the system is docked or not.bunnei1-0/+3
2018-01-21Format: Run the new clang format on everythingJames Rowe1-1/+2
2018-01-15settings: Fix button mappings array to have correct entries.bunnei1-2/+6
2018-01-15settings: Screenshot buttonshinyquagsire231-0/+2
2018-01-15settings: adjust button configs for Switch controllersshinyquagsire231-17/+50
2018-01-13Removing unused settings and yuzu rebrandingJames Rowe1-44/+0
2018-01-12configuration: Add cpu_core configuration optionMerryMage1-1/+6
2017-10-10hle: Remove a large amount of 3ds-specific service code.bunnei1-5/+0
2017-09-19WebService: Verify username and token (#2930)B3n301-0/+1
* WebService: Verify username and token; Log errors in PostJson * Fixup: added docstrings to the functions * Webservice: Added Icons to the verification, imrpved error detection in cpr, fixup nits * fixup: fmt warning
2017-08-26settings: Add enable_telemetry, citra_username, and citra_token.bunnei1-0/+3
2017-08-25SidebySide Layout (#2859)ThaMighty901-2/+3
* added a SidebySide Layout * Reworked, so both screen have the same height and cleaned up screen translates. * added the option in the UI, hope this is the right way to do it. formated framebuffer_layout.cpp * delete the x64 files * deleted ui_configure_graphics.h * added Option for the Layout in the xml * got rid of SIDE_BY_SIDE_ASPECT_RATIO because it was useless. pulled translate into variables * changed shift variables to u32 and moved them in their respective branch. remove notr="true" for the Screen layout drop down * reworked intends :). changed function description for SideFrameLayout * some description reworking
2017-08-24HID: use TouchDevice for touch padwwylele1-0/+1
2017-08-11HID: use MotionDevice for Accelerometer and Gyroscopewwylele1-0/+1
2017-07-10settings: Add telemetry endpoint URL.bunnei1-0/+3
2017-03-01Input: remove unused stuff & clean upwwylele1-54/+0
1. removed zl, zr and c-stick from HID::PadState. They are handled by IR, not HID 2. removed button handling in EmuWindow 3. removed key_map 4. cleanup #include
2017-03-01HID: use AnalogDevicewwylele1-0/+14
2017-03-01HID: use ButtonDevicewwylele1-0/+44
2017-02-23Add custom layout settings.SonofUgly1-1/+9
2017-01-26SDL: Select audio device (#2403)Kloen Lansfiel1-0/+1
* Initial Commit Added Device logic to Sinks Started on UI for selecting devices Removed redundant import * Audio Core: Complete Device Switching Complete the device switching implementation by allowing the output device to be loaded, changed and saved through the configurations menu. Worked with the Sink abstraction and tuned the "Device Selection" configuration so that the Device List is automatically populated when the Sink is changed. This hopefully addresses the concerns and recommendations mentioned in the comments of the PR. * Clean original implementation. * Refactor GetSinkDetails
2017-01-11CAM: implement basic camera functions with a blank camerawwylele1-0/+5
2017-01-07config: Add option for specifying screen resolution scale factor.bunnei1-1/+1
2016-12-07Config: auto-select region and languagewwylele1-0/+4
2016-12-06Implement Frame rate limiter (#2223)emmauss1-0/+1
* implement frame limiter * fixes
2016-11-27GPU: Remove the broken frame_skip option.Emmanuel Gil Peyrot1-1/+0
Fixes #1960.
2016-11-05Support additional screen layouts.James Rowe1-0/+11
Allows users to choose a single screen layout or a large screen layout. Adds a configuration option to change the prominent screen.
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot1-1/+0
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot1-21/+30
2016-09-15core: Add configuration option for CPU JIT.bunnei1-0/+1
2016-08-31configure_audio: User-configuratble option to enable/disable audio stretchingMerryMage1-0/+1
2016-08-30config: Add a setting for graphics V-Sync.bunnei1-0/+1
2016-05-24New3DS: Minor style cleanup to #1520.bunnei1-1/+1
2016-05-15implement circle pad modifierwwylele1-1/+5
2016-05-15Refactor input subsystemwwylele1-5/+13
2016-04-30VideoCore: Run include-what-you-use and fix most includes.Emmanuel Gil Peyrot1-1/+2
2016-04-30Audio: Add sink selection to configuration filesMerryMage1-0/+3
2016-04-21Config: Add scaled resolution optiontfarley1-0/+1
2016-04-20Implement CheckNew3DS and CheckNew3DSAppJamePeng1-0/+3
Append an item[is_new3ds] to config file[System] group Implement APT::SetNSStateField,it will update the unknown NS_state_field
2016-04-11CitraQt: Apply config at startupJannik Vogel1-0/+2
2015-10-04Implement gdbstubpolaris-1-0/+5
2015-09-20Implement gdbstubpolaris-1-0/+5
2015-09-16general: Silence some warnings when using clangLioncash1-4/+4
2015-08-16Shader: Initial implementation of x86_x64 JIT compiler for Pica vertex shaders.bunnei1-0/+1
- Config: Add an option for selecting to use shader JIT or interpreter. - Qt: Add a menu option for enabling/disabling the shader JIT.
2015-07-28Move input values into an arrayJames Rowe1-23/+31
2015-05-30Remove gpu_refresh_rate configuration optionYuri Kunde Schlesner1-1/+0
Changing it makes emulation inherently inaccurate. It also had a wrong default value (30, whereas the real system has a refresh rate of 60 Hz) which, even if changed, would continue to be used unless people manually removed it from their config files.
2015-05-22INI hw/sw renderer toggletfarley1-0/+2
2015-04-04Allow the user to set the background clear color during emulationarchshift1-0/+5
The background color can be seen at the sides of the bottom screen or when the window is wider than normal.
2015-02-22Frontends, HID: Add New 3DS specific pad buttons, and stub the touch one.Emmanuel Gil Peyrot1-0/+6
2015-02-08Services: Stub some functionspurpasmart961-0/+3
2015-02-01arm: Adios armemuLioncash1-1/+0
2014-12-29GPU: Implement frameskip and remove forced framebuffer swap hack.bunnei1-0/+1
2014-12-21License changepurpasmart961-1/+1
2014-12-13Add configurable per-class log filteringYuri Kunde Schlesner1-1/+3
2014-11-03Add support for disabling log from settingsSean1-0/+2
2014-10-28Added `gpu_refresh_rate` config setting for the new interpreter speed hack.archshift1-0/+1
2014-10-28Use configuration files to enable or disable the new dyncom interpreter.archshift1-0/+5
2014-10-23Use config files to store whether SDMC is enabled or notarchshift1-0/+2
Before, it used to use whether the directory actually existed. As a result, .citra-emu/sdmc was never auto-created (something quite confusing to me until I read through the logs).
2014-10-08Added configuration file system.archshift1-0/+29
Uses QSettings on citra-qt, and inih on citra-cli.