index
:
anonymous/yuzu
master
yuzu is the world's most popular, open-source, Nintendo Switch emulator — started by the creators of Citra. It is written in C++ with portability in mind,
mirror
summary
refs
log
tree
commit
diff
stats
log msg
author
committer
range
path:
root
/
src
/
core
/
hle
/
service
/
hid
/
controllers
/
npad.cpp
(
follow
)
Commit message (
Expand
)
Author
Age
Files
Lines
*
hid_core: Move hid to it's own subproject
Narr the Reg
2024-01-05
1
-1342
/
+0
*
service: hid: Remove data races when handling shared memory
Narr the Reg
2024-01-04
1
-1
/
+1
*
service: hid: Implement NpadResource and NpadData
Narr the Reg
2024-01-04
1
-496
/
+492
*
service: hid: Use applet resource to get latest shared memory handle
Narr the Reg
2023-12-31
1
-29
/
+22
*
service: hid: Allow to create multiple instances of shared memory
Narr the Reg
2023-12-14
1
-15
/
+13
*
service: hid: Create appropriate hid resources
Narr the Reg
2023-11-21
1
-488
/
+98
*
Implemented qlaunch version of the controller applet
FrozenAra
2023-11-19
1
-0
/
+16
*
core: hid: Split SL and SR buttons
german77
2023-11-12
1
-2
/
+4
*
core: hid: Fix wrong battery values
german77
2023-11-03
1
-3
/
+3
*
service: hid: Set last connected controller as active
german77
2023-09-24
1
-0
/
+1
*
Merge pull request #11519 from german77/system-policy
liamwhite
2023-09-16
1
-0
/
+25
|
\
|
*
service: hid: Implement ApplyNpadSystemCommonPolicy
german77
2023-09-16
1
-0
/
+25
*
|
hid: service: Remove outdated field from npad
german77
2023-09-16
1
-11
/
+10
*
|
hid: service: Implement Last active Npad
german77
2023-09-16
1
-0
/
+4
*
|
service: hid: Ensure state is correct
german77
2023-09-16
1
-8
/
+8
|
/
*
general: Use console mode helper across project
lat9nq
2023-08-23
1
-1
/
+1
*
general: Convert use_docked_mode to an enumeration
lat9nq
2023-08-22
1
-1
/
+1
*
service: hid: Use span instead of vector reference
german77
2023-05-15
1
-2
/
+2
*
core: hid: Update motion on a better place
german77
2023-05-08
1
-2
/
+2
*
service: hid: Fix handle validation
german77
2023-04-02
1
-5
/
+1
*
Merge pull request #9999 from german77/new_hid_hurra
liamwhite
2023-04-01
1
-16
/
+16
|
\
|
*
service: hid: Implement SetNpadJoyAssignmentModeSingleWithDestination
german77
2023-03-30
1
-16
/
+16
*
|
service: hid: Silence warning on MergeSingleJoyAsDualJoy
Narr the Reg
2023-03-27
1
-1
/
+2
|
/
*
core: hid: Use gyro thresholds modes set by the game
Narr the Reg
2023-02-10
1
-2
/
+5
*
service: hid: Return error if arguments of SetSupportedNpadIdType is invalid
Narr the Reg
2023-02-08
1
-2
/
+10
*
Revert "Merge pull request #9718 from yuzu-emu/revert-9508-hle-ipc-buffer-span"
ameerj
2023-02-03
1
-2
/
+3
*
Revert "hle_ipc: Use std::span to avoid heap allocations/copies when calling ReadBuffer"
liamwhite
2023-02-02
1
-3
/
+2
*
Merge pull request #9696 from german77/please_forgive_me_for_this_sin
bunnei
2023-02-01
1
-0
/
+3
|
\
|
*
input_common: Implement turbo buttons
german77
2023-02-01
1
-0
/
+3
*
|
Merge pull request #9508 from ameerj/hle-ipc-buffer-span
bunnei
2023-01-30
1
-2
/
+3
|
\
\
|
|
/
|
/
|
|
*
hidbus: Use ReadBufferSpan
ameerj
2022-12-29
1
-2
/
+3
|
*
service: Use ReadBufferSpan where it is trivial to do so
ameerj
2022-12-25
1
-1
/
+1
*
|
core: hid: Only set the polling mode to the correct side
Narr the Reg
2023-01-20
1
-1
/
+13
*
|
core: hid: Fix input regressions
Narr the Reg
2023-01-20
1
-0
/
+1
*
|
service: hid: Set led pattern and fix color detection
Narr the Reg
2023-01-20
1
-0
/
+5
|
/
*
Merge pull request #9107 from german77/gidoly_rules
liamwhite
2022-10-25
1
-2
/
+2
|
\
|
*
input_common: cache vibration tests
german77
2022-10-21
1
-2
/
+2
*
|
general: Enforce C4800 everywhere except in video_core
Morph
2022-10-22
1
-10
/
+10
*
|
hid/npad: Fix copy size in GetSupportedNpadIdTypes
Lioncash
2022-10-21
1
-2
/
+3
|
/
*
kernel: remove KWritableEvent
Liam
2022-10-13
1
-3
/
+2
*
service: hid: Partially implement palma controller
Narr the Reg
2022-09-25
1
-1
/
+5
*
hid: core: Properly emulate controller color and battery level
Narr the Reg
2022-08-08
1
-15
/
+62
*
Merge pull request #8510 from german77/vibration
liamwhite
2022-07-15
1
-2
/
+2
|
\
|
*
input_common: sdl: lower vibration frequency and use it's own unique thread
german77
2022-06-29
1
-2
/
+2
*
|
service: hid: Correct some mistakes and add more validations
Narr the Reg
2022-06-29
1
-8
/
+26
|
/
*
core: Replace all instances of ResultCode with Result
german77
2022-06-27
1
-30
/
+30
*
common: Change semantics of UNREACHABLE to unconditionally crash
Liam
2022-06-14
1
-4
/
+4
*
service: hid: Implement ResetIsSixAxisSensorDeviceNewlyAssigned
german77
2022-05-27
1
-2
/
+75
*
service: hid: Implement LoadSixAxisSensorCalibrationParameter and GetSixAxisSensorIcInformation
german77
2022-05-27
1
-1
/
+31
*
service: hid: Implement EnableSixAxisSensorUnalteredPassthrough and IsSixAxisSensorUnalteredPassthroughEnabled
german77
2022-05-27
1
-0
/
+26
*
service: hid: Add error handling to sixaxis functions
german77
2022-05-27
1
-30
/
+52
*
service: hid: Refractor sixaxis functions
german77
2022-05-27
1
-176
/
+74
*
service: hid: Implement MergeSingleJoyAsDualJoy according to RE
german77
2022-05-27
1
-61
/
+50
*
service: hid: Add error handling to setNpadAssignment and variants
german77
2022-05-27
1
-10
/
+12
*
service: hid: Quick RE fixes and comments
german77
2022-05-27
1
-20
/
+30
*
service: hid: Fix motion refresh rate
Narr the Reg
2022-05-06
1
-0
/
+5
*
service: hid: Disable correctly motion input
german77
2022-05-06
1
-50
/
+41
*
service: hid: Access shared memory directly
Narr the Reg
2022-04-23
1
-148
/
+142
*
general: Convert source file copyright comments over to SPDX
Morph
2022-04-23
1
-3
/
+2
*
service: hid: Improve accuracy of sixaxis functions
Narr the Reg
2022-04-18
1
-43
/
+230
*
core/hle: Replace lock_guard with scoped_lock
Merry
2022-04-07
1
-1
/
+1
*
service: hid: Remove inaccurate behavior on initialization
german77
2022-03-31
1
-13
/
+19
*
core/hid: Cancel any vibration after the test
Narr the Reg
2021-12-16
1
-3
/
+4
*
service/hid: Implement SetNpadJoyAssignmentMode
german77
2021-12-05
1
-23
/
+142
*
core/hid: Ensure only valid npad are connected
german77
2021-12-05
1
-17
/
+13
*
npad: Return NpadButton in GetAndResetPressState
Morph
2021-11-30
1
-3
/
+3
*
general: Fix handheld typo
Morph
2021-11-29
1
-1
/
+1
*
settings: Add debug setting to enable all controllers
german77
2021-11-28
1
-0
/
+4
*
service/hid: Finish converting LIFO objects and address some nits
Narr the Reg
2021-11-25
1
-0
/
+2
*
kraken: Address comments from review
german77
2021-11-25
1
-1
/
+1
*
core/hid: Remove usage of native types, fix a couple of errors with motion
german77
2021-11-25
1
-200
/
+298
*
service/hid: Remove includes of core.h and settings.h
german77
2021-11-25
1
-8
/
+7
*
service/hid: Add support for new controllers
german77
2021-11-25
1
-1
/
+30
*
core/hid: Rename NpadType to NpadStyleIndex
german77
2021-11-25
1
-63
/
+66
*
second commit lion review
german77
2021-11-25
1
-0
/
+2
*
core/hid: Update structs to 13.1.0
german77
2021-11-25
1
-7
/
+8
*
core/hid: Rework battery mappings
german77
2021-11-25
1
-2
/
+9
*
Morph review first wave
german77
2021-11-25
1
-3
/
+1
*
service/hid: Match shared memory closer to HW
german77
2021-11-25
1
-18
/
+40
*
kraken: Address comments from review
german77
2021-11-25
1
-5
/
+5
*
core/hid: Only signal when needed
german77
2021-11-25
1
-2
/
+4
*
hid: Fix controller connection/disconnection
german77
2021-11-25
1
-25
/
+52
*
core/hid: Add output devices
german77
2021-11-25
1
-23
/
+4
*
service/hid: Rewrite npad to use ring lifo and the emulated controller
german77
2021-11-25
1
-627
/
+473
*
core: Remove unused includes
ameerj
2021-11-04
1
-1
/
+0
*
hle: service: hid: npad: Remove unused kernel reference.
bunnei
2021-07-21
1
-1
/
+0
*
hle: service: Add a helper module for managing kernel objects.
bunnei
2021-07-21
1
-5
/
+7
*
npad: Disable vibration check if disabled
german77
2021-07-11
1
-0
/
+5
*
npad: Fix data race when updating devices
Rodrigo Locatti
2021-06-22
1
-0
/
+4
*
hle: kernel: Migrate KReadableEvent and KWritableEvent to KAutoObject.
bunnei
2021-05-06
1
-5
/
+4
*
hle: kernel: Refactor several threads/events/sharedmemory to use slab heaps.
bunnei
2021-05-06
1
-2
/
+6
*
hle: kernel: Ensure all kernel objects with KAutoObject are properly created.
bunnei
2021-05-06
1
-0
/
+1
*
hle: kernel: Migrate KEvent to KAutoObject.
bunnei
2021-05-06
1
-3
/
+2
*
hle: kernel: Refactor IPC interfaces to not use std::shared_ptr.
bunnei
2021-05-06
1
-2
/
+1
*
service: Resolve cases of member field shadowing
Lioncash
2021-05-04
1
-1
/
+1
*
hid: Implement SevenSixAxis and ConsoleSixAxisSensor
german77
2021-04-24
1
-2
/
+2
*
npad: Remove duplicated class member variable
Lioncash
2021-04-19
1
-1
/
+1
*
common: Move settings to common from core.
bunnei
2021-04-15
1
-1
/
+1
*
service: hid: Stub SetAnalogStickUseCenterClamp
Morph
2021-04-08
1
-0
/
+4
*
HID: Fix SL and SR buttons for right joycon
german77
2021-04-02
1
-2
/
+6
*
hid: Implement GC controller
german
2021-02-08
1
-0
/
+63
*
Merge pull request #5326 from german77/hidUpdate1
bunnei
2021-02-06
1
-92
/
+116
|
\
|
*
Add footer types and address comments
german
2021-02-04
1
-33
/
+46
|
*
Fix npad struct to match switchbrew
german
2021-02-04
1
-65
/
+64
|
*
Adds missing controller types and properties
german
2021-02-04
1
-0
/
+12
*
|
hle: kernel: Reimplement KReadableEvent and KWritableEvent.
bunnei
2021-02-05
1
-5
/
+7
*
|
hle: kernel: Rename WritableEvent to KWritableEvent.
bunnei
2021-02-05
1
-2
/
+2
*
|
hle: kernel: Rename ReadableEvent to KReadableEvent.
bunnei
2021-02-05
1
-2
/
+3
|
/
*
npad: Remove unused device handle parameter
Morph
2021-01-27
1
-4
/
+3
*
Stub Set/Get/Reset SixaxisSensorFusionParameters
german
2021-01-24
1
-0
/
+18
*
npad: Add check for HANDHELD_INDEX in UpdateControllerAt()
Morph
2021-01-18
1
-1
/
+1
*
core: Silence Wclass-memaccess warnings
ReinUsesLisp
2021-01-15
1
-2
/
+4
*
controllers/npad: Make press_state atomic
Morph
2020-12-18
1
-1
/
+1
*
controllers/npad: Validate device handles before use
Morph
2020-12-12
1
-0
/
+41
*
Stub set and get NpadCommunicationMode
german
2020-11-27
1
-0
/
+8
*
hid: Reimplement Begin/EndPermitVibrationSession
Morph
2020-11-16
1
-2
/
+6
*
controllers/npad: Load input devices on init
Morph
2020-11-16
1
-0
/
+2
*
general: Fix compiler warnings on linux and miscellaneous changes
Morph
2020-11-16
1
-7
/
+10
*
controllers/npad: Remove the old vibration filter
Morph
2020-11-16
1
-49
/
+59
*
hid: Implement InitializeVibrationDevice and IsVibrationDeviceMounted
Morph
2020-11-16
1
-1
/
+41
*
input_common: Add VibrationDevice and VibrationDeviceFactory
Morph
2020-11-16
1
-30
/
+18
*
configure_input: Add per-player vibration
Morph
2020-11-16
1
-2
/
+11
*
settings: Remove global vibration strength modifier
Morph
2020-11-16
1
-3
/
+1
*
hid: Mark Begin/EndPermitVibrationSession as stubs
Morph
2020-11-16
1
-9
/
+1
*
controllers/npad: Send an empty vibration on destruction/deactivation
Morph
2020-11-16
1
-14
/
+28
*
controllers/npad: Add heuristics to reduce rumble state changes
Morph
2020-11-16
1
-5
/
+46
*
configure_input: Hook up the vibration percentage spinbox
Morph
2020-11-16
1
-1
/
+2
*
controllers/npad: Stop games from vibrating incorrect controllers
Morph
2020-11-16
1
-0
/
+10
*
hid: Fix controller rumble based on new research
Morph
2020-11-16
1
-18
/
+27
*
hid: Reorder all HID commands
Morph
2020-11-16
1
-17
/
+17
*
controllers/npad: Rename NPadType to NpadStyleSet
Morph
2020-11-16
1
-2
/
+2
*
settings: Preparation for per-game input settings
Morph
2020-11-16
1
-18
/
+24
*
controllers/npad: Connect a controller on init if none are connected
Morph
2020-11-16
1
-0
/
+13
*
Revert "core: Fix clang build"
bunnei
2020-10-21
1
-42
/
+27
*
core: Fix clang build
Lioncash
2020-10-18
1
-27
/
+42
*
core/CMakeLists: Make some warnings errors
Lioncash
2020-10-13
1
-25
/
+0
*
Merge pull request #4736 from Morph1984/home-button-input-protection-stub
bunnei
2020-10-07
1
-0
/
+9
|
\
|
*
hid: Stub HomeButtonInputProtection service commands
Morph
2020-09-30
1
-0
/
+9
*
|
Only use inputs corresponding to controller type
german
2020-10-02
1
-49
/
+58
*
|
Merge pull request #4291 from german77/ImplementControllerRumble
David
2020-09-30
1
-7
/
+18
|
\
\
|
|
/
|
/
|
|
*
First implementation of controller rumble
german
2020-09-29
1
-7
/
+18
*
|
Use different timing for motion
german
2020-09-24
1
-73
/
+129
|
/
*
Merge pull request #4683 from Morph1984/NpadHandheldActivationMode-impl
bunnei
2020-09-20
1
-0
/
+8
|
\
|
*
hid: Implement Get/SetNpadHandheldActivationMode
Morph
2020-09-18
1
-0
/
+8
*
|
Merge pull request #4594 from german77/MotionHID
bunnei
2020-09-17
1
-0
/
+106
|
\
\
|
|
/
|
/
|
|
*
configure_input: Hook up the motion button and checkbox
Morph
2020-09-05
1
-1
/
+1
|
*
Add cemu hook changes related to PR #4609
german
2020-09-05
1
-2
/
+1
|
*
Remove RealMotionDevice
german
2020-09-05
1
-2
/
+3
|
*
controllers/npad: Simplify motion entry assignment
Morph
2020-09-05
1
-29
/
+18
|
*
Include HID and configuration changes related to motion
german
2020-09-05
1
-0
/
+117
*
|
Merge pull request #4597 from Morph1984/mjolnir-p2
bunnei
2020-09-11
1
-98
/
+18
|
\
\
|
|
/
|
/
|
|
*
applets/controller: Implement fallback applet for the SDL frontend
Morph
2020-09-04
1
-88
/
+0
|
*
Project Mjölnir: Part 2 - Controller Applet
Morph
2020-09-04
1
-10
/
+18
*
|
hid: Implement MergeSingleJoyasDualJoy
Morph
2020-09-04
1
-0
/
+16
|
/
*
controllers/npad: Fix inconsistencies with controller connection statuses
Morph
2020-08-26
1
-1
/
+7
*
controllers/npad: Fix LibNX controller connection statuses
Morph
2020-08-26
1
-1
/
+9
*
controllers/npad: Fix LedPattern for P1-4
Morph
2020-08-26
1
-3
/
+3
*
Project Mjölnir: Part 1
Morph
2020-08-26
1
-114
/
+99
*
core: Resolve several -Wextra-semi warnings
Lioncash
2020-08-14
1
-2
/
+2
*
General: Recover Prometheus project from harddrive failure
Fernando Sahmkow
2020-06-27
1
-1
/
+1
*
hid: Implement Get/ResetGyroscopeZeroDriftMode
Morph
2020-06-21
1
-0
/
+8
*
npad: Lower log level for VibrateController to Debug
FearlessTobi
2020-04-20
1
-1
/
+1
*
service: hid: npad: Fix implicit fallthrough errors.
bunnei
2020-04-18
1
-0
/
+2
*
analog_from_button get direction implementation
CJBok
2020-02-18
1
-5
/
+5
*
Moved analog direction logic to sdl_impl
CJBok
2020-01-15
1
-9
/
+22
*
Corrected directional states sensitivity
CJBok
2020-01-14
1
-9
/
+9
*
hid: Fix analog sticks directional states
CJBok
2020-01-09
1
-12
/
+12
*
kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. (#3154)
bunnei
2019-11-25
1
-2
/
+1
*
kernel: events: Remove ResetType::Automatic.
bunnei
2019-11-03
1
-1
/
+1
*
hid/npad: Fix incorrect connection boolean value in ConnectAllDisconnectedControllers()
Lioncash
2019-10-18
1
-1
/
+1
*
hid/npad: Add missing break in default case
Lioncash
2019-10-18
1
-0
/
+1
*
hid/npad: Replace std::for_each with ranged for loops
Lioncash
2019-10-18
1
-13
/
+12
*
hid/npad: Remove redundant non-const variant of IsControllerSupported()
Lioncash
2019-10-18
1
-33
/
+5
*
service/hid: Silence -Wunused and -Wswitch
ReinUsesLisp
2019-10-05
1
-2
/
+6
*
Signal styleset changes at a better time
David Marcec
2019-09-24
1
-8
/
+2
*
removed comment
David Marcec
2019-09-22
1
-1
/
+0
*
Rebased
David Marcec
2019-09-22
1
-8
/
+15
*
Rebase
David Marcec
2019-09-22
1
-2
/
+2
*
Deglobalize System: Hid
David Marcec
2019-09-22
1
-2
/
+2
*
IsVibrationEnabled() as a const member func
Morph1984
2019-09-04
1
-1
/
+1
*
Update npad.cpp
Morph1984
2019-09-04
1
-0
/
+6
*
addressed issues
David Marcec
2019-07-08
1
-6
/
+7
*
hid:StartLrAssignmentMode, hid:StopLrAssignmentMode, hid:SwapNpadAssignment
David Marcec
2019-07-01
1
-0
/
+30
*
core/kernel/object: Rename ResetType enum members
Lioncash
2019-05-18
1
-1
/
+1
*
core_timing: Convert core timing into a class
Lioncash
2019-02-16
1
-2
/
+3
*
core_timing: Rename CoreTiming namespace to Core::Timing
Lioncash
2019-02-12
1
-1
/
+1
*
web_browser: Add bounds checking to applet interface
Zach Hilman
2018-12-29
1
-4
/
+2
*
hid: Make Hid service accessible and add GetPressState
Zach Hilman
2018-12-28
1
-0
/
+8
*
npad: Remove code to invert input in horizontal mode.
bunnei
2018-12-26
1
-46
/
+0
*
Merge pull request #1803 from DarkLordZach/k-able-event
bunnei
2018-12-03
1
-8
/
+10
|
\
|
*
kernel/event: Reference ReadableEvent from WritableEvent
Zach Hilman
2018-11-29
1
-7
/
+5
|
*
core: Port all current usages of Event to Readable/WritableEvent
Zach Hilman
2018-11-29
1
-5
/
+9
*
|
Fixed crash with SetNpadMode
David Marcec
2018-12-02
1
-2
/
+3
|
/
*
Merge pull request #1801 from ogniK5377/log-before-execute
bunnei
2018-11-29
1
-1
/
+2
|
\
|
*
Changed logging to be "Log before execution", Added more error logging, all services should now log on some level
David Marcec
2018-11-26
1
-1
/
+2
*
|
npad: Use NPadIdToIndex to prevent invalid array access
Zach Hilman
2018-11-28
1
-2
/
+2
|
/
*
hid: Use player-defined controller type as PREFERRED_CONTROLLER
Zach Hilman
2018-11-19
1
-163
/
+50
*
hid/npad: Update NPad to use player controller bindings and type
Zach Hilman
2018-11-19
1
-53
/
+101
*
Added controller helper funcs
David Marcec
2018-11-19
1
-0
/
+31
*
Left joycon rotation button remapping
David Marcec
2018-11-19
1
-5
/
+16
*
Added automatic npad switch based on supported stylesets
David Marcec
2018-11-19
1
-3
/
+121
*
Added multi-input support and controller assignment at any port
David Marcec
2018-11-19
1
-119
/
+168
*
Fixed priority switching edge case for handheld (#1675)
David
2018-11-16
1
-12
/
+46
*
hid/npad: Add missing break in switch statement within Controller_NPad::OnUpdate()
Lioncash
2018-11-14
1
-0
/
+1
*
Updated npad styles on holdtype switches
David Marcec
2018-11-07
1
-0
/
+2
*
Fixed HID crash when launching more than 1 game & signaled syleset change event
David Marcec
2018-11-02
1
-0
/
+3
*
npad: Remove unused controller variable from OnInit()
Lioncash
2018-10-24
1
-2
/
+3
*
Added auto controller switching to supported controllers and single joycon button rotation
David Marcec
2018-10-20
1
-4
/
+187
*
hid/controller: Remove unused header inclusions
Lioncash
2018-10-18
1
-1
/
+0
*
hid/controller/npad: Remove #pragma once from the cpp file
Lioncash
2018-10-18
1
-2
/
+0
*
hid/controller/npad: Move npad_id_list into the cpp file
Lioncash
2018-10-18
1
-1
/
+10
*
hid/controller/npad: Remove unnecessary const from void return type
Lioncash
2018-10-18
1
-1
/
+1
*
hid/controller: Default the destructors of all controller types in the cpp file
Lioncash
2018-10-18
1
-0
/
+1
*
Using dual joycons as the default controller
David Marcec
2018-10-17
1
-68
/
+47
*
Wip
David Marcec
2018-10-12
1
-2
/
+18
*
Dynamically decide handheld variant based on supported npad id priority
David Marcec
2018-10-11
1
-16
/
+55
*
Added BeginPermitVibrationSession and EndPermitVibrationSession
David Marcec
2018-10-10
1
-0
/
+6
*
Added GetLedPattern and HandheldVariant
David Marcec
2018-10-10
1
-2
/
+34
*
Kirby expects handheld controllers to be at position 8
David Marcec
2018-10-10
1
-2
/
+8
*
Added the ability to "disconnect" individual npads
David Marcec
2018-10-10
1
-12
/
+24
*
Addressed changes for better hid
David Marcec
2018-10-10
1
-49
/
+52
*
"Better Hid" rework part 1
David Marcec
2018-10-10
1
-0
/
+336