Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #4291 from german77/ImplementControllerRumble | David | 2020-09-30 | 2 | -8/+19 |
|\ | | | | | input_common: First implementation of controller rumble | ||||
| * | First implementation of controller rumble | german | 2020-09-29 | 2 | -8/+19 |
| | | |||||
* | | Use different timing for motion | german | 2020-09-24 | 3 | -73/+137 |
|/ | |||||
* | Merge pull request #4683 from Morph1984/NpadHandheldActivationMode-impl | bunnei | 2020-09-20 | 2 | -0/+18 |
|\ | | | | | hid: Implement Get/SetNpadHandheldActivationMode | ||||
| * | hid: Implement Get/SetNpadHandheldActivationMode | Morph | 2020-09-18 | 2 | -0/+18 |
| | | | | | | | | - Used in Clubhouse Games: 51 Worldwide Classics | ||||
* | | Merge pull request #4594 from german77/MotionHID | bunnei | 2020-09-17 | 2 | -9/+151 |
|\ \ | |/ |/| | hid/configuration: Implement motion controls to HID | ||||
| * | configure_input: Hook up the motion button and checkbox | Morph | 2020-09-05 | 1 | -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 #4609 | german | 2020-09-05 | 1 | -2/+1 |
| | | |||||
| * | Remove RealMotionDevice | german | 2020-09-05 | 2 | -7/+8 |
| | | |||||
| * | controllers/npad: Simplify motion entry assignment | Morph | 2020-09-05 | 1 | -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 motion | german | 2020-09-05 | 2 | -9/+162 |
| | | |||||
* | | Merge pull request #4597 from Morph1984/mjolnir-p2 | bunnei | 2020-09-11 | 2 | -100/+23 |
|\ \ | |/ |/| | Project Mjölnir: Part 2 - Controller Applet | ||||
| * | applets/controller: Implement fallback applet for the SDL frontend | Morph | 2020-09-04 | 2 | -89/+0 |
| | | | | | | | | Implement the fallback applet for the SDL frontend, connecting only the minimum amount of players required. | ||||
| * | Project Mjölnir: Part 2 - Controller Applet | Morph | 2020-09-04 | 2 | -11/+23 |
| | | | | | | | | Co-authored-by: Its-Rei <kupfel@gmail.com> | ||||
* | | hid: Implement MergeSingleJoyasDualJoy | Morph | 2020-09-04 | 2 | -0/+17 |
|/ | | | | - Used in multiple games such as Super Mario Odyssey. | ||||
* | yuzu: Add motion and touch configuration | FearlessTobi | 2020-08-29 | 2 | -1/+12 |
| | |||||
* | 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 |
| | | | | This allows homebrew applications to be able to properly detect connected controllers. | ||||
* | controllers/npad: Fix LedPattern for P1-4 | Morph | 2020-08-26 | 1 | -3/+3 |
| | |||||
* | Project Mjölnir: Part 1 | Morph | 2020-08-26 | 2 | -118/+106 |
| | | | | | Co-authored-by: James Rowe <jroweboy@gmail.com> Co-authored-by: Its-Rei <kupfel@gmail.com> | ||||
* | core: Resolve several -Wextra-semi warnings | Lioncash | 2020-08-14 | 1 | -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. | ||||
* | hid: Only update keyboard & debug pad inputs if enabled | David Marcec | 2020-07-16 | 2 | -33/+37 |
| | | | | Previously we would ignore this setting and would update the states regardless of the user setting | ||||
* | General: Recover Prometheus project from harddrive failure | Fernando Sahmkow | 2020-06-27 | 8 | -9/+9 |
| | | | | | | | 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/ResetGyroscopeZeroDriftMode | Morph | 2020-06-21 | 2 | -1/+17 |
| | | | | - Used by Captain Toad Treasure Tracker | ||||
* | hid: Clear keyboard states & fix logic issue | David Marcec | 2020-05-12 | 1 | -3/+4 |
| | | | | Previously we never cleared the states of the entries and the key would stay held down, also looping over the key bytes for each key lead to setting every bit for the key state instead of the key we wanted | ||||
* | 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 | 2 | -3/+2 |
| | | | | | | * 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. | bunnei | 2019-11-03 | 1 | -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() | Lioncash | 2019-10-18 | 1 | -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 case | Lioncash | 2019-10-18 | 1 | -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 loops | Lioncash | 2019-10-18 | 1 | -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() | Lioncash | 2019-10-18 | 2 | -34/+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. | ||||
* | hid/npad: Move function declarations | Lioncash | 2019-10-18 | 1 | -5/+6 |
| | | | | | Clearly separate these from the variable declarations to make them more visible. | ||||
* | service/hid: Silence -Wunused and -Wswitch | ReinUsesLisp | 2019-10-05 | 14 | -21/+14 |
| | |||||
* | service/hid: Remove unused system reference | ReinUsesLisp | 2019-10-05 | 2 | -2/+1 |
| | |||||
* | Signal styleset changes at a better time | David Marcec | 2019-09-24 | 1 | -8/+2 |
| | | | | We should signal when a net controller is added and our event should be manual, not automatic. | ||||
* | removed comment | David Marcec | 2019-09-22 | 1 | -1/+0 |
| | |||||
* | Rebased | David Marcec | 2019-09-22 | 2 | -10/+18 |
| | |||||
* | removed unneeded semicolon | David Marcec | 2019-09-22 | 1 | -1/+1 |
| | |||||
* | marked controller constructors as explicit | David Marcec | 2019-09-22 | 8 | -8/+8 |
| | |||||
* | Rebase | David Marcec | 2019-09-22 | 18 | -38/+53 |
| | |||||
* | Deglobalize System: Hid | David Marcec | 2019-09-22 | 18 | -21/+25 |
| | |||||
* | ditto | Morph1984 | 2019-09-04 | 1 | -1/+1 |
| | | | Co-Authored-By: David <25727384+ogniK5377@users.noreply.github.com> | ||||
* | IsVibrationEnabled() as a const member func | Morph1984 | 2019-09-04 | 1 | -1/+1 |
| | |||||
* | Update npad.h | Morph1984 | 2019-09-04 | 1 | -0/+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 | 2 | -0/+35 |
| | | | | 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 members | Lioncash | 2019-05-18 | 1 | -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. | ||||
* | Merge pull request #2090 from FearlessTobi/port-4599 | bunnei | 2019-03-21 | 3 | -68/+68 |
|\ | | | | | Port citra-emu/citra#4244 and citra-emu/citra#4599: Changes to BitField | ||||
| * | remove all occurance of specifying endianness inside BitField | Weiyi Wang | 2019-02-06 | 3 | -68/+68 |
| | | | | | | | | | | | | | | 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 class | Lioncash | 2019-02-16 | 17 | -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::Timing | Lioncash | 2019-02-12 | 8 | -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 interface | Zach Hilman | 2018-12-29 | 2 | -5/+3 |
| | |||||
* | hid: Make Hid service accessible and add GetPressState | Zach Hilman | 2018-12-28 | 2 | -0/+14 |
| | |||||
* | npad: Remove code to invert input in horizontal mode. | bunnei | 2018-12-26 | 1 | -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-event | bunnei | 2018-12-03 | 2 | -11/+14 |
|\ | | | | | kernel: Divide Event into ReadableEvent and WritableEvent | ||||
| * | kernel/event: Reference ReadableEvent from WritableEvent | Zach Hilman | 2018-11-29 | 2 | -13/+7 |
| | | |||||
| * | core: Port all current usages of Event to Readable/WritableEvent | Zach Hilman | 2018-11-29 | 2 | -8/+17 |
| | | |||||
* | | Fixed crash with SetNpadMode | David Marcec | 2018-12-02 | 1 | -2/+3 |
|/ | | | | fixed crash due to handheld | ||||
* | 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/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 level | David Marcec | 2018-11-26 | 1 | -1/+2 |
| | | |||||
* | | Merge pull request #1817 from DarkLordZach/npad-idx-fix | bunnei | 2018-11-28 | 1 | -2/+2 |
|\ \ | | | | | | | npad: Use NPadIdToIndex to prevent invalid array access | ||||
| * | | npad: Use NPadIdToIndex to prevent invalid array access | Zach Hilman | 2018-11-28 | 1 | -2/+2 |
| |/ | |||||
* / | npad: Fix copy/paste error with LED position assignments | Zach Hilman | 2018-11-27 | 1 | -3/+3 |
|/ | |||||
* | debug_pad: Avoid loading input for nonexistent buttons (Home and Screenshot) | Zach Hilman | 2018-11-22 | 1 | -2/+3 |
| | | | | Prevents memory exceptions when the debug pad is enabled. | ||||
* | hid: Use player-defined controller type as PREFERRED_CONTROLLER | Zach Hilman | 2018-11-19 | 4 | -174/+61 |
| | |||||
* | hid/npad: Update NPad to use player controller bindings and type | Zach Hilman | 2018-11-19 | 2 | -55/+108 |
| | |||||
* | hid/touchscreen: Update Touchscreen to use advanced parameters | Zach Hilman | 2018-11-19 | 1 | -6/+6 |
| | | | | Including finger ID, diamater x/y, and angle. Additionally, checks if the touchscreen is enabled. | ||||
* | hid: Add controller bindings for Mouse controller | Zach Hilman | 2018-11-19 | 2 | -4/+30 |
| | |||||
* | hid: Add keyboard bindings for Keyboard controller | Zach Hilman | 2018-11-19 | 2 | -2/+24 |
| | |||||
* | hid: Add controller bindings for DebugPad controller | Zach Hilman | 2018-11-19 | 2 | -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 touchscreen | David Marcec | 2018-11-19 | 2 | -1/+18 |
| | |||||
* | Added debugpad skeleton | David Marcec | 2018-11-19 | 2 | -2/+55 |
| | |||||
* | Added controller helper funcs | David Marcec | 2018-11-19 | 2 | -0/+35 |
| | |||||
* | Left joycon rotation button remapping | David Marcec | 2018-11-19 | 2 | -7/+21 |
| | |||||
* | Added automatic npad switch based on supported stylesets | David Marcec | 2018-11-19 | 2 | -4/+124 |
| | |||||
* | Added multi-input support and controller assignment at any port | David Marcec | 2018-11-19 | 2 | -122/+181 |
| | |||||
* | Fixed priority switching edge case for handheld (#1675) | David | 2018-11-16 | 1 | -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() | Lioncash | 2018-11-14 | 1 | -0/+1 |
| | |||||
* | Updated npad styles on holdtype switches | David Marcec | 2018-11-07 | 1 | -0/+2 |
| | | | | Fixes input for megaman | ||||
* | Fixed HID crash when launching more than 1 game & signaled syleset change event | David Marcec | 2018-11-02 | 1 | -0/+3 |
| | | | | This should fix crashes when launching multiple games in yuzu | ||||
* | npad: Remove unused controller variable from OnInit() | Lioncash | 2018-10-24 | 1 | -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 rotation | David Marcec | 2018-10-20 | 2 | -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 inclusions | Lioncash | 2018-10-18 | 9 | -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 variable | Lioncash | 2018-10-18 | 1 | -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 constructor | Lioncash | 2018-10-18 | 1 | -1/+1 |
| | |||||
* | hid/controller/npad: Remove #pragma once from the cpp file | Lioncash | 2018-10-18 | 1 | -2/+0 |
| | | | | This is only useful in headers. | ||||
* | hid/controller/npad: Move npad_id_list into the cpp file | Lioncash | 2018-10-18 | 2 | -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 type | Lioncash | 2018-10-18 | 2 | -2/+2 |
| | | | | This literally does nothing. | ||||
* | hid/controller: Default the destructors of all controller types in the cpp file | Lioncash | 2018-10-18 | 16 | -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 file | Lioncash | 2018-10-18 | 2 | -2/+4 |
| | | | | The destructor doesn't need to be a pure-virtual function. | ||||
* | Using dual joycons as the default controller | David Marcec | 2018-10-17 | 2 | -74/+58 |
| | | | | Reason for the change is to allow both docked and undocked mode to work | ||||
* | Wip | David Marcec | 2018-10-12 | 1 | -2/+18 |
| | |||||
* | Dynamically decide handheld variant based on supported npad id priority | David Marcec | 2018-10-11 | 2 | -19/+58 |
| | | | | Kirby input still doesn't work, should fix a lot of other games | ||||
* | Added BeginPermitVibrationSession and EndPermitVibrationSession | David Marcec | 2018-10-10 | 2 | -0/+8 |
| | | | | Used by Mario Party | ||||
* | Added GetLedPattern and HandheldVariant | David Marcec | 2018-10-10 | 2 | -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 8 | David Marcec | 2018-10-10 | 1 | -2/+8 |
| | |||||
* | Added the ability to "disconnect" individual npads | David Marcec | 2018-10-10 | 2 | -15/+36 |
| | | | | Fixes arms | ||||
* | Removed unneeded forward declarations | David Marcec | 2018-10-10 | 2 | -13/+2 |
| | |||||
* | Addressed changes for better hid | David Marcec | 2018-10-10 | 18 | -130/+208 |
| | |||||
* | "Better Hid" rework part 1 | David Marcec | 2018-10-10 | 18 | -0/+1289 |