summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/controllers/npad.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* core: hid: Use gyro thresholds modes set by the gameNarr the Reg2023-02-101-10/+4
|
* service: hid: Return error if arguments of SetSupportedNpadIdType is invalidNarr the Reg2023-02-081-1/+1
|
* Revert "Merge pull request #9718 from yuzu-emu/revert-9508-hle-ipc-buffer-span"ameerj2023-02-031-1/+2
| | | | | This reverts commit 25fc5c0e1158cb8e81cbc769b24ad84032a1fbfd, reversing changes made to af20e25081f97d55b451606c87922e2b49f0d363.
* Revert "hle_ipc: Use std::span to avoid heap allocations/copies when calling ReadBuffer"liamwhite2023-02-021-2/+1
|
* hidbus: Use ReadBufferSpanameerj2022-12-291-1/+2
|
* service: Use ReadBufferSpan where it is trivial to do soameerj2022-12-251-1/+1
|
* service: hid: Correct some mistakes and add more validationsNarr the Reg2022-06-291-1/+2
|
* core: Replace all instances of ResultCode with Resultgerman772022-06-271-35/+34
|
* service: hid: Implement ResetIsSixAxisSensorDeviceNewlyAssignedgerman772022-05-271-3/+13
| | | | Needed by Nintendo Switch Sports
* service: hid: Implement LoadSixAxisSensorCalibrationParameter and GetSixAxisSensorIcInformationgerman772022-05-271-0/+8
| | | | Needed by Nintendo Switch Sports
* service: hid: Implement EnableSixAxisSensorUnalteredPassthrough and IsSixAxisSensorUnalteredPassthroughEnabledgerman772022-05-271-0/+5
| | | | Needed by Nintendo Switch Sports
* service: hid: Add error handling to sixaxis functionsgerman772022-05-271-1/+2
|
* service: hid: Refractor sixaxis functionsgerman772022-05-271-9/+14
|
* service: hid: Implement MergeSingleJoyAsDualJoy according to REgerman772022-05-271-1/+2
|
* service: hid: Add error handling to setNpadAssignment and variantsgerman772022-05-271-2/+2
|
* service: hid: Quick RE fixes and commentsgerman772022-05-271-6/+7
|
* service: hid: Ensure all structs are initializedNarr the Reg2022-04-241-5/+4
|
* service: hid: Access shared memory directlyNarr the Reg2022-04-231-11/+16
|
* general: Convert source file copyright comments over to SPDXMorph2022-04-231-3/+2
| | | | | This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
* service: hid: Improve accuracy of sixaxis functionsNarr the Reg2022-04-181-16/+34
|
* service: npad: Default initialize shared memorygerman772022-04-031-48/+48
|
* service: hid: Remove inaccurate behavior on initializationgerman772022-03-311-1/+2
|
* core: Reduce unused includesameerj2022-03-191-1/+2
|
* core/hid: Cancel any vibration after the testNarr the Reg2021-12-161-7/+0
|
* service/hid: Implement SetNpadJoyAssignmentModegerman772021-12-051-2/+6
|
* npad: Return NpadButton in GetAndResetPressStateMorph2021-11-301-2/+2
| | | | We were previously truncating this to a u32 as there were no known buttons that used the full 64 bits of this type. Fix this now that we know they are used.
* service/hid: Finish converting LIFO objects and address some nitsNarr the Reg2021-11-251-38/+18
|
* core/hid: Remove usage of native types, fix a couple of errors with motiongerman772021-11-251-80/+81
|
* service/hid: Remove includes of core.h and settings.hgerman772021-11-251-2/+1
|
* core/hid: Rename NpadType to NpadStyleIndexgerman772021-11-251-5/+6
|
* second commit lion reviewgerman772021-11-251-1/+5
|
* kraken: Address comments from reviewgerman772021-11-251-2/+1
| | | | start lion review
* core/hid: Update structs to 13.1.0german772021-11-251-6/+54
|
* Morph review first wavegerman772021-11-251-11/+11
|
* service/hid: Match shared memory closer to HWgerman772021-11-251-8/+35
|
* kraken: Address comments from reviewgerman772021-11-251-1/+1
| | | | review fixes
* hid: Fix controller connection/disconnectiongerman772021-11-251-0/+3
|
* core/hid: Add output devicesgerman772021-11-251-17/+1
|
* service/hid: Rewrite npad to use ring lifo and the emulated controllergerman772021-11-251-263/+132
|
* settings: Cleanup settingsgerman772021-11-251-1/+1
|
* service/hid: Update to 13.0.0german772021-09-271-0/+1
|
* hle: service: Add a helper module for managing kernel objects.bunnei2021-07-211-1/+7
|
* npad: Fix data race when updating devicesRodrigo Locatti2021-06-221-0/+4
| | | | | Add a lock to avoid data races. This reduces the number of -fsanitize=thread errors significantly.
* hle: kernel: Remove deprecated Object class.bunnei2021-05-061-1/+0
|
* hle: kernel: Migrate KReadableEvent and KWritableEvent to KAutoObject.bunnei2021-05-061-1/+1
|
* hle: kernel: Refactor several threads/events/sharedmemory to use slab heaps.bunnei2021-05-061-2/+3
|
* hle: kernel: Migrate KEvent to KAutoObject.bunnei2021-05-061-1/+1
|
* hle: kernel: Refactor IPC interfaces to not use std::shared_ptr.bunnei2021-05-061-1/+1
|
* service: Resolve cases of member field shadowingLioncash2021-05-041-1/+1
| | | | | Now all that remains is for kernel code to be 'shadow-free' and then -Wshadow can be turned into an error.
* hid: Implement SevenSixAxis and ConsoleSixAxisSensorgerman772021-04-241-0/+2
|
* npad: Remove duplicated class member variableLioncash2021-04-191-1/+0
| | | | | | ControllerBase already has a System reference that can be accessed from this class, so we can get rid of this to make the class layout a little more straightforward.
* common: Move settings to common from core.bunnei2021-04-151-1/+1
| | | | - Removes a dependency on core and input_common from common.
* service: hid: Stub SetAnalogStickUseCenterClampMorph2021-04-081-0/+2
| | | | - Used by eBASEBALLパワフルプロ野球2020
* hid: Implement GC controllergerman2021-02-081-1/+25
|
* Merge pull request #5326 from german77/hidUpdate1bunnei2021-02-061-49/+140
|\ | | | | HID: Update the HID service to match more closely to switchbrew part 1
| * Add footer types and address commentsgerman2021-02-041-13/+47
| |
| * Fix npad struct to match switchbrewgerman2021-02-041-39/+69
| |
| * Adds missing controller types and propertiesgerman2021-02-041-3/+30
| |
* | hle: kernel: Reimplement KReadableEvent and KWritableEvent.bunnei2021-02-051-2/+6
| |
* | hle: kernel: Rename WritableEvent to KWritableEvent.bunnei2021-02-051-1/+1
| |
* | hle: kernel: Rename ReadableEvent to KReadableEvent.bunnei2021-02-051-1/+1
|/
* npad: Remove unused device handle parameterMorph2021-01-271-3/+3
|
* Stub Set/Get/Reset SixaxisSensorFusionParametersgerman2021-01-241-0/+5
|
* core: Silence Wclass-memaccess warningsReinUsesLisp2021-01-151-8/+15
| | | | | This requires making several types trivial and properly initialize them whenever they are called.
* controllers/npad: Make press_state atomicMorph2020-12-181-1/+2
|
* controllers/npad: Validate device handles before useMorph2020-12-121-0/+4
| | | | Some games such as NEKOPARA Vol. 3 send invalid device handles when calling InitializeVibrationDevice. Introduce a check to validate the device handle before use.
* Add missing types to NpadCommunicationModegerman2020-11-291-0/+2
|
* Stub set and get NpadCommunicationModegerman2020-11-271-0/+10
|
* hid: Reimplement Begin/EndPermitVibrationSessionMorph2020-11-161-0/+3
| | | | Upon further investigation, these commands allow temporary vibrations even when the "Controller Vibration" system setting is disabled. As a result, vibrations are allowed when either the system setting or this flag is set to true. Therefore, we can only block vibrations when both flags are set to false.
* general: Fix compiler warnings on linux and miscellaneous changesMorph2020-11-161-1/+1
|
* controllers/npad: Remove the old vibration filterMorph2020-11-161-0/+4
| | | | Previously we used a vibration filter that filters out amplitudes close to each other. It turns out there are cases where this results into vibrations that are too inaccurate. Remove this and move the 100Hz vibration filter (Only allowing a maximum of 100 vibrations per second) from sdl_impl to npad when enable_accurate_vibrations is set to false.
* hid: Implement InitializeVibrationDevice and IsVibrationDeviceMountedMorph2020-11-161-0/+7
|
* input_common: Add VibrationDevice and VibrationDeviceFactoryMorph2020-11-161-3/+8
| | | | | | A vibration device is an input device that returns an unsigned byte as status. It represents whether the vibration device supports vibration or not. If the status returns 1, it supports vibration. Otherwise, it does not support vibration.
* hid: Mark Begin/EndPermitVibrationSession as stubsMorph2020-11-161-3/+0
| | | | The implementation of these commands seem incomplete and causes rumble in Super Mario Party to stop working since only EndPermitVibrationSession is called. Thus, these are better off being marked as a stub until this can be investigated more thoroughly.
* controllers/npad: Send an empty vibration on destruction/deactivationMorph2020-11-161-6/+8
| | | | This stops all controllers from continuously vibrating when emulation is stopped.
* hid: Fix controller rumble based on new researchMorph2020-11-161-6/+6
| | | | | This fixes the issue where rumble is only sent to the first controller. Now, individual controllers can receive their own rumble commands.
* hid: Reorder all HID commandsMorph2020-11-161-7/+7
| | | | Reorders all HID commands in command id order.
* controllers/npad: Rename NPadType to NpadStyleSetMorph2020-11-161-6/+6
| | | | This more accurately represents the underlying type and avoids confusion with NpadType
* controllers/npad: Add DeviceHandle structMorph2020-11-161-27/+50
| | | | A DeviceHandle describes a vibration device or six-axis sensor based on the npad type, npad id, and device index/position
* Merge pull request #4736 from Morph1984/home-button-input-protection-stubbunnei2020-10-071-0/+3
|\ | | | | hid: Stub HomeButtonInputProtection service commands
| * hid: Stub HomeButtonInputProtection service commandsMorph2020-09-301-0/+3
| | | | | | | | - Used in 1-2 Switch. Given that we do not emulate the functionality of the home button yet, we can stub this for now.
* | Merge pull request #4291 from german77/ImplementControllerRumbleDavid2020-09-301-1/+1
|\ \ | |/ |/| input_common: First implementation of controller rumble
| * First implementation of controller rumblegerman2020-09-291-1/+1
| |
* | Use different timing for motiongerman2020-09-241-0/+4
|/
* Merge pull request #4683 from Morph1984/NpadHandheldActivationMode-implbunnei2020-09-201-0/+10
|\ | | | | hid: Implement Get/SetNpadHandheldActivationMode
| * hid: Implement Get/SetNpadHandheldActivationModeMorph2020-09-181-0/+10
| | | | | | | | - Used in Clubhouse Games: 51 Worldwide Classics
* | Merge pull request #4594 from german77/MotionHIDbunnei2020-09-171-9/+45
|\ \ | |/ |/| hid/configuration: Implement motion controls to HID
| * Remove RealMotionDevicegerman2020-09-051-5/+5
| |
| * Include HID and configuration changes related to motiongerman2020-09-051-9/+45
| |
* | Merge pull request #4597 from Morph1984/mjolnir-p2bunnei2020-09-111-2/+5
|\ \ | |/ |/| Project Mjölnir: Part 2 - Controller Applet
| * applets/controller: Implement fallback applet for the SDL frontendMorph2020-09-041-1/+0
| | | | | | | | Implement the fallback applet for the SDL frontend, connecting only the minimum amount of players required.
| * Project Mjölnir: Part 2 - Controller AppletMorph2020-09-041-1/+5
| | | | | | | | Co-authored-by: Its-Rei <kupfel@gmail.com>
* | hid: Implement MergeSingleJoyasDualJoyMorph2020-09-041-0/+1
|/ | | | - Used in multiple games such as Super Mario Odyssey.
* Project Mjölnir: Part 1Morph2020-08-261-4/+7
| | | | | Co-authored-by: James Rowe <jroweboy@gmail.com> Co-authored-by: Its-Rei <kupfel@gmail.com>
* hid: Implement Get/ResetGyroscopeZeroDriftModeMorph2020-06-211-1/+9
| | | | - Used by Captain Toad Treasure Tracker
* kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. (#3154)bunnei2019-11-251-1/+1
| | | | | | * kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. - See https://github.com/citra-emu/citra/pull/4710 for details.
* hid/npad: Remove redundant non-const variant of IsControllerSupported()Lioncash2019-10-181-1/+0
| | | | | | The const qualified variant can also be called in non-const contexts, so we can remove the non-const variant to eliminate a bit of code duplication.
* hid/npad: Move function declarationsLioncash2019-10-181-5/+6
| | | | | Clearly separate these from the variable declarations to make them more visible.
* RebasedDavid Marcec2019-09-221-2/+3
|
* marked controller constructors as explicitDavid Marcec2019-09-221-1/+1
|
* RebaseDavid Marcec2019-09-221-2/+3
|
* Deglobalize System: HidDavid Marcec2019-09-221-1/+1
|
* dittoMorph19842019-09-041-1/+1
| | | Co-Authored-By: David <25727384+ogniK5377@users.noreply.github.com>
* Update npad.hMorph19842019-09-041-0/+1
|
* hid:StartLrAssignmentMode, hid:StopLrAssignmentMode, hid:SwapNpadAssignmentDavid Marcec2019-07-011-0/+5
| | | | StartLrAssignmentMode and StopLrAssignmentMode don't require any implementation as it's just used for showing the screen of changing the controller orientation if the user wishes to do so. Ever since #1634 this has not been needed as users can specify the controller orientation from the config and swap at any time. We store a private member just in case this gets used for anything extra in the future
* Merge pull request #2090 from FearlessTobi/port-4599bunnei2019-03-211-51/+51
|\ | | | | Port citra-emu/citra#4244 and citra-emu/citra#4599: Changes to BitField
| * remove all occurance of specifying endianness inside BitFieldWeiyi Wang2019-02-061-51/+51
| | | | | | | | | | | | | | This commit it automatically generated by command in zsh: sed -i -- 's/BitField<\(.*\)_le>/BitField<\1>/g' **/*(D.) BitField is now aware to endianness and default to little endian. It expects a value representation type without storage specification for its template parameter.
* | core_timing: Convert core timing into a classLioncash2019-02-161-1/+1
|/ | | | | | | | | | | Gets rid of the largest set of mutable global state within the core. This also paves a way for eliminating usages of GetInstance() on the System class as a follow-up. Note that no behavioral changes have been made, and this simply extracts the functionality into a class. This also has the benefit of making dependencies on the core timing functionality explicit within the relevant interfaces.
* web_browser: Add bounds checking to applet interfaceZach Hilman2018-12-291-1/+1
|
* hid: Make Hid service accessible and add GetPressStateZach Hilman2018-12-281-0/+6
|
* kernel/event: Reference ReadableEvent from WritableEventZach Hilman2018-11-291-6/+2
|
* core: Port all current usages of Event to Readable/WritableEventZach Hilman2018-11-291-3/+8
|
* npad: Fix copy/paste error with LED position assignmentsZach Hilman2018-11-271-3/+3
|
* hid: Use player-defined controller type as PREFERRED_CONTROLLERZach Hilman2018-11-191-3/+8
|
* hid/npad: Update NPad to use player controller bindings and typeZach Hilman2018-11-191-2/+7
|
* Added controller helper funcsDavid Marcec2018-11-191-0/+4
|
* Left joycon rotation button remappingDavid Marcec2018-11-191-2/+5
|
* Added automatic npad switch based on supported stylesetsDavid Marcec2018-11-191-1/+3
|
* Added multi-input support and controller assignment at any portDavid Marcec2018-11-191-3/+13
|
* Added auto controller switching to supported controllers and single joycon button rotationDavid Marcec2018-10-201-0/+2
| | | | This is a subset of the better-hid-2 changes, this fixes input in various games which don't support dual joycons. This pr will search for the next best controller which is supported by the current game
* hid/controller/npad: Remove unused dump_idx member variableLioncash2018-10-181-1/+0
| | | | Given it's unused, we may as well toss it.
* hid/controller/npad: Remove unnecessary semicolon from the closing brace of LedPattern's constructorLioncash2018-10-181-1/+1
|
* hid/controller/npad: Move npad_id_list into the cpp fileLioncash2018-10-181-1/+0
| | | | | This is just a lookup table, and since it's private, there's nothing really stateful about it, so we can just move it into the cpp file.
* hid/controller/npad: Remove unnecessary const from void return typeLioncash2018-10-181-1/+1
| | | | This literally does nothing.
* hid/controller: Default the destructors of all controller types in the cpp fileLioncash2018-10-181-0/+1
| | | | | | These classes are non-trivial and are definitely going to be changed in the future, so we default these to prevent issues with forward declarations, and to keep the compiler from inlining tear-down code.
* Using dual joycons as the default controllerDavid Marcec2018-10-171-6/+11
| | | | Reason for the change is to allow both docked and undocked mode to work
* Dynamically decide handheld variant based on supported npad id priorityDavid Marcec2018-10-111-3/+3
| | | | Kirby input still doesn't work, should fix a lot of other games
* Added BeginPermitVibrationSession and EndPermitVibrationSessionDavid Marcec2018-10-101-0/+2
| | | | Used by Mario Party
* Added GetLedPattern and HandheldVariantDavid Marcec2018-10-101-2/+20
| | | | HandheldVariant is for specific games which expect handheld controllers to be at position 8(kirby), however this doesn't fix all games as some games require handhelds to be at position 0(snipperclips)
* Added the ability to "disconnect" individual npadsDavid Marcec2018-10-101-3/+12
| | | | Fixes arms
* Removed unneeded forward declarationsDavid Marcec2018-10-101-7/+1
|
* Addressed changes for better hidDavid Marcec2018-10-101-26/+37
|
* "Better Hid" rework part 1David Marcec2018-10-101-0/+249