summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/controllers/npad.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* hid: Stub HomeButtonInputProtection service commandsMorph2020-09-301-0/+9
| | | | - Used in 1-2 Switch. Given that we do not emulate the functionality of the home button yet, we can stub this for now.
* Use different timing for motiongerman2020-09-241-73/+129
|
* Merge pull request #4683 from Morph1984/NpadHandheldActivationMode-implbunnei2020-09-201-0/+8
|\ | | | | hid: Implement Get/SetNpadHandheldActivationMode
| * hid: Implement Get/SetNpadHandheldActivationModeMorph2020-09-181-0/+8
| | | | | | | | - Used in Clubhouse Games: 51 Worldwide Classics
* | Merge pull request #4594 from german77/MotionHIDbunnei2020-09-171-0/+106
|\ \ | |/ |/| hid/configuration: Implement motion controls to HID
| * configure_input: Hook up the motion button and checkboxMorph2020-09-051-1/+1
| | | | | | | | | | This allows toggling motion on or off, and allows access to the motion configuration. Also changes the [waiting] text for motion buttons to Shake! as this is how motion is connected to a player.
| * Add cemu hook changes related to PR #4609german2020-09-051-2/+1
| |
| * Remove RealMotionDevicegerman2020-09-051-2/+3
| |
| * controllers/npad: Simplify motion entry assignmentMorph2020-09-051-29/+18
| | | | | | | | Simplifies the motion assignment in the Dual Joycon entry and assigns index 1 of the motion entry (Motion 2) for the right joycon.
| * Include HID and configuration changes related to motiongerman2020-09-051-0/+117
| |
* | Merge pull request #4597 from Morph1984/mjolnir-p2bunnei2020-09-111-98/+18
|\ \ | |/ |/| Project Mjölnir: Part 2 - Controller Applet
| * applets/controller: Implement fallback applet for the SDL frontendMorph2020-09-041-88/+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-10/+18
| | | | | | | | Co-authored-by: Its-Rei <kupfel@gmail.com>
* | hid: Implement MergeSingleJoyasDualJoyMorph2020-09-041-0/+16
|/ | | | - Used in multiple games such as Super Mario Odyssey.
* controllers/npad: Fix inconsistencies with controller connection statusesMorph2020-08-261-1/+7
|
* controllers/npad: Fix LibNX controller connection statusesMorph2020-08-261-1/+9
| | | | This allows homebrew applications to be able to properly detect connected controllers.
* controllers/npad: Fix LedPattern for P1-4Morph2020-08-261-3/+3
|
* Project Mjölnir: Part 1Morph2020-08-261-114/+99
| | | | | Co-authored-by: James Rowe <jroweboy@gmail.com> Co-authored-by: Its-Rei <kupfel@gmail.com>
* core: Resolve several -Wextra-semi warningsLioncash2020-08-141-2/+2
| | | | | We can amend one of the cascade macros to require semicolons in order to compile. In other cases, we can just remove the superfluous semicolons.
* General: Recover Prometheus project from harddrive failure Fernando Sahmkow2020-06-271-1/+1
| | | | | | | This commit: Implements CPU Interrupts, Replaces Cycle Timing for Host Timing, Reworks the Kernel's Scheduler, Introduce Idle State and Suspended State, Recreates the bootmanager, Initializes Multicore system.
* hid: Implement Get/ResetGyroscopeZeroDriftModeMorph2020-06-211-0/+8
| | | | - Used by Captain Toad Treasure Tracker
* npad: Lower log level for VibrateController to DebugFearlessTobi2020-04-201-1/+1
|
* service: hid: npad: Fix implicit fallthrough errors.bunnei2020-04-181-0/+2
|
* analog_from_button get direction implementationCJBok2020-02-181-5/+5
|
* Moved analog direction logic to sdl_implCJBok2020-01-151-9/+22
|
* Corrected directional states sensitivityCJBok2020-01-141-9/+9
|
* hid: Fix analog sticks directional statesCJBok2020-01-091-12/+12
|
* kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. (#3154)bunnei2019-11-251-2/+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.
* kernel: events: Remove ResetType::Automatic.bunnei2019-11-031-1/+1
| | | | | | | | - This does not actually seem to exist in the real kernel - games reset these automatically. # Conflicts: # src/core/hle/service/am/applets/applets.cpp # src/core/hle/service/filesystem/fsp_srv.cpp
* hid/npad: Fix incorrect connection boolean value in ConnectAllDisconnectedControllers()Lioncash2019-10-181-1/+1
| | | | | | We should be setting the connection state to true, otherwise we aren't actually making the controllers connected like the function name indicates.
* hid/npad: Add missing break in default caseLioncash2019-10-181-0/+1
| | | | | | | While not an issue, it does prevent fallthrough from occurring if anything is ever added after this case (unlikely to occur, but this turns a trivial "should not cause issues" into a definite "won't cause issues).
* hid/npad: Replace std::for_each with ranged for loopsLioncash2019-10-181-13/+12
| | | | | | Performs the same behavior, but is built into the core language itself. No functional change.
* hid/npad: Remove redundant non-const variant of IsControllerSupported()Lioncash2019-10-181-33/+5
| | | | | | 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.
* service/hid: Silence -Wunused and -WswitchReinUsesLisp2019-10-051-2/+6
|
* Signal styleset changes at a better timeDavid Marcec2019-09-241-8/+2
| | | | We should signal when a net controller is added and our event should be manual, not automatic.
* removed commentDavid Marcec2019-09-221-1/+0
|
* RebasedDavid Marcec2019-09-221-8/+15
|
* RebaseDavid Marcec2019-09-221-2/+2
|
* Deglobalize System: HidDavid Marcec2019-09-221-2/+2
|
* IsVibrationEnabled() as a const member funcMorph19842019-09-041-1/+1
|
* Update npad.cppMorph19842019-09-041-0/+6
|
* addressed issuesDavid Marcec2019-07-081-6/+7
|
* hid:StartLrAssignmentMode, hid:StopLrAssignmentMode, hid:SwapNpadAssignmentDavid Marcec2019-07-011-0/+30
| | | | 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
* core/kernel/object: Rename ResetType enum membersLioncash2019-05-181-1/+1
| | | | | | | | | | | | | Renames the members to more accurately indicate what they signify. "OneShot" and "Sticky" are kind of ambiguous identifiers for the reset types, and can be kind of misleading. Automatic and Manual communicate the kind of reset type in a clearer manner. Either the event is automatically reset, or it isn't and must be manually cleared. The "OneShot" and "Sticky" terminology is just a hold-over from Citra where the kernel had a third type of event reset type known as "Pulse". Given the Switch kernel only has two forms of event reset types, we don't need to keep the old terminology around anymore.
* core_timing: Convert core timing into a classLioncash2019-02-161-2/+3
| | | | | | | | | | | 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.
* core_timing: Rename CoreTiming namespace to Core::TimingLioncash2019-02-121-1/+1
| | | | | | Places all of the timing-related functionality under the existing Core namespace to keep things consistent, rather than having the timing utilities sitting in its own completely separate namespace.
* web_browser: Add bounds checking to applet interfaceZach Hilman2018-12-291-4/+2
|
* hid: Make Hid service accessible and add GetPressStateZach Hilman2018-12-281-0/+8
|
* npad: Remove code to invert input in horizontal mode.bunnei2018-12-261-46/+0
| | | | | - This was incorrect, the game appears to handle this for us. - Fixes horizontal mode with Puyo Puyo Tetris and Super Mario Odyssey.
* Merge pull request #1803 from DarkLordZach/k-able-eventbunnei2018-12-031-8/+10
|\ | | | | kernel: Divide Event into ReadableEvent and WritableEvent
| * kernel/event: Reference ReadableEvent from WritableEventZach Hilman2018-11-291-7/+5
| |
| * core: Port all current usages of Event to Readable/WritableEventZach Hilman2018-11-291-5/+9
| |
* | Fixed crash with SetNpadModeDavid Marcec2018-12-021-2/+3
|/ | | | fixed crash due to handheld
* Merge pull request #1801 from ogniK5377/log-before-executebunnei2018-11-291-1/+2
|\ | | | | Changed logging to be "Log before execution", Added more error logging, all services/svc should now log on some level
| * Changed logging to be "Log before execution", Added more error logging, all services should now log on some levelDavid Marcec2018-11-261-1/+2
| |
* | npad: Use NPadIdToIndex to prevent invalid array accessZach Hilman2018-11-281-2/+2
|/
* hid: Use player-defined controller type as PREFERRED_CONTROLLERZach Hilman2018-11-191-163/+50
|
* hid/npad: Update NPad to use player controller bindings and typeZach Hilman2018-11-191-53/+101
|
* Added controller helper funcsDavid Marcec2018-11-191-0/+31
|
* Left joycon rotation button remappingDavid Marcec2018-11-191-5/+16
|
* Added automatic npad switch based on supported stylesetsDavid Marcec2018-11-191-3/+121
|
* Added multi-input support and controller assignment at any portDavid Marcec2018-11-191-119/+168
|
* Fixed priority switching edge case for handheld (#1675)David2018-11-161-12/+46
| | | | | | | | * Fixed priority switching edge case for handheld We accidently used controller index instead of npad id * Moved NPadIdToIndex
* hid/npad: Add missing break in switch statement within Controller_NPad::OnUpdate()Lioncash2018-11-141-0/+1
|
* Updated npad styles on holdtype switchesDavid Marcec2018-11-071-0/+2
| | | | Fixes input for megaman
* Fixed HID crash when launching more than 1 game & signaled syleset change eventDavid Marcec2018-11-021-0/+3
| | | | This should fix crashes when launching multiple games in yuzu
* npad: Remove unused controller variable from OnInit()Lioncash2018-10-241-2/+3
| | | | | This also gets rid of variable shadowing related to the lambda parameter a little bit below this code as well.
* Added auto controller switching to supported controllers and single joycon button rotationDavid Marcec2018-10-201-4/+187
| | | | 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: Remove unused header inclusionsLioncash2018-10-181-1/+0
| | | | | | swap.h only needs to be present in the header for the type aliases and definitions, it's not actually needed in the cpp files though. input.h is just unused entirely in xpad.h
* hid/controller/npad: Remove #pragma once from the cpp fileLioncash2018-10-181-2/+0
| | | | This is only useful in headers.
* hid/controller/npad: Move npad_id_list into the cpp fileLioncash2018-10-181-1/+10
| | | | | 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-68/+47
| | | | Reason for the change is to allow both docked and undocked mode to work
* WipDavid Marcec2018-10-121-2/+18
|
* Dynamically decide handheld variant based on supported npad id priorityDavid Marcec2018-10-111-16/+55
| | | | Kirby input still doesn't work, should fix a lot of other games
* Added BeginPermitVibrationSession and EndPermitVibrationSessionDavid Marcec2018-10-101-0/+6
| | | | Used by Mario Party
* Added GetLedPattern and HandheldVariantDavid Marcec2018-10-101-2/+34
| | | | 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)
* Kirby expects handheld controllers to be at position 8David Marcec2018-10-101-2/+8
|
* Added the ability to "disconnect" individual npadsDavid Marcec2018-10-101-12/+24
| | | | Fixes arms
* Addressed changes for better hidDavid Marcec2018-10-101-49/+52
|
* "Better Hid" rework part 1David Marcec2018-10-101-0/+336