Morph
f80127d4e0
applets/controller: Change the input button to create input profiles
Co-authored-by: Its-Rei <kupfel@gmail.com>
5 years ago
Morph
ad45ceeaf0
input: Disconnect a controller prior to connecting a new one
Some games do not respond to a change in controller type if 1) The controller is not disconnected prior to being reconnected and/or 2) The controller is reconnected instantly after being disconnected.
Since it is not possible to change controllers instantly on hardware and requiring a disconnect prior to connecting a new one, we should emulate this as well with a small delay, fixing the aforementioned issue.
5 years ago
Morph
ad3905fe27
input_common: Add VibrationDevice and VibrationDeviceFactory
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.
6 years ago
Morph
cce389221b
configure_input: Add per-player vibration
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>
6 years ago
Morph
ee8ec56291
settings: Remove global vibration strength modifier
This will be replaced in favor of per-player vibration strength modifiers.
6 years ago
Morph
06bc7678ba
configure_input: Hook up the vibration percentage spinbox
This allows setting the vibration strength percentage anywhere from 1% to 100%.
Also hooks up the remaining motion button and checkbox in the Controller Applet.
6 years ago
Morph
1c1a83a20d
settings: Preparation for per-game input settings
6 years ago
Morph
a7dd4f21dd
applets/controller: Auto accept a valid single player configuration
6 years ago
Morph
4999d2443d
ui/themes: Cleanup UI
6 years ago
Lioncash
c3f019b9eb
controller: Pass ControllerParameters by reference in ReconfigureControllers()
Prevents unnecessary copies and heap reallocations from occurring.
5 years ago
Lioncash
59a56fa810
general: Use template deduction guides for lock_guard
Same behavior, less code.
5 years ago
Lioncash
652c36ef9c
controller: Convert led_patterns integer literals to bool literals
'bool' isn't always guaranteed to be the same size as an int, so this
can technically cause truncation warnings if we support other platforms.
5 years ago
Morph
5bdd042c3e
applets/profile_select: Resolve a warning in exec()
Resolves a warning where not all control paths return a value.
5 years ago
Kewlan
2204839317
Don't ask for profile when there's only one.
6 years ago
Morph
0ce52a8070
applets/controller: Resolve several compiler warnings
Resolves -Wsign-compare and -Wunused-variable
6 years ago
Morph
5c853d4dc7
Address feedback
6 years ago
Morph
0efbd23445
clang-format
6 years ago
Morph
38fcde96d7
applets/controller: Load configuration prior to setting up connections
This avoids unintentionally changing the states of elements while loading them in.
6 years ago
Morph
afa931cb3c
applets/controller: Make 8 a static constexpr value of NUM_PLAYERS
Avoids repetitive usages of the int literal '8' or calls to player_widgets.size()
6 years ago
Morph
00df69232a
applets/controller: Implement "Explain Text"
"Explain Text" is additional text that is shown for each player in the controller applet.
6 years ago
Morph
4c621b9b09
Project Mjölnir: Part 2 - Controller Applet
Co-authored-by: Its-Rei <kupfel@gmail.com>
6 years ago
Lioncash
a87209e09d
common/fileutil: Convert namespace to Common::FS
Migrates a remaining common file over to the Common namespace, making it
consistent with the rest of common files.
This also allows for high-traffic FS related code to alias the
filesystem function namespace as
namespace FS = Common::FS;
for more concise typing.
6 years ago
Lioncash
eaeb4520f7
General: Resolve warnings related to missing declarations
6 years ago
Zach Hilman
76bf6c6ea9
web_browser: Rename OpenPage to OpenPageLocal
This is more representative of what actually occurs, as web does support remote URLs which wouldn't need a romfs callback. This paves for easy future support of this with a call like 'OpenPageRemote' or similar.
7 years ago
Zach Hilman
bf2e779efb
constants: Extract backup JPEG used by account services
7 years ago
Lioncash
a4d4b67322
yuzu/software_keyboard: Remove unnecessary GetStatus() member function
Like with the profile selection dialog, we can just use the result of
QDialog's exec() function to determine whether or not a dialog was
accepted.
7 years ago
Lioncash
5cf1aab5a8
profile_select: Remove unnecessary GetStatus() member function
This behavior is already provided by the built-in exec() function. We
just need to check the return value of it.
7 years ago
Lioncash
5f2adf1a9e
profile_select: Return int instead of u32 for GetIndex()
Qt uses a signed value to represent indices. We should follow this
convention where applicable to avoid unnecessary sign-conversion
warnings, as well as making it easier to interoperate with other aspects
of Qt.
While we're at it, we can also make a sign-conversion explicit.
7 years ago
Lioncash
f4a1312c3c
yuzu/applets/software_keyboard: Remove unused assert header
This isn't actually used anywhere, so it can be removed.
7 years ago
Lioncash
c991a5d2b0
yuzu/applets/software_keyboard: std::move argument in MainWindowFinishedText()
Given the std::optional can contain an object type that heap allocates,
we can use std::move to avoid an unnecessary copy/allocation from
occurring.
7 years ago
Lioncash
63eed87b61
yuzu/applets/software_keyboard: Resolve sign mismatch comparison
Qt uses a signed value to represent container sizes, so this was causing
a sign mismatch warning.
7 years ago
Lioncash
cd72443889
yuzu/applets/software_keyboard: Specify string conversions explicitly
Allows the software keyboard applet code to compile with implicit string
conversions disabled.
7 years ago
Lioncash
0cfd78073f
yuzu/applets/error: Specify string conversions explicitly
Allows the error applet to build successfully with implicit string
conversions disabled.
7 years ago
Lioncash
db22039c4b
yuzu/applets/profile_select: Mark header string as translatable
This is a user-facing string, so it should be marked as translatable.
7 years ago
Lioncash
68cd911bd1
yuzu: Remove explicit types from locks where applicable
With C++17's deduction guides, the type doesn't need to be explicitly
specified within locking primitives anymore.
7 years ago
Zach Hilman
ad5e497bff
profile_select: Port Service::Account::UUID to Common::UUID
7 years ago
Zach Hilman
107d725af8
web_browser: Make OpenPage non-const
7 years ago
Zach Hilman
b508e60fe4
qt: Add dialog implementation of Error applet
7 years ago
Zach Hilman
663b24e0d2
web_browser: Make OpenPage const
7 years ago
Lioncash
746e7ee4df
yuzu/applets/software_keyboard: Use QDialogButtonBox standard buttons instead of custom buttons
Like the previous change, this allows Qt to handle proper translations
of the UI buttons, rather than us needing to handle it.
7 years ago
Lioncash
e49a08ff6b
yuzu/applets/profile_select: Use QDialogButtonBox standard buttons instead of custom buttons
Makes for shorter code, while also not requiring the buttons to be
directly translated, they'll be handled by Qt itself.
7 years ago
Lioncash
eb88e9d088
general: Use deducation guides for std::lock_guard and std::unique_lock
Since C++17, the introduction of deduction guides for locking facilities
means that we no longer need to hardcode the mutex type into the locks
themselves, making it easier to switch mutex types, should it ever be
necessary in the future.
7 years ago
Adityarup Laha
62287f8ee7
yuzu: Make hotkeys configurable via the GUI
* Adds a new Hotkeys tab in the Controls group.
* Double-click a Hotkey to rebind it.
7 years ago
Zach Hilman
91b36c026a
web_browser: Add shortcut to Enter key to exit applet
Addresses issues where a user in fullscreen could not exit some web applets without leaving fullscreen.
7 years ago
Lioncash
ab2f154ff4
core/frontend/applets/web_browser: Make OpenPage() non-const
This is a function that definitely doesn't always have a non-modifying
behavior across all implementations, so this should be made non-const.
This gets rid of the need to mark data members as mutable to work around
the fact mutating data members needs to occur.
7 years ago
Lioncash
37cbee5e33
yuzu/web_browser: std::move std::function instances in OpenPage()
Avoids the need to potentially reallocate the contained callbacks.
7 years ago
Lioncash
a44dae2514
yuzu/web_browser: Make slot functions private
These currently aren't used by anything other than the QtWebBrowser
class itself, and can be made private.
7 years ago
Zach Hilman
f49f3e509f
web_browser: Add bounds checking to applet interface
7 years ago
Zach Hilman
58180e39ff
qt: Implement Qt frontend to web browser
Using a custom reimplementation of QWebEngineView and an injector script.
7 years ago
Zach Hilman
b999d2df45
applets: Correct event ResetTypes from OneShot to Sticky
Fixes bugs relating to signalling in software keyboard.
7 years ago