ReinUsesLisp
67dd8466b3
gc_adapter: Disable MSVC nonstandard extension warning on libusb.h
Pragma disable zero-sized array nonstandard extension warning on MSVC.
5 years ago
Lioncash
767fcd8a81
crypto/key_manager: Remove dependency on the global system accessor
We can supply the content provider as an argument instead of hardcoding
a global accessor in the implementation.
5 years ago
Lioncash
f700c48cc0
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
b3d2fd39d3
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
054735e3fe
service: Remove two usages of the global system accessor
Removes more instances of reliance on global state.
5 years ago
Lioncash
14d5340a9d
gc_adapter: Make DeviceConnected() a const member function
This doesn't modify instance state, so it can be made const.
5 years ago
Lioncash
b1c64e8c4f
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
0bf0d9d3c3
bsd: Resolve sign comparison warnings
5 years ago
Lioncash
3467cfb357
sockets_translate: Make use of designated initializers
Same behavior, less typing.
5 years ago
Lioncash
2c196e7c6e
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
0d180e23f0
blocking_worker: Resolve -Wdocumentation warning
5 years ago
ReinUsesLisp
8efb2c5537
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
55db7a4e0a
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
b26bc3864a
Minor cleanup
5 years ago
german
82eb4be33b
Add cemu hook changes related to PR #4609
5 years ago
german
17b48f8d42
Remove RealMotionDevice
5 years ago
Morph
4c09c78391
configure_input_player: Show/hide motion buttons based on the controller
5 years ago
Morph
a04a7174c7
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
876e6fc255
Include HID and configuration changes related to motion
5 years ago
Morph
ce1c6f2eea
hid: Implement MergeSingleJoyasDualJoy
- Used in multiple games such as Super Mario Odyssey.
5 years ago
Morph
0ce52a8070
applets/controller: Resolve several compiler warnings
Resolves -Wsign-compare and -Wunused-variable
5 years ago
Morph
5c853d4dc7
Address feedback
5 years ago
Morph
0efbd23445
clang-format
5 years ago
Morph
b9cde4fa6d
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
212b4a584d
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
c2ca06a65c
main: Apply settings after applet configuration is complete.
5 years ago
Morph
3742ae763c
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
38fcde96d7
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
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()
5 years ago
Morph
00df69232a
applets/controller: Implement "Explain Text"
"Explain Text" is additional text that is shown for each player in the controller applet.
5 years ago
Morph
4c621b9b09
Project Mjölnir: Part 2 - Controller Applet
Co-authored-by: Its-Rei <kupfel@gmail.com>
5 years ago
ReinUsesLisp
5bccefe24c
file_sys/patch_manager: Add missing include
Fixes build issues
5 years ago
lat9nq
ff09c0c1c9
main: Use three dots to complete the ellipsis
Fixes a typo in the UI file. An ellipsis has 3 dots.
5 years ago
Morph
f3417b01e1
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
6392fc8898
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
1233d14175
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
ee199ead59
Address second batch of reviews
5 years ago
Lioncash
9f9e02ba58
configure_input_player: Resolve sign conversion warnings in UpdateMappingWithDefaults()
Prevents sign mismatch warnings in the loop conditionals.
5 years ago
FearlessTobi
708e015ffc
Reolve reorder warning
5 years ago
FearlessTobi
01dbe3a624
Address review comments and fix code compilation
5 years ago
Lioncash
428c1071f8
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
55cc9b868b
game_list_p: Avoid string churn in GameListItemPath data()
5 years ago
Lioncash
75f4e7d6b0
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
2903f0f7ce
yuzu: Add motion and touch configuration
6 years ago
Lioncash
752b626714
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
c20b902843
yuzu/configuration: Fix index out of bounds for default_analogs
5 years ago
Lioncash
56d39caa1d
sdl_impl: Reduce allocations in GetButtonMappingForDevice()
These maps can be constexpr arrays of std::pair.
5 years ago
Lioncash
eb2ab15bdb
sdl_impl: Make use of std::move on std::string where applicable
Avoids redundant copies.
5 years ago
Lioncash
285e3386e2
sdl_impl: Make use of insert_or_assign() where applicable
Avoids churning ParamPackage instances.
5 years ago
Lioncash
3413c8c046
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