Lioncash
ffdf8c0cb3
service: Remove two usages of the global system accessor
Removes more instances of reliance on global state.
5 years ago
Lioncash
c715fc4c5e
gc_adapter: Make DeviceConnected() a const member function
This doesn't modify instance state, so it can be made const.
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
ReinUsesLisp
9e87193725
video_core: Remove all Core::System references in renderer
Now that the GPU is initialized when video backends are initialized,
it's no longer needed to query components once the game is running: it
can be done when yuzu is booting.
This allows us to pass components between constructors and in the
process remove all Core::System references in the video backend.
6 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
797564599f
Minor cleanup
5 years ago
german
6ee8eab670
Add cemu hook changes related to PR #4609
5 years ago
german
0774b17846
Remove RealMotionDevice
5 years ago
Morph
8e18b61972
configure_input_player: Show/hide motion buttons based on the controller
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
b65456b958
applets/controller: Resolve several compiler warnings
Resolves -Wsign-compare and -Wunused-variable
5 years ago
Morph
076e4d44c3
Address feedback
5 years ago
Morph
1ec71b6ea0
clang-format
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
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.
5 years ago
Morph
6597b3817c
main: Apply settings after applet configuration is complete.
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
72b2f5d34f
applets/controller: Load configuration prior to setting up connections
This avoids unintentionally changing the states of elements while loading them in.
5 years ago
Morph
aeec0f8a38
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()
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
ReinUsesLisp
827ff077e7
file_sys/patch_manager: Add missing include
Fixes build issues
5 years ago
lat9nq
0914e84014
main: Use three dots to complete the ellipsis
Fixes a typo in the UI file. An ellipsis has 3 dots.
5 years ago
Morph
45ecd601be
input_common/motion_input: Make use of Common::PI constant
Also amend the copyright notice to yuzu's instead of Dolphin's, which was mistakenly copy-pasted from another file.
5 years ago
ReinUsesLisp
c573920c01
vk_device: Fix driver id check on AMD for VK_EXT_extended_dynamic_state
'driver_id' can only be known on Vulkan 1.1 after creating a logical
device. Move the driver id check to disable
VK_EXT_extended_dynamic_state after the logical device is successfully
initialized.
The Vulkan device will have the extension enabled but it will not be
used.
5 years ago
Lioncash
a5dcccfdd2
externals: Update Xbyak to 5.96
I made a request on the Xbyak issue tracker to allow some constructors
to be constexpr in order to avoid static constructors from needing to
execute for some of our register constants.
This request was implemented, so this updates Xbyak so that we can make
use of it.
5 years ago
FearlessTobi
d1e1ea0fef
Address second batch of reviews
5 years ago
Lioncash
92c162126b
configure_input_player: Resolve sign conversion warnings in UpdateMappingWithDefaults()
Prevents sign mismatch warnings in the loop conditionals.
5 years ago
FearlessTobi
0aa6ec4276
Reolve reorder warning
5 years ago
FearlessTobi
d176feffad
Address review comments and fix code compilation
5 years ago
Lioncash
1aba91e993
bootmanager: Prevent unnecessary copies in TouchUpdateEvent()
The list of points is returned by const reference, so we don't need to
make a copy of every element in the list.
5 years ago
Lioncash
fae65d8a72
game_list_p: Avoid string churn in GameListItemPath data()
5 years ago
Lioncash
cde658cb27
game_list_p: Mark some constants as constexpr
Consistency change with how we mark constants in the rest of the
codebase.
5 years ago
FearlessTobi
e6bd1fd1b8
yuzu: Add motion and touch configuration
6 years ago
Lioncash
bcd3c79eca
yuzu/main: Amend lifetime issues with InputSubsystem
Due to the way Qt performs destruction of parent/child widgets, we need
to make the lifetime of the input subsystem shared across the main
window and the render window.
5 years ago
Morph
403e36fab2
yuzu/configuration: Fix index out of bounds for default_analogs
5 years ago
Lioncash
69fa6b4906
sdl_impl: Reduce allocations in GetButtonMappingForDevice()
These maps can be constexpr arrays of std::pair.
5 years ago
Lioncash
f2a680ca89
sdl_impl: Make use of std::move on std::string where applicable
Avoids redundant copies.
5 years ago
Lioncash
e92164e6a0
sdl_impl: Make use of insert_or_assign() where applicable
Avoids churning ParamPackage instances.
5 years ago
Lioncash
f3ac088345
sdl_impl: Prevent type truncation in BuildAnalogParamPackageForButton() default arguments
We need to add the 'f' suffix to make the right hand side a float and
not a double.
5 years ago
Lioncash
2e2dde2f95
sdl_impl: Simplify make_tuple call
The purpose of make_tuple is that you don't need to explicitly type out
the types of the things that comprise said tuple.
Given this just returns default values, we can simplify this a bit.
5 years ago
Lioncash
2680526e6b
sdl_impl: Mark FromEvent() as a const member function
This doesn't modify internal member state, so it can be marked as const.
5 years ago
Lioncash
98f5d8a713
input_common/main: Remove unnecessary headers
5 years ago
Lioncash
4b9b203c09
input_common/main: Remove unimplemented prototype
I forgot to remove this in the rebase when removing most of the global
variables within the input common codebase.
5 years ago