summaryrefslogtreecommitdiff
path: root/src/yuzu/configuration/configure_hotkeys.cpp
AgeCommit message (Collapse)Author
2024-12-31chore: update project branding to citronZephyron
2024-02-06yuzu: Make controller keys easier to assigngerman77
2024-01-05hid_core: Move hid to it's own subprojectNarr the Reg
2023-11-21config: Unify config handling under frontend_commont895
Replaces every way of handling config for each frontend with SimpleIni. frontend_common's Config class is at the center where it saves and loads all of the cross-platform settings and provides a set of pure virtual functions for platform specific settings. As a result of making config handling platform specific, several parts had to be moved to each platform's own config class or to other parts. Default keys were put in platform specific config classes and translatable strings for Qt were moved to shared_translation. Default hotkeys, default_theme, window geometry, and qt metatypes were moved to uisettings. Additionally, to reduce dependence on Qt, QStrings were converted to std::strings where applicable.
2023-10-21yuzu: Fix restore shortcuts buttonNarr the Reg
2023-05-10Allow fully customisable controller hotkeysgrimkor
2022-07-27chore: make yuzu REUSE compliantAndrea Pappacoda
[REUSE] is a specification that aims at making file copyright information consistent, so that it can be both human and machine readable. It basically requires that all files have a header containing copyright and licensing information. When this isn't possible, like when dealing with binary assets, generated files or embedded third-party dependencies, it is permitted to insert copyright information in the `.reuse/dep5` file. Oh, and it also requires that all the licenses used in the project are present in the `LICENSES` folder, that's why the diff is so huge. This can be done automatically with `reuse download --all`. The `reuse` tool also contains a handy subcommand that analyzes the project and tells whether or not the project is (still) compliant, `reuse lint`. Following REUSE has a few advantages over the current approach: - Copyright information is easy to access for users / downstream - Files like `dist/license.md` do not need to exist anymore, as `.reuse/dep5` is used instead - `reuse lint` makes it easy to ensure that copyright information of files like binary assets / images is always accurate and up to date To add copyright information of files that didn't have it I looked up who committed what and when, for each file. As yuzu contributors do not have to sign a CLA or similar I couldn't assume that copyright ownership was of the "yuzu Emulator Project", so I used the name and/or email of the commit author instead. [REUSE]: https://reuse.software Follow-up to 01cf05bc75b1e47beb08937439f3ed9339e7b254
2022-05-18UI: Translate hotkey labels in configurationKyle K
Another request from GillianMC. The translated strings have been placed in a separate "Hotkeys" context as an alternative to having to add the tr function to the Config class, or adding them to ConfigureHotkeys context which is quite long. The English strings get attached to the items in the Action column as "data", and are used for RetranslateUI and saving the hotkey configuration.
2022-04-02configure_hotkeys: Make first column stretch and not last columnmerry
Also configure minimum width of columns to be 150px.
2022-01-27hotkeys: Don't translate hotkey buttonsgerman77
2022-01-06yuzu: Add controller hotkeysgerman77
2021-04-14common: Move settings to common from core.bunnei
- Removes a dependency on core and input_common from common.
2020-08-16configure_hotkeys: Don't translate empty stringsLioncash
There's no need to translate an empty string. This just gives translators unnecessary work.
2020-04-24Add Restore Defaults and Clear options to hotkeysKewlan
2020-01-12GUI/configure: resize hotkeys column to contentBartosz Kaszubowski
2019-06-05yuzu/configuration: Make all widgets and dialogs aware of language changesLioncash
To prepare for translation support, this makes all of the widgets cognizant of the language change event that occurs whenever installTranslator() is called and automatically retranslates their text where necessary. This is important as calling the backing UI's retranslateUi() is often not enough, particularly in cases where we add our own strings that aren't controlled by it. In that case we need to manually refresh the strings ourselves.
2019-06-05yuzu/configuration: Make function naming consistentLioncash
2019-05-25configure_hotkeys: Remove unnecessary Settings::Apply() callLioncash
Nothing from the hotkeys dialog relies on this call occurring, and is already called from the dialog that calls applyConfiguration().
2019-05-25configure_hotkeys: Tidy up key sequence conflict error stringLioncash
Avoids mentioning the user and formalizes the error itself.
2019-05-25configure_hotkeys: Change critical error dialog into a warning dialogLioncash
critical() is intended for critical/fatal errors that threaten the overall stability of an application. A user entering a conflicting key sequence is neither of those.
2019-05-25configure_hotkeys: Move conflict detection logic to IsUsedKey()Lioncash
We don't need to extract the entire set of hotkeys into a list and then iterate through it. We can traverse the list and early-exit if we're able to.
2019-05-25configure_hotkeys: Remove unused EmitHotkeysChanged()Lioncash
1. This is something that should be solely emitted by the hotkey dialog itself 2. This is functionally unused, given there's nothing listening for the signal.
2019-04-09configure_hotkeys: Pass the dialog as a parent to SequenceDialog()Lioncash
Without passing in a parent, this can result in focus being stolen from the dialog in certain cases. Example: On Windows, if the logging window is left open, the logging Window will potentially get focus over the hotkey dialog itself, since it brings all open windows for the application into view. By specifying a parent, we only bring windows for the parent into view (of which there are none, aside from the hotkey dialog).
2019-04-09configure_hotkeys: Avoid dialog memory leak within Configure()Lioncash
Without a parent, this dialog won't have its memory freed when it happens to get destroyed.
2019-04-09configure_hotkeys: Mark member variables as const where applicable in ↵Lioncash
Configure()
2019-04-09configure_hotkeys: Make comparison check a little more self-documentingLioncash
This is checking if an index is valid or not and returning early if it isn't.
2019-04-09configure_hotkey: Make IsUsedKey() a const member functionLioncash
This doesn't actually modify instance state of the dialog, so this can be made const.
2019-03-16yuzu: Make hotkeys configurable via the GUIAdityarup Laha
* Adds a new Hotkeys tab in the Controls group. * Double-click a Hotkey to rebind it.