Morph
5b6268d26a
configure_input: Hook up the motion button and checkbox
This allows toggling motion on or off, and allows access to the motion configuration.
Also changes the [waiting] text for motion buttons to Shake! as this is how motion is connected to a player.
6 years ago
german
6ee8eab670
Add cemu hook changes related to PR #4609
6 years ago
german
0774b17846
Remove RealMotionDevice
6 years ago
Morph
df3cbd4758
controllers/npad: Simplify motion entry assignment
Simplifies the motion assignment in the Dual Joycon entry and assigns index 1 of the motion entry (Motion 2) for the right joycon.
6 years ago
german
ff679f3d17
Include HID and configuration changes related to motion
6 years ago
Morph
0e33b19ae0
hid: Implement MergeSingleJoyasDualJoy
- Used in multiple games such as Super Mario Odyssey.
6 years ago
Morph
b65456b958
applets/controller: Resolve several compiler warnings
Resolves -Wsign-compare and -Wunused-variable
6 years ago
Morph
076e4d44c3
Address feedback
6 years ago
Morph
f95ea04995
applets/controller: Set min_players to have a minimum value of 1.
- Some games like Shipped have a minimum requirement of 0 connected players and is undesired behavior. We must require a minimum of 1 player connected regardless of what games may ask.
6 years ago
Morph
371226448a
applets/controller: Modify heuristic to account for certain games
Now left and right joycons have the same priority (meaning both needs to be supported by the game).
Explanation of the new heuristic:
Assign left joycons to even player indices and right joycons to odd player indices.
We do this since Captain Toad Treasure Tracker expects a left joycon for Player 1 and a right Joycon for Player 2 in 2 Player Assist mode.
6 years ago
Morph
7299356f37
applets/controller: Implement fallback applet for the SDL frontend
Implement the fallback applet for the SDL frontend, connecting only the minimum amount of players required.
6 years ago
Morph
5ce3015945
applets/controller: Implement "Explain Text"
"Explain Text" is additional text that is shown for each player in the controller applet.
6 years ago
Morph
5219615418
Project Mjölnir: Part 2 - Controller Applet
Co-authored-by: Its-Rei <kupfel@gmail.com>
6 years ago
ReinUsesLisp
827ff077e7
file_sys/patch_manager: Add missing include
Fixes build issues
6 years ago
FearlessTobi
d1e1ea0fef
Address second batch of reviews
6 years ago
FearlessTobi
e6bd1fd1b8
yuzu: Add motion and touch configuration
6 years ago
Morph
eb149ec696
controllers/npad: Fix inconsistencies with controller connection statuses
6 years ago
Morph
334ef2efdd
controllers/npad: Fix LibNX controller connection statuses
This allows homebrew applications to be able to properly detect connected controllers.
6 years ago
Morph
e7c174b426
controllers/npad: Fix LedPattern for P1-4
6 years ago
Morph
f0fac0c7fb
Project Mjölnir: Part 1
Co-authored-by: James Rowe <jroweboy@gmail.com>
Co-authored-by: Its-Rei <kupfel@gmail.com>
6 years ago
ReinUsesLisp
ccdd84a778
hle/scheduler: Fix data race in is_context_switch_pending
As reported by tsan, SelectThreads could write to
is_context_switch_pending holding a mutex while SwitchToCurrent reads it
without holding any.
It is assumed that the author didn't want an atomic here, so the code is
reordered so that whenever is_context_switch_pending is read inside
SwitchToContext, the mutex is locked.
6 years ago
ReinUsesLisp
36eade7f4c
hle/kernel: Fix data race in GetCurrentHostThreadID
As reported by tsan, host_thread_ids could be read while
any of the RegisterHostThread variants were called.
To fix this, lock the register mutex when yuzu is running in multicore
mode and GetCurrentHostThreadID is called.
6 years ago
ReinUsesLisp
56ac22f737
cpu_interrupt_handler: Misc style changes
6 years ago
ReinUsesLisp
ea7bda25ba
cpu_interrupt_handler: Make is_interrupted an atomic
Fixes a race condition detected from tsan
6 years ago
Lioncash
4c1a95ed61
fsp_srv: Resolve -Wunused-but-set-variable warning
We can just log out the parameters in the meantime.
6 years ago
Lioncash
01d1b5cdaf
file_sys: Replace inclusions with forward declarations where applicable
Same behavior, minus unnecessary inclusions where not necessary.
6 years ago
Lioncash
85db5f4091
fsp_srv: Resolve -Wmaybe_uninitialized warning in OpenSaveDataFileSystem()
Initialize id to a deterministic value and also mark the unreachable
cases in the switch with UNREACHABLE().
6 years ago
Lioncash
67a8e73101
registered_cache: Make use of ends_with for string suffix checking
Simplifies code.
6 years ago
Lioncash
f83c6e1e0c
registered_cache: Make use of designated initializers
Removes the need for comments to indicate the fields being assigned.
6 years ago
Lioncash
b62a8ca43e
key_manager: Make data arrays constexpr
We can convert these maps into constexpr arrays to eliminate some
runtime static constructors.
6 years ago
Lioncash
544fbd5c84
cpu_manager: Make use of ranged for where applicable
We can simplify a few loops by making use of ranged for.
6 years ago
Lioncash
79504f1a39
core_timing: Remove unused header
6 years ago
Lioncash
25cd5d9dda
core_timing: Move clock initializer into constructor initializer list
Same behavior, minus unnecessary zeroing out of the pointer.
6 years ago
Lioncash
2624b1eae6
core_timing: Resolve sign conversion warning
This constant is only ever assigned to downcount, which is a s64, not a
u64.
6 years ago
Lioncash
f6bb905182
common/telemetry: Migrate namespace into the Common namespace
Migrates the Telemetry namespace into the Common namespace to make the
code consistent with the rest of our common code.
6 years ago
Lioncash
551882e512
vfs_real: Resolve sign conversion warnings
6 years ago
Lioncash
ed9ae5a977
vfs_real: Avoid redundant map lookups
Avoids some trivially avoidable map lookups by keeping the result of
find operations around and querying them.
6 years ago
MerryMage
836ec9176a
dynarmic: Add unsafe optimizations
6 years ago
Lioncash
c4ed791164
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
b14277ef97
time_zone_content_manager: Collapse auto and default case
Prevents a useless self-assignment from occurring.
6 years ago
Lioncash
03d5a5d9de
software_keyboard: Resolve a pessimizing move warning
A std::vector created in place like this is already an rvalue and
doesn't need to be moved.
6 years ago
Lioncash
2296e921d2
core: Resolve several -Wextra-semi warnings
We can amend one of the cascade macros to require semicolons in order to
compile. In other cases, we can just remove the superfluous semicolons.
6 years ago
Lioncash
a93f6e51d3
emu_window: Mark Scoped constructor and Acquire() as nodiscard
Ensures that callers make use of the constructor, preventing bugs from
silently occurring.
6 years ago
Lioncash
f808258ed9
kernel/scheduler: Mark SchedulerLock constructor as nodiscard
Allows the compiler to warn about cases where the constructor is used
but then immediately discarded, which is a potential cause of
locking/unlocking bugs.
6 years ago
Lioncash
b724a4d90c
General: Tidy up clang-format warnings part 2
6 years ago
Lioncash
8e86fa7e60
common/concepts: Rename IsBaseOf to DerivedFrom
This makes it more inline with its currently unavailable standardized
analogue std::derived_from.
While we're at it, we can also make the template match the requirements
of the standardized variant as well.
6 years ago
Lioncash
61cd7eb47d
freezer: Move entry finding to its own function
Cleans up the callsites in other functions.
6 years ago
Lioncash
06ab28263b
freezer: Take address values by value
VAddr will always be 64-bit, so there's no need to take a trivial
primitive alias by reference.
6 years ago
Lioncash
253a17451b
freezer: Make use of std::erase_if
With C++20 we can simplify the erasing idiom.
6 years ago
Lioncash
5b89291308
cheat_engine: Resolve implicit bool->u64 conversion
We can just return zero here.
6 years ago