summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/controllers (follow)
Commit message (Collapse)AuthorAgeFilesLines
* core_timing: Convert core timing into a classLioncash2019-02-1617-26/+39
| | | | | | | | | | | 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-128-9/+9
| | | | | | 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-292-5/+3
|
* hid: Make Hid service accessible and add GetPressStateZach Hilman2018-12-282-0/+14
|
* 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-032-11/+14
|\ | | | | kernel: Divide Event into ReadableEvent and WritableEvent
| * kernel/event: Reference ReadableEvent from WritableEventZach Hilman2018-11-292-13/+7
| |
| * core: Port all current usages of Event to Readable/WritableEventZach Hilman2018-11-292-8/+17
| |
* | 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
| |
* | Merge pull request #1817 from DarkLordZach/npad-idx-fixbunnei2018-11-281-2/+2
|\ \ | | | | | | npad: Use NPadIdToIndex to prevent invalid array access
| * | npad: Use NPadIdToIndex to prevent invalid array accessZach Hilman2018-11-281-2/+2
| |/
* / npad: Fix copy/paste error with LED position assignmentsZach Hilman2018-11-271-3/+3
|/
* debug_pad: Avoid loading input for nonexistent buttons (Home and Screenshot)Zach Hilman2018-11-221-2/+3
| | | | Prevents memory exceptions when the debug pad is enabled.
* hid: Use player-defined controller type as PREFERRED_CONTROLLERZach Hilman2018-11-194-174/+61
|
* hid/npad: Update NPad to use player controller bindings and typeZach Hilman2018-11-192-55/+108
|
* hid/touchscreen: Update Touchscreen to use advanced parametersZach Hilman2018-11-191-6/+6
| | | | Including finger ID, diamater x/y, and angle. Additionally, checks if the touchscreen is enabled.
* hid: Add controller bindings for Mouse controllerZach Hilman2018-11-192-4/+30
|
* hid: Add keyboard bindings for Keyboard controllerZach Hilman2018-11-192-2/+24
|
* hid: Add controller bindings for DebugPad controllerZach Hilman2018-11-192-21/+43
| | | | Used by developers to test games, not present on retail systems. Some games are known to respond to DebugPad input though, for example Kirby Star Allies.
* Added missing start/end touch attributes to touchscreenDavid Marcec2018-11-192-1/+18
|
* Added debugpad skeletonDavid Marcec2018-11-192-2/+55
|
* Added controller helper funcsDavid Marcec2018-11-192-0/+35
|
* Left joycon rotation button remappingDavid Marcec2018-11-192-7/+21
|
* Added automatic npad switch based on supported stylesetsDavid Marcec2018-11-192-4/+124
|
* Added multi-input support and controller assignment at any portDavid Marcec2018-11-192-122/+181
|
* 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-202-4/+189
| | | | 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-189-9/+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 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: 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-182-2/+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-182-2/+2
| | | | This literally does nothing.
* hid/controller: Default the destructors of all controller types in the cpp fileLioncash2018-10-1816-0/+16
| | | | | | 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.
* controller_base: Default the base class constructor and destructor in the cpp fileLioncash2018-10-182-2/+4
| | | | The destructor doesn't need to be a pure-virtual function.
* Using dual joycons as the default controllerDavid Marcec2018-10-172-74/+58
| | | | 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-112-19/+58
| | | | Kirby input still doesn't work, should fix a lot of other games
* Added BeginPermitVibrationSession and EndPermitVibrationSessionDavid Marcec2018-10-102-0/+8
| | | | Used by Mario Party
* Added GetLedPattern and HandheldVariantDavid Marcec2018-10-102-4/+54
| | | | 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-102-15/+36
| | | | Fixes arms
* Removed unneeded forward declarationsDavid Marcec2018-10-102-13/+2
|
* Addressed changes for better hidDavid Marcec2018-10-1018-130/+208
|
* "Better Hid" rework part 1David Marcec2018-10-1018-0/+1289