german
ddff03cff5
Use different timing for motion
5 years ago
Lioncash
ff45c39578
General: Make use of std::nullopt where applicable
Allows some implementations to avoid completely zeroing out the internal
buffer of the optional, and instead only set the validity byte within
the structure.
This also makes it consistent how we return empty optionals.
5 years ago
Morph
ab961e0701
hid: Implement Get/SetNpadHandheldActivationMode
- Used in Clubhouse Games: 51 Worldwide Classics
5 years ago
Morph
40a72e9cd5
am: Stub GetPreviousProgramIndex
- Used in Super Mario 3D All-Stars
5 years ago
Lioncash
aca3621146
nfp: Eliminate two unnecessary copies
GetAmiiboBuffer() returns by const reference, so we can use a reference
instead of taking the returned buffer by value.
5 years ago
Lioncash
8bbd82863d
service: Remove unused funcation
This is now completely unused, so it can be removed.
5 years ago
Lioncash
057aa6275d
service/sm: Slightly more efficient string name validation
We can check the end of the string first for null-termination, rather
than the beginning of the string.
5 years ago
Lioncash
78b1bc3b61
service/sm: Eliminate dependency on the global system instance
5 years ago
Lioncash
0e80567bef
file_sys/bis_factory: Eliminate usage of the global system accessor
5 years ago
Lioncash
ec2a6e5ba8
kernel: Remove all dependencies on the global system instance
With this, the kernel finally doesn't depend directly on the global
system instance anymore.
5 years ago
FearlessTobi
57162e1df3
Test: Decrease pad_update_ns
There have been reports of quite heavy input lag in the past.
Compared to Citra for example, our pad_update_ns value is very high.
So let's decrease it and see if it helps with this problem.
5 years ago
Lioncash
ffdf8c0cb3
service: Remove two usages of the global system accessor
Removes more instances of reliance on global state.
5 years ago
Lioncash
40968e3993
bsd: Resolve unused value within SendToImpl
Previously the address provided to SendToImpl would never be propagated
to SendTo(). This fixes that.
5 years ago
Lioncash
cd643ab5c9
bsd: Resolve sign comparison warnings
5 years ago
Lioncash
180fa6859f
sockets_translate: Make use of designated initializers
Same behavior, less typing.
5 years ago
Lioncash
188a3cf74c
blocking_worker: Make use of templated lambda
We can simplify this a little by explicitly specifying the typename for
the lambda function.
5 years ago
Lioncash
9652973db2
blocking_worker: Resolve -Wdocumentation warning
5 years ago
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.
5 years ago
german
6ee8eab670
Add cemu hook changes related to PR #4609
5 years ago
german
0774b17846
Remove RealMotionDevice
5 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.
5 years ago
german
ff679f3d17
Include HID and configuration changes related to motion
5 years ago
Morph
0e33b19ae0
hid: Implement MergeSingleJoyasDualJoy
- Used in multiple games such as Super Mario Odyssey.
5 years ago
Morph
076e4d44c3
Address feedback
5 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.
5 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.
5 years ago
Morph
5ce3015945
applets/controller: Implement "Explain Text"
"Explain Text" is additional text that is shown for each player in the controller applet.
5 years ago
Morph
5219615418
Project Mjölnir: Part 2 - Controller Applet
Co-authored-by: Its-Rei <kupfel@gmail.com>
5 years ago
FearlessTobi
e6bd1fd1b8
yuzu: Add motion and touch configuration
6 years ago
Morph
eb149ec696
controllers/npad: Fix inconsistencies with controller connection statuses
5 years ago
Morph
334ef2efdd
controllers/npad: Fix LibNX controller connection statuses
This allows homebrew applications to be able to properly detect connected controllers.
5 years ago
Morph
e7c174b426
controllers/npad: Fix LedPattern for P1-4
5 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.
5 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.
5 years ago
Lioncash
4c1a95ed61
fsp_srv: Resolve -Wunused-but-set-variable warning
We can just log out the parameters in the meantime.
5 years ago
Lioncash
01d1b5cdaf
file_sys: Replace inclusions with forward declarations where applicable
Same behavior, minus unnecessary inclusions where not necessary.
5 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().
5 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.
5 years ago
Lioncash
b14277ef97
time_zone_content_manager: Collapse auto and default case
Prevents a useless self-assignment from occurring.
5 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.
5 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.
5 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.
5 years ago
Lioncash
b724a4d90c
General: Tidy up clang-format warnings part 2
5 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.
5 years ago
Lioncash
87c64c41d2
system_control: Make functions internally linked where applicable
These functions are only ever used internally as implementation details
for GenerateRandomRange(), so these can be given internal linkage.
5 years ago
Lioncash
a10d64ea79
kernel: Remove unused variables
Resolves a few compiler warnings.
5 years ago
Lioncash
9893da8e2c
scheduler: Resolve sign conversion warning
5 years ago
Lioncash
1a45b15a8c
address_arbiter: Resolve sign conversion warning
Makes our type conversion explicit.
5 years ago
Lioncash
a77ee63f65
ipc_helpers: Only allow trivially copyable objects with PushRaw() and PopRaw()
It's undefined behavior to use non-trivially copyable objects with
std::memcpy, so we can add asserts to catch usages of these at
compile-time.
5 years ago