comex
4285e35375
Warnings cleanup for GCC 13 and Clang 16
...
Note: For GCC there are still a huge number of `-Warray-bounds` warnings
coming from `externals/dynarmic`. I could have added a workaround in
`externals/CMakeLists.txt` similar to what this PR does for other
externals, but given Dynarmic's close affiliation with Yuzu, it would be
better to fix it upstream.
Besides that, on my machine, this makes the build warning-free except
for some warnings from glslangValidator and AutoMoc.
Details:
- Disable some warnings in externals.
- Disable `-Wnullability-completeness`, which is a Clang warning triggered
by the Vulkan SDK where if any pointers in the header are marked
_Nullable, it wants all pointers to be marked _Nullable or _Nonnull.
Most of them are, but some aren't. Who knows why.
- `src/web_service/verify_user_jwt.cpp`: Disable another warning when
including `jwt.hpp`.
- `src/input_common/input_poller.cpp`: Add missing `override` specifiers.
- src/common/swap.h: Remove redundant `operator&`. In general, this
file declares three overloads of each operator. Using `+` as an
example, the overloads are:
- a member function for `swapped_t + integer`
- a member function for `swapped_t + swapped_t`
- a free function for `integer + swapped_t`
But for `operator&`, there was an additional free function for
`swapped_t + integer`, which was redundant with the member function.
This caused a GCC warning saying "ISO C++ says that these are
ambiguous".
2023-08-25 19:22:31 -04:00
Martino Fontana
ef46437605
input_common: set SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS
to 0
...
This allows to share the mappings between Nintendo and non-Nintendo controllers.
Breaks the controller configuration for existing users who are using a Nintendo controller.
(Documentation of the hint 92b3c53c92/include/SDL_hints.h (L512-L532)
)
2023-07-07 21:59:47 +02:00
Narr the Reg
0bb27e9606
input_common: Avoid potential division by zero
2023-07-05 17:42:16 -06:00
liamwhite
8de8e16d8a
Merge pull request #10950 from german77/mouse_tune
...
input_common: Tune mouse controls
2023-07-01 22:38:01 -04:00
german77
921f9baf58
yuzu: Ensure mouse panning can't be enabled with real mouse emulation
2023-06-30 18:59:39 -06:00
german77
c6a065cb08
input_common: Allow timeouts to happen while scanning for a ring
2023-06-29 01:07:39 -06:00
Narr the Reg
3241ff028c
input_common: Tune mouse controls
2023-06-28 21:04:33 -06:00
german77
38b68d1783
input_common: Remove duplicated DriverResult enum
2023-06-28 09:49:47 -06:00
liamwhite
4696a032a8
Merge pull request #10495 from bm01/master
...
input_common: Redesign mouse panning
2023-06-27 11:21:28 -04:00
liamwhite
f91cc2c72f
Merge pull request #10679 from zeltermann/wakelock-reason
...
Only use SDL wakelock on Linux
2023-06-27 11:21:20 -04:00
liamwhite
71949a6077
Merge pull request #10903 from german77/nfc_state
...
input_common: Improve nfc state handling and 3rd party support
2023-06-26 14:31:23 -04:00
german77
4c2f8ac0eb
input_common: Dont try to read/write data from 3rd party controllers
2023-06-24 18:59:55 -06:00
german77
b16b2a486b
input_common: Make use of new SDL features
2023-06-24 17:42:56 -06:00
zeltermann
377ffa277c
Only use SDL wakelock on Linux
...
SDL has internally fixed shenanigans related to wakelocking through DBus
from inside sandboxes from around August 2022, so we can now remove the
workaround we used since 2021.
2023-06-24 14:51:41 +07:00
Narr the Reg
b24451c571
input_common: Implement native mifare support
2023-06-21 17:54:58 -06:00
Narr the Reg
4a5f56645a
input_common: Add amiibo with originality signature support
2023-06-15 18:22:13 -06:00
Baptiste Marie
83f4158d6c
input_common: Redesign mouse panning
2023-06-12 00:47:52 +02:00
bunnei
122ff50c1a
input_common: Fix virtual amiibos
2023-06-03 00:06:06 -07:00
bunnei
04eabc45e5
android: Various fixes for CI.
2023-06-03 00:06:05 -07:00
Narr the Reg
9d11e03d61
android: Implement amiibo reading from nfc tag
2023-06-03 00:05:48 -07:00
Narr the Reg
38b030ac58
android: Add motion sensor
2023-06-03 00:05:30 -07:00
12101111
3f3e986098
input_common: rename PAGE_SIZE to avoid conflict
...
See also: https://github.com/yuzu-emu/yuzu/issues/8779
2023-05-30 16:59:06 +08:00
bunnei
39fcbfead6
Merge pull request #10396 from german77/amiibo_write
...
input_common: Implement amiibo writing
2023-05-25 14:07:16 -07:00
Narr the Reg
60ba48c5e2
input_common: Implement amiibo writting
2023-05-21 21:09:20 -06:00
german77
7a3b44abc8
input_common: Map motion with relative values not absolute ones
2023-05-19 21:19:29 -06:00
Narr the Reg
e0d140581b
input_common: Fix pro controller amiibo support
2023-05-16 18:37:22 -06:00
german77
62d019dd72
input_common: Make amiibo scanning less demanding
2023-05-14 09:04:37 -06:00
Narr the Reg
4c16baf028
Merge pull request #10119 from marius851000/improved_non_hd_feeback
...
Attempt at improving HD Rumble emulation
2023-05-09 22:59:32 -06:00
german77
5d49fffd67
input_common: Fix nfc detection for joycons
2023-05-09 00:32:53 -06:00
german77
62acd50c0b
core: hid: Update motion on a better place
2023-05-07 17:01:57 -06:00
bunnei
8be489f752
Merge pull request #10180 from german77/debug
...
input_common: Revert debugging changes
2023-05-06 22:26:53 -07:00
german77
5776810598
input_common: Revert debugging changes
2023-05-06 23:06:44 -06:00
bunnei
fdb3652f12
Merge pull request #10174 from german77/motriod
...
input_common: Add experimental motion to button
2023-05-06 21:40:20 -07:00
german77
7b41e71877
input_common: Add experimental motion to button
2023-05-05 22:49:56 -06:00
Narr the Reg
53ec77c62c
input_common: Add property to invert an axis button
2023-05-05 17:18:35 -06:00
marius david
f5827baefe
Improve emulation of HD Rumble
2023-05-05 19:30:40 +02:00
Valeri
d359ae51a3
input_common: minor fix to mouse movement
2023-04-14 21:27:35 +03:00
german77
59f50daf74
input_common: sdl: Only send last vibration command
2023-03-12 21:30:02 -06:00
Liam
5be8a74b0c
general: fix spelling mistakes
2023-03-12 11:33:01 -04:00
bunnei
4f1ca556e9
Merge pull request #9906 from german77/metroid2
...
input_common: Increase mouse sensitivity range
2023-03-08 10:43:38 -08:00
Narr the Reg
822a967bca
input_common: Minor typo issues ( #9922 )
2023-03-08 03:15:46 +01:00
german77
db3f4f7515
input_common: Increase mouse sensitivity range
2023-03-07 19:31:52 -06:00
german77
b1913d2db3
input_common: joycon: Add stick input from passive reports
2023-03-05 12:50:15 -06:00
Alexandre Bouvier
e9ec2e4cf0
cmake: use correct boost imported targets
2023-02-28 17:56:01 +01:00
Narr the Reg
76462f79db
input_common: Implement dedicated motion from mouse
2023-02-21 21:55:22 -06:00
Narr the Reg
8a7dfb2439
input_common: Split mouse input into individual devices
2023-02-16 14:22:13 -06:00
arades79
60a68839ee
remove static from pointer sized or smaller types for aesthetics, change constexpr static to static constexpr for consistency
...
Signed-off-by: arades79 <scravers@protonmail.com>
2023-02-14 12:35:39 -05:00
arades79
adcef452e0
add static lifetime to constexpr values to force compile time evaluation where possible
...
Signed-off-by: arades79 <scravers@protonmail.com>
2023-02-14 12:33:11 -05:00
Narr the Reg
75039440f3
input_common: Reintroduce custom pro controller support
2023-02-09 20:08:54 -06:00
Narr the Reg
c98ef11cfe
input_common: Simplify stick from button
2023-02-02 10:13:27 -06:00