Commit Graph

597 Commits

Author SHA1 Message Date
t895 ebcf0a3415 android: Play vibrations asynchronously 2024-02-23 16:41:59 -05:00
FearlessTobi 4d55e58ee4 scope_exit: Make constexpr
Allows the use of the macro in constexpr-contexts.
Also avoids some potential problems when nesting braces inside it.
2024-02-19 16:00:46 +01:00
t895 e69efb0f73 android: Flip AB/XY for xbox controllers during auto-mapping 2024-02-18 10:40:33 -05:00
t895 a29782ce6a android: Input mapping 2024-02-17 12:32:33 -05:00
Narr the Reg 7382c0e0dd input_common: Add android input engine 2024-01-17 22:47:56 -06:00
Viktor Szépe 8f8a15827f Fix more typos 2024-01-15 23:26:53 +00:00
Narr the Reg 146975c880 hid_core: Move hid to it's own subproject 2024-01-05 11:41:15 -06:00
german77 6788dffa53 core: hid: Split SL and SR buttons 2023-11-11 21:03:15 -06:00
german77 9508a12379 input_common: joycon: Move vibrations to a queue 2023-10-22 11:30:59 -06:00
german77 83c63997ff input_common: udp: Avoid crash when trying to map motion before client is ready 2023-10-15 02:13:51 -06:00
Liam 445d504f94 ci: fix new codespell errors 2023-10-02 18:03:05 -04:00
Danila Malyutin 7f0de0f204 msvc: set warning level to /W4 globally
And fix a bunch of warnings
2023-09-03 18:42:10 +04:00
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