bunnei
65fe94b685
Merge pull request #4601 from lioncash/const3
sdl_impl: Minor cleanup
5 years ago
bunnei
ac1a7c7a55
Merge pull request #4605 from lioncash/copy3
bootmanager: Prevent unnecessary copies in TouchUpdateEvent()
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
LC
437bc3c199
Merge pull request #4604 from lioncash/lifetime
yuzu/main: Amend lifetime issues with InputSubsystem
5 years ago
LC
2275de452b
Merge pull request #4603 from Morph1984/fix-modifier
yuzu/configuration: Fix index out of bounds for default_analogs
5 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
Lioncash
1338c58d37
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
4dc59a4b64
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
LC
62b70f5226
Merge pull request #4600 from lioncash/prototype
input_common/main: Remove unimplemented prototype
5 years ago
Lioncash
0322ffa4fd
input_common/main: Remove unnecessary headers
5 years ago
Rodrigo Locatti
9f1e4569d5
Merge pull request #4599 from ReinUsesLisp/amd-extended-state
vk_device: Blacklist AMD proprietary from VK_EXT_extended_dynamic_state
5 years ago
Lioncash
72d5a883a1
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
ReinUsesLisp
a7ea965de5
vk_device: Blacklist AMD proprietary from VK_EXT_extended_dynamic_state
Vertex binding's <stride> is bugged on AMD's proprietary drivers when
using VK_EXT_extended_dynamic_state. Blacklist it for now while we
investigate how to report this issue to AMD.
5 years ago
FearlessTobi
eb54f262b5
Add LGTM static analyzer config file
Co-Authored-By: Valeri <v19930312@gmail.com>
5 years ago
bunnei
fc797d39df
Merge pull request #4544 from lioncash/input-sub
input_common: Eliminate most global state
5 years ago
bunnei
9fd13dd80a
Merge pull request #4586 from yuzu-emu/tsan-cpu-interrupt
cpu_interrupt_handler: Make is_interrupted an atomic
5 years ago
german
f327977dfa
Fix orientation errors and improve drift correction
5 years ago
german
dbf0608afd
Address comments
5 years ago
german
0e11d1c09a
Implement a basic class for motion devices
5 years ago
Lioncash
affbf8e188
input_common: Eliminate most global state
Abstracts most of the input mechanisms under an InputSubsystem class
that is managed by the frontends, eliminating any static constructors
and destructors. This gets rid of global accessor functions and also
allows the frontends to have a more fine-grained control over the
lifecycle of the input subsystem.
This also makes it explicit which interfaces rely on the input subsystem
instead of making it opaque in the interface functions. All that remains
to migrate over is the factories, which can be done in a separate
change.
5 years ago
bunnei
c76a188f47
Merge pull request #4530 from Morph1984/mjolnir-p1
Project Mjölnir: Part 1 - Input Rewrite
5 years ago
bunnei
a8ab0af067
Merge pull request #4577 from lioncash/asserts
common/assert: Make use of C++ attribute syntax
5 years ago
bunnei
ab46e0986e
Merge pull request #4524 from lioncash/memory-log
shader/memory: Amend UNIMPLEMENTED_IF_MSG without a message
5 years ago
bunnei
a36b8c6405
Merge pull request #4569 from ReinUsesLisp/glsl-cmake
video_core/host_shaders: Add CMake integration for string shaders
5 years ago
Morph
4ca910101f
input_common/main: Add "/Mouse" to the display name
5 years ago
bunnei
8a4d19af75
Merge pull request #4555 from ReinUsesLisp/fix-primitive-topology
vk_state_tracker: Fix primitive topology
5 years ago
Rodrigo Locatti
9e5b4cd63e
Merge pull request #4593 from lioncash/const2
memory_manager: Make operator+ const qualified
5 years ago
Lioncash
ad83996932
memory_manager: Make use of [[nodiscard]] in the interface
5 years ago
Lioncash
4ccecf6fec
memory_manager: Make operator+ const qualified
This doesn't modify member state, so it can be marked as const.
5 years ago
Lioncash
0b10f86706
externals: Track upstream libusb
We can place the external in an inner folder and manage the custom files
necessary to integrate it with CMake directly. This allows us to
directly change how we use it with our build system, as opposed to
needing to change a fork.
5 years ago
Morph
0d6a2a37d2
configure_input_player: Fix modifier scale button mapping
5 years ago
Morph
bc37d84a84
configuration/input: Add support for mouse button clicks
Supports the Left, Right, Middle, Backward and Forward mouse buttons.
5 years ago
Morph
9b0f5da0c6
controllers/npad: Fix inconsistencies with controller connection statuses
5 years ago
Morph
4d6a8f3e8f
controllers/npad: Fix LibNX controller connection statuses
This allows homebrew applications to be able to properly detect connected controllers.
5 years ago
Morph
9fc2eb2ee0
controllers/npad: Fix LedPattern for P1-4
5 years ago
Morph
5e4f03f663
input_common: Fix directional deadzone values
The hardware tested value is 0.5 which translates to SHRT_MAX / 2
5 years ago
Morph
24ce544120
Address feedback
5 years ago
Morph
9e431a2a88
qt_themes: Fix Midnight Blue theme
Co-authored-by: Its-Rei <kupfel@gmail.com>
5 years ago