summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/hid.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* service: hid: Fully implement touch resourceNarr the Reg2024-01-291-2/+3
|
* service: set: Implement more settings functions for QlaunchNarr the Reg2024-01-261-1/+1
|
* Merge pull request #12660 from german77/better-vibrationliamwhite2024-01-201-0/+1
|\ | | | | service: hid: Fully implement abstract vibration
| * service: hid: Fully implement abstract vibrationNarr the Reg2024-01-161-0/+1
| |
* | service: set: Implement stubbed functionsNarr the Reg2024-01-161-1/+1
|/
* kernel: fix debugger and process list lifetimeLiam2024-01-131-6/+4
|
* Fix typos in src/core (#12625)Viktor Szépe2024-01-081-6/+6
| | | | | | | | | * Fix typos in src/core * Fix typo correction * Fix indentation of MemoryStateNames * Fix indent
* hid_core: Move hid to it's own subprojectNarr the Reg2024-01-051-2/+2
|
* service: hid: Implement NpadResource and NpadDataNarr the Reg2024-01-041-0/+1
|
* service: hid: Introduce proper AppletResource emulationNarr the Reg2023-12-071-0/+8
|
* service: hid: Introduce firmware settings and update activate controller callsNarr the Reg2023-11-171-2/+5
|
* service: hid: Split hid.cpp into individual interfacesNarr the Reg2023-11-151-2841/+15
|
* service: hid: Silence EnableUnintendedHomeButtonInputProtectiongerman772023-11-041-7/+5
|
* core: Close all KEventsgerman772023-10-291-0/+4
|
* Merge pull request #11519 from german77/system-policyliamwhite2023-09-161-7/+24
|\ | | | | service: hid: Implement ApplyNpadSystemCommonPolicy
| * service: hid: Implement ApplyNpadSystemCommonPolicygerman772023-09-161-7/+24
| |
* | hid: service: Implement Last active Npadgerman772023-09-161-1/+1
|/
* service: hid: Implement functions needed by QLaunchNarr the Reg2023-08-111-8/+60
|
* service: hid: Use span instead of vector referencegerman772023-05-151-10/+10
|
* service: hid: Implement SetNpadJoyAssignmentModeSingleWithDestinationgerman772023-03-301-4/+37
| | | | Used by Let's Get Fit
* general: fix spelling mistakesLiam2023-03-121-1/+1
|
* service: move hle_ipc from kernelLiam2023-03-011-114/+114
|
* Merge pull request #9832 from liamwhite/hle-mpliamwhite2023-03-011-8/+13
|\ | | | | service: HLE multiprocess
| * service: refactor server architectureLiam2023-02-211-8/+13
| | | | | | | | Converts services to have their own processes
* | Merge pull request #9859 from liamwhite/tmem-useliamwhite2023-02-281-3/+2
|\ \ | | | | | | service: avoid direct pointer access of transfer memory objects
| * | hid: avoid direct pointer access of transfer memory objectsLiam2023-02-241-3/+2
| |/
* / core: Update service function tables to 16.0.0+Narr the Reg2023-02-251-0/+6
|/
* Merge pull request #9796 from liamwhite/currentliamwhite2023-02-151-4/+4
|\ | | | | general: rename CurrentProcess to ApplicationProcess
| * general: rename CurrentProcess to ApplicationProcessLiam2023-02-141-4/+4
| |
* | service: remove deleted servicesLiam2023-02-141-14/+0
|/
* core: hid: Use gyro thresholds modes set by the gameNarr the Reg2023-02-101-3/+3
|
* service: hid: Return error if arguments of SetSupportedNpadIdType is invalidNarr the Reg2023-02-081-3/+3
|
* Revert "Merge pull request #9718 from yuzu-emu/revert-9508-hle-ipc-buffer-span"ameerj2023-02-031-2/+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/+2
|
* hle_ipc: Rename ReadBufferSpan to ReadBufferameerj2022-12-291-4/+4
|
* hidbus: Use ReadBufferSpanameerj2022-12-291-1/+1
|
* service: Use ReadBufferSpan where it is trivial to do soameerj2022-12-251-4/+4
|
* service: hid: Only overclock npad controllersgerman772022-11-191-5/+27
|
* general: Fix spelling of "unknown"Morph2022-10-161-1/+1
|
* Merge pull request #8876 from FearlessTobi/multiplayer-part3bunnei2022-10-011-1/+2
|\ | | | | ldn: Implement "local wireless" networked multiplayer
| * yuzu: Multiple room UI improvementsgerman772022-09-101-1/+2
| |
* | service: hid: Partially implement palma controllerNarr the Reg2022-09-251-32/+412
|/
* Demote services from warning/info to debug to reduce log spam:Kelebek12022-09-011-7/+7
| | | | | | | | | | | GetCurrentFocusState SetClockSpeed EnableSixAxisSensorUnalteredPassthrough IsSixAxisSensorUnalteredPassthroughEnabled Get, GetOld SetAndWait, SetAndWaitOld IocParam IocFree
* hid: core: Add missing function table namesgerman772022-08-221-0/+6
|
* service: irs: Move to IRS namespace and minor fixesgerman772022-07-241-2/+2
|
* PRKelebek12022-07-101-4/+3
|
* Rework CoreTimingKelebek12022-07-101-27/+15
|
* service: hid: Correct some mistakes and add more validationsNarr the Reg2022-06-291-31/+44
|
* common: Change semantics of UNREACHABLE to unconditionally crashLiam2022-06-141-1/+1
|
* service: hid: Implement ResetIsSixAxisSensorDeviceNewlyAssignedgerman772022-05-271-1/+26
| | | | Needed by Nintendo Switch Sports
* service: hid: Implement LoadSixAxisSensorCalibrationParameter and GetSixAxisSensorIcInformationgerman772022-05-271-2/+62
| | | | Needed by Nintendo Switch Sports
* service: hid: Implement EnableSixAxisSensorUnalteredPassthrough and IsSixAxisSensorUnalteredPassthroughEnabledgerman772022-05-271-2/+55
| | | | Needed by Nintendo Switch Sports
* service: hid: Implement MergeSingleJoyAsDualJoy according to REgerman772022-05-271-3/+3
|
* service: hid: Add error handling to setNpadAssignment and variantsgerman772022-05-271-11/+13
|
* service: hid: Quick RE fixes and commentsgerman772022-05-271-28/+30
|
* service: hid: Fix motion refresh rateNarr the Reg2022-05-061-2/+1
|
* Merge pull request #8274 from german77/firmwareMorph2022-04-291-1/+20
|\ | | | | service: hid: Stub IsFirmwareUpdateNeededForNotification
| * service: hid: Stub IsFirmwareUpdateNeededForNotificationgerman772022-04-271-1/+20
| | | | | | | | Used in Fitness Boxing 2: Rhythm & Exercise (0100073011382000)
* | service: hid: Access shared memory directlyNarr the Reg2022-04-231-23/+18
|/
* 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-37/+92
|
* hidbus: Implement hidbus and ringcongerman772022-04-161-26/+1
|
* service: hid: Partially revert #8123german772022-04-061-0/+4
|
* Merge pull request #8123 from german77/bombslingerbunnei2022-04-031-4/+0
|\ | | | | service: hid: Remove inaccurate behavior on initialization
| * service: hid: Remove inaccurate behavior on initializationgerman772022-03-311-4/+0
| |
* | service: hid: Signal event on AcquireNpadStyleSetUpdateEventHandleNarr the Reg2022-03-311-0/+4
|/
* hid: Stub IsUsbFullKeyControllerEnabledlat9nq2022-02-121-1/+11
| | | | | | Used by Splatoon 2, when opening the inventory from a LAN battle lobby. Reference: https://switchbrew.org/wiki/HID_services
* service/hid: Initialize applet_resource on SetNpadAnalogStickUseCenterClampgerman772022-01-191-1/+2
|
* service/hid: Decrease motion update rateNarr the Reg2022-01-131-1/+2
| | | Motion stops working in Mario Tennis in swing mode if the update rate is too fast even when HW it updates at the same speed. 10ms it's the minimum period that the game needs to start working again.
* core/hid: Cancel any vibration after the testNarr the Reg2021-12-161-1/+1
|
* Merge pull request #7521 from german77/dual_single_joyconsbunnei2021-12-081-13/+13
|\ | | | | service/hid: Implement SetNpadJoyAssignmentMode
| * service/hid: Implement SetNpadJoyAssignmentModegerman772021-12-051-13/+13
| |
* | service/hid: Stub SetNpadCaptureButtonAssignment and ClearNpadCaptureButtonAssignmentgerman772021-12-061-2/+33
|/ | | | Used by ring fit adventure 1.2.0
* core/hid: Stub GetUniquePadsFromNpadNarr the Reg2021-11-271-1/+13
| | | | Used in checkpoint homebrew
* core/hid: Improve accuary of mouse implementationgerman772021-11-251-11/+18
|
* core/hid: Improve accuracy of the keyboard implementationgerman772021-11-251-4/+31
|
* core/hid: Remove usage of native types, fix a couple of errors with motiongerman772021-11-251-130/+159
|
* service/hid: Remove includes of core.h and settings.hgerman772021-11-251-0/+1
|
* core/hid: Rename NpadType to NpadStyleIndexgerman772021-11-251-7/+7
|
* kraken: Address comments from reviewgerman772021-11-251-2/+1
| | | | review fixes
* kraken: Fix errors from rebase and format filesgerman772021-11-251-1/+0
|
* service/hid: Use remove duplicated code, update namesgerman772021-11-251-37/+30
|
* settings: Cleanup settingsgerman772021-11-251-2/+1
|
* core: Remove unused includesameerj2021-11-041-2/+0
|
* service: Reduce header include overheadMorph2021-10-071-4/+0
|
* style: Remove extra space preceding the :: operatorMorph2021-09-291-1/+1
|
* service/hid: Update to 13.0.0german772021-09-271-0/+9
|
* hid: Stub SetTouchScreenConfigurationgerman772021-09-101-1/+13
|
* hle: service: Add a helper module for managing kernel objects.bunnei2021-07-211-6/+8
|
* hid: Stub IsFirmwareUpdateAvailableForSixAxisSensorgerman772021-06-111-1/+22
|
* general: Replace RESULT_UNKNOWN with ResultUnknownMorph2021-06-021-2/+2
| | | | Transition to PascalCase for result names.
* general: Replace RESULT_SUCCESS with ResultSuccessMorph2021-06-021-72/+72
| | | | Transition to PascalCase for result names.
* hid: ApplyNpadSystemCommonPolicyChloe Marcec2021-05-241-1/+10
| | | | We already do this specifically for homebrew, so we can keep it stubbed out for the time being
* hle: kernel: Migrate KClientPort to KAutoObject.bunnei2021-05-061-1/+1
|
* hle: kernel: Migrate KTransferMemory to KAutoObject.bunnei2021-05-061-8/+9
|
* hle: kernel: Migrate KSession, KClientSession, and KServerSession to KAutoObject.bunnei2021-05-061-1/+0
|
* hle: kernel: Migrate KSharedMemory to KAutoObject.bunnei2021-05-061-6/+4
|
* hle: kernel: Refactor IPC interfaces to not use std::shared_ptr.bunnei2021-05-061-1/+1
|
* hid: Implement SevenSixAxis and ConsoleSixAxisSensorgerman772021-04-241-10/+20
|
* service: hid: Get transfer memory for InitializeSevenSixAxisSensorMorph2021-04-221-1/+38
|
* common: Move settings to common from core.bunnei2021-04-151-1/+1
| | | | - Removes a dependency on core and input_common from common.
* Merge pull request #6158 from german77/hidServiceTablesbunnei2021-04-101-0/+83
|\ | | | | hid: Update service function tables
| * hid: Update service function tablesgerman772021-04-071-0/+83
| |
* | service: hid: Stub SetAnalogStickUseCenterClampMorph2021-04-081-1/+22
|/ | | | - Used by eBASEBALLパワフルプロ野球2020
* Merge pull request #5953 from bunnei/memory-refactor-1bunnei2021-02-271-1/+1
|\ | | | | Kernel Rework: Memory updates and refactoring (Part 1)
| * hle: kernel: Rename SharedMemory to KSharedMemory.bunnei2021-02-191-1/+1
| |
* | hid: Implement GameCube Controller VibrationsMorph2021-02-211-3/+120
|/ | | | Implements both SendVibrationGcErmCommand and GetActualVibrationGcErmCommand, and modifies GetVibrationDeviceInfo to account for additional controllers.
* Merge pull request #5868 from german77/HandheldFixbunnei2021-02-081-0/+1
|\ | | | | Prevent over scheduling audio events and add motion update unschedule event
| * Prevent over scheduling audio events and terminate properly the motion update eventgerman2021-02-021-0/+1
| |
* | Merge pull request #5326 from german77/hidUpdate1bunnei2021-02-061-7/+13
|\ \ | | | | | | HID: Update the HID service to match more closely to switchbrew part 1
| * | Adds missing controller types and propertiesgerman2021-02-041-7/+13
| | |
* | | hle: kernel: Rename WritableEvent to KWritableEvent.bunnei2021-02-051-1/+1
| | |
* | | hle: kernel: Rename ReadableEvent to KReadableEvent.bunnei2021-02-051-1/+1
|/ /
* | Merge pull request #5861 from german77/HandheldFixbunnei2021-02-021-2/+11
|\| | | | | hid: Only update motion for npad and prevent over scheduling events
| * Only update motion for npad and prevent over scheduling eventsgerman2021-02-011-2/+11
| |
* | hid: Add static_assert for Parameter sizeMorph2021-01-281-15/+19
| |
* | npad: Remove unused device handle parameterMorph2021-01-271-4/+3
| |
* | Stub Set/Get/Reset SixaxisSensorFusionParametersgerman2021-01-241-3/+78
| |
* | core: Silence Wclass-memaccess warningsReinUsesLisp2021-01-151-74/+74
|/ | | | | This requires making several types trivial and properly initialize them whenever they are called.
* hle: service: Acquire and release a lock on requests.bunnei2020-12-291-0/+2
| | | | - This makes it such that we can safely access service members from CoreTiming thread.
* Merge pull request #4998 from Morph1984/bioshock-patchbunnei2020-11-291-2/+4
|\ | | | | hid: Check if applet_resource exists in InitializeVibrationDevice
| * hid: Check if applet_resource exists in InitializeVibrationDeviceMorph2020-11-251-2/+4
| |
* | Merge pull request #5021 from german77/StubCommunicationModebunnei2020-11-291-2/+30
|\ \ | | | | | | HID: Stub set and get NpadCommunicationMode
| * | Stub set and get NpadCommunicationModegerman2020-11-271-2/+30
| |/
* / service: Eliminate usages of the global system instanceLioncash2020-11-271-16/+18
|/ | | | | Completely removes all usages of the global system instance within the services code by passing in the using system instance to the services.
* hid: Reimplement Begin/EndPermitVibrationSessionMorph2020-11-161-3/+8
| | | | 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.
* controllers/npad: Remove the old vibration filterMorph2020-11-161-1/+1
| | | | 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-11/+18
|
* input_common: Add VibrationDevice and VibrationDeviceFactoryMorph2020-11-161-0/+1
| | | | | | 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-6/+3
| | | | 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-2/+2
| | | | This stops all controllers from continuously vibrating when emulation is stopped.
* hid: Stub IsVibrationDeviceMountedMorph2020-11-161-1/+22
| | | | - Used in Super Mario Odyssey
* hid: Fix controller rumble based on new researchMorph2020-11-161-19/+36
| | | | | This fixes the issue where rumble is only sent to the first controller. Now, individual controllers can receive their own rumble commands.
* hid: Pop a struct of parameters instead of popping individual parametersMorph2020-11-161-103/+237
| | | | | Some parameters need to be doubleword aligned due to the presence of the applet_resource_user_id. Previously, this value was invalid in many commands where it was not doubleword aligned when popped.
* hid: Reorder all HID commandsMorph2020-11-161-181/+196
| | | | Reorders all HID commands in command id order.
* hid: Implement GetVibrationDeviceInfoMorph2020-11-161-3/+23
| | | | | | | | | | The first u32 describes the vibration device type which is a Linear Resonant Actuator used in Nintendo Switch controller hardware. The second u32 describes the vibration device position, in this case distinguishing between left and right vibration actuators. Pro Controllers have 2 LRAs each that can vibrate independently of each other, which means they have 2 distinct vibration device handles to distinguish between the two actuators. Similarly for joycons, the left joycon can be distinguished from the right joycon through the vibration device handle since each joycon has 1 LRA.
* hid: Stub InitializeVibrationDeviceMorph2020-11-161-3/+11
|
* settings: Preparation for per-game input settingsMorph2020-11-161-2/+2
|
* service: Update function tablesLioncash2020-10-281-1/+1
| | | | Updates function tables according to info on SwitchBrew.
* core/CMakeLists: Make some warnings errorsLioncash2020-10-131-1/+1
| | | | | | | | | Makes our error coverage a little more consistent across the board by applying it to Linux side of things as well. This also makes it more consistent with the warning settings in other libraries in the project. This also updates httplib to 0.7.9, as there are several warning cleanups made that allow us to enable several warnings as errors.
* Merge pull request #4736 from Morph1984/home-button-input-protection-stubbunnei2020-10-071-2/+36
|\ | | | | hid: Stub HomeButtonInputProtection service commands
| * hid: Stub HomeButtonInputProtection service commandsMorph2020-09-301-2/+36
| | | | | | | | - 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 #4734 from german77/motionfusionbunnei2020-10-021-1/+14
|\ \ | | | | | | HID: Add Stub for EnableSixAxisSensorFusion
| * | Stubbed EnableSixAxisSensorFusiongerman2020-09-301-1/+14
| | |
* | | Merge pull request #4291 from german77/ImplementControllerRumbleDavid2020-09-301-5/+3
|\ \ \ | |_|/ |/| | input_common: First implementation of controller rumble
| * | First implementation of controller rumblegerman2020-09-291-5/+3
| |/
* / Use different timing for motiongerman2020-09-241-3/+18
|/
* Merge pull request #4683 from Morph1984/NpadHandheldActivationMode-implbunnei2020-09-201-5/+10
|\ | | | | hid: Implement Get/SetNpadHandheldActivationMode
| * hid: Implement Get/SetNpadHandheldActivationModeMorph2020-09-181-5/+10
| | | | | | | | - Used in Clubhouse Games: 51 Worldwide Classics
* | Merge pull request #4643 from FearlessTobi/decrease-pad-update-intervalbunnei2020-09-191-1/+1
|\ \ | | | | | | Test: Decrease pad_update_ns
| * | Test: Decrease pad_update_nsFearlessTobi2020-09-101-1/+1
| |/ | | | | | | | | | | There have been reports of quite heavy input lag in the past. Compared to Citra for example, our pad_update_ns value is very high. So let's decrease it and see if it helps with this problem.
* / Include HID and configuration changes related to motiongerman2020-09-051-6/+31
|/
* hid: Implement MergeSingleJoyasDualJoyMorph2020-09-041-5/+7
| | | | - Used in multiple games such as Super Mario Odyssey.
* Project Mjölnir: Part 1Morph2020-08-261-9/+5
| | | | | Co-authored-by: James Rowe <jroweboy@gmail.com> Co-authored-by: Its-Rei <kupfel@gmail.com>
* core_timing: Make use of uintptr_t to represent user_dataLioncash2020-07-281-3/+5
| | | | Makes the interface future-proofed for supporting other platforms in the event we ever support platforms with differing pointer sizes. This way, we have a type in place that is always guaranteed to be able to represent a pointer exactly.
* core_timing: Make TimedCallback take std::chrono::nanosecondsLioncash2020-07-161-5/+4
| | | | Enforces our desired time units directly with a concrete type.
* core_timing: Make use of std::chrono with ScheduleEventLioncash2020-07-161-5/+7
|
* General: Recover Prometheus project from harddrive failure Fernando Sahmkow2020-06-271-9/+7
| | | | | | | 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.
* Merge pull request #4141 from Morph1984/SevenSixAxisSensorDavid2020-06-251-17/+76
|\ | | | | hid: Stub a series of "SevenSixAxisSensor" service commands
| * hid: Stub a series of "SevenSixAxisSensor" service commandsMorph2020-06-241-17/+76
| | | | | | | | | | | | - Used by Captain Toad: Treasure Tracker Update 1.3.0 While we're at it, fix the input parameters for SetIsPalmaAllConnectable and SetPalmaBoostMode
* | hid: Implement Get/ResetGyroscopeZeroDriftModeMorph2020-06-211-5/+37
|/ | | | - Used by Captain Toad Treasure Tracker
* Clang-formatVolcaEM2020-06-011-2/+1
|
* hid: Stub GetXpadIDsVolcaEM2020-06-011-1/+13
| | | Allows Minecraft: Nintendo Switch Edition (a.k.a. old Minecraft) to boot and go ingame
* Stub SendKeyboardLockKeyEventDavid Marcec2020-05-111-1/+10
| | | | Needed for Puchikon 4 SmileBASIC 1.0.0
* Merge pull request #3797 from slashiee/hid-stubMat M2020-04-271-1/+12
|\ | | | | services: hid: Stub StopSevenSixAxisSensor.
| * services: hid: Stub StopSevenSixAxisSensor.M&M2020-04-261-1/+12
| | | | | | | | - Used by The Legend of Zelda: Breath of the Wild v1.6.0
* | service: Update function tablesLioncash2020-04-201-1/+36
|/ | | | | | Keeps the service function tables up to date. Updated based off information on SwitchBrew.
* service: hid: Update for new shared memory layout.bunnei2020-04-171-3/+2
|
* services: hid: Stub InitializeSevenSixAxisSensor.bunnei2020-03-271-1/+8
| | | | - Used by Super Smash Bros. Ultimate v7.0.0.
* Core: Set all hardware emulation constants in a single file.Fernando Sahmkow2020-02-121-3/+4
|
* core_timing: Use better reference tracking for EventType. (#3159)bunnei2019-11-271-3/+2
| | | | | | | * core_timing: Use better reference tracking for EventType. - Moves ownership of the event to the caller, ensuring we don't fire events for destroyed objects. - Removes need for unique names - we won't be using this for save states anyways.
* service: Update function tablesLioncash2019-11-121-0/+24
| | | | | | Keeps the function tables up to date. Updated based off information from Switchbrew.
* Merge pull request #2859 from Morph1984/hidDavid2019-11-061-86/+118
|\ | | | | hid: Stub SetNpadJoyAssignmentModeSingle and GetNpadHandheldActivationMode
| * hid: Stub SetNpadJoyAssignmentModeSingle and reorganize service commandsMorph2019-10-071-86/+118
| |
* | hid: Implement DeactivateNpadMorph2019-10-071-1/+12
|/ | | | Makes use of the already existing DeactivateController function.
* service/hid: Silence -Wunused and -WswitchReinUsesLisp2019-10-051-2/+4
|
* RebasedDavid Marcec2019-09-221-1/+1
|
* RebaseDavid Marcec2019-09-221-3/+3
|
* Deglobalize System: IRSDavid Marcec2019-09-221-1/+1
|
* Deglobalize System: HidDavid Marcec2019-09-221-13/+14
|
* clang-formatMorph19842019-09-041-2/+2
|
* Update hid.cppMorph19842019-09-041-2/+23
|
* hid:StartLrAssignmentMode, hid:StopLrAssignmentMode, hid:SwapNpadAssignmentDavid Marcec2019-07-011-3/+47
| | | | 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
* service: Update service function tablesLioncash2019-04-111-0/+15
| | | | Updates function tables based off information from SwitchBrew.
* core/core_timing: Make callback parameters consistentLioncash2019-03-241-5/+5
| | | | | | | | | | | In some cases, our callbacks were using s64 as a parameter, and in other cases, they were using an int, which is inconsistent. To make all callbacks consistent, we can just use an s64 as the type for late cycles, given it gets rid of the need to cast internally. While we're at it, also resolve some signed/unsigned conversions that were occurring related to the callback registration.
* core_timing: Convert core timing into a classLioncash2019-02-161-7/+11
| | | | | | | | | | | 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-10/+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-291-120/+124
|
* hid: Make Hid service accessible and add GetPressStateZach Hilman2018-12-281-459/+416
|
* hid: Fix SetNpadJoyHoldType and improve logging.bunnei2018-12-211-44/+163
|
* core: Port all current usages of Event to Readable/WritableEventZach Hilman2018-11-291-1/+2
|
* Changed logging to be "Log before execution", Added more error logging, all services should now log on some levelDavid Marcec2018-11-261-40/+76
|
* Changed polling rate of hid and Right joycon rotationDavid Marcec2018-11-191-2/+2
|
* Added SetIsPalmaAllConnectable, SetPalmaBoostModeDavid Marcec2018-11-161-2/+14
| | | | Currently unclear what these do yet, will be researched at a later time when we want to implement palma.
* Fixed HID crash when launching more than 1 game & signaled syleset change eventDavid Marcec2018-11-021-0/+2
| | | | This should fix crashes when launching multiple games in yuzu
* hid: Update service function table for hidbusLioncash2018-10-211-0/+1
| | | | Updated based off information provided by Switchbrew.
* hid: Update service function tablesLioncash2018-10-191-6/+45
| | | | Updated based off information provided by Switchbrew.
* Using dual joycons as the default controllerDavid Marcec2018-10-171-3/+1
| | | | Reason for the change is to allow both docked and undocked mode to work
* WipDavid Marcec2018-10-121-1/+5
|
* Dynamically decide handheld variant based on supported npad id priorityDavid Marcec2018-10-111-0/+4
| | | | Kirby input still doesn't work, should fix a lot of other games
* Added BeginPermitVibrationSession and EndPermitVibrationSessionDavid Marcec2018-10-101-2/+18
| | | | Used by Mario Party
* Added GetLedPattern and HandheldVariantDavid Marcec2018-10-101-2/+9
| | | | 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-1/+4
| | | | Fixes arms
* Addressed changes for better hidDavid Marcec2018-10-101-37/+30
|
* "Better Hid" rework part 1David Marcec2018-10-101-244/+189
|
* Fixed GetAccountId stub, Added error code for OpenDirectory and added ActivateNpadWithRevisionDavid Marcec2018-09-191-1/+7
| | | | With these, `Nintendo Entertainment System - Nintendo Switch Online` loads
* Added ActivateGestureDavid Marcec2018-09-181-1/+7
|
* Added StopSixAxisSensorDavid Marcec2018-09-181-1/+7
|
* Stubbed ActivateConsoleSixAxisSensor & StartConsoleSixAxisSensorDavid Marcec2018-09-181-2/+14
|
* Port #4182 from Citra: "Prefix all size_t with std::"fearlessTobi2018-09-151-1/+1
|
* hid: Implement ReloadInputDevicesfearlessTobi2018-09-091-4/+4
|
* kernel: Eliminate kernel global stateLioncash2018-08-291-3/+6
| | | | | | | | | | | | | | | | | | | | | | As means to pave the way for getting rid of global state within core, This eliminates kernel global state by removing all globals. Instead this introduces a KernelCore class which acts as a kernel instance. This instance lives in the System class, which keeps its lifetime contained to the lifetime of the System class. This also forces the kernel types to actually interact with the main kernel instance itself instead of having transient kernel state placed all over several translation units, keeping everything together. It also has a nice consequence of making dependencies much more explicit. This also makes our initialization a tad bit more correct. Previously we were creating a kernel process before the actual kernel was initialized, which doesn't really make much sense. The KernelCore class itself follows the PImpl idiom, which allows keeping all the implementation details sealed away from everything else, which forces the use of the exposed API and allows us to avoid any unnecessary inclusions within the main kernel header.
* hid: Move core include to cpp fileLioncash2018-08-241-0/+1
| | | | | This isn't required to be in the header. Instead, directly include what this header needs and move it to the cpp file where it belongs.
* hid: disable clang-format around tablesLioncash2018-08-121-4/+5
| | | | Prevents clang-format from butchering them.
* hid: Stub DisconnectNpad()Lioncash2018-08-121-1/+7
| | | | This is required by ARMS.
* hid: fix IsSixAxisSensorAtRest() responsemailwl2018-08-081-1/+1
|
* services/hid: Add ActivateNpadWithRevision() to the hid function info arrayLioncash2018-08-071-0/+1
| | | | Updated based off the information on Switch Brew.
* Add some HID commands (#843)Hexagon122018-07-301-2/+16
| | | | | | * Added some HID commands * Addressed comments
* service/hid: Add the hidbus, hid:dbg, hid:sys, and hid:tmp servicesLioncash2018-07-261-0/+220
|
* service/hid: Add the xcd:sys serviceLioncash2018-07-261-0/+2
|
* service/hid: Add irs servicesLioncash2018-07-261-0/+3
|
* core_timing: Split off utility functions into core_timing_utilMerryMage2018-07-241-0/+1
|
* hid: Use a ranged-for loops in UpdatePadCallbackLioncash2018-07-191-7/+3
| | | | | Modernizes the loops themselves while also getting rid of a signed/unsigned comparison in a loop condition.
* Fill in more fields in TouchScreenEntryTouchZach Hilman2018-07-181-4/+9
|
* Single touch supportZach Hilman2018-07-181-4/+19
|
* HID: Update controllers less oftenJames Rowe2018-07-151-3/+3
|
* hid: Fix timestamps and controller type.bunnei2018-07-111-7/+5
| | | | - This fixes user input in SMO.
* Rename logging macro back to LOG_*James Rowe2018-07-031-25/+25
|
* Narrow down filter of layout configsZach Hilman2018-06-141-9/+5
|
* Move loop condition to free functionZach Hilman2018-06-131-4/+9
|
* Avoid initializing single-joycon layouts with handheld controllerZach Hilman2018-06-131-1/+4
|
* hid: Update all layouts and only show handheld as connected, fixes libnx input for P1_AUTOshinyquagsire232018-06-121-1/+2
|
* add IPC CommandType & Some HID FunctionInfo (#487)greggameplayer2018-05-301-0/+30
| | | | | | | | | | * add some CommandType * add some hid FunctionInfo * add some other HID FunctionInfo * delete non useful comments
* hid: Tweaks, Analog Sticks (#435)Max Thomas2018-05-071-56/+134
| | | | | | | | | | | | | | * hid: Update mouse/keyboard state * hid: Working analog sticks * hid: Nits * hid: Nits * hid: Update mystery sections * hid: Tweaks
* core_timing: Namespace all functions and constants in core_timing's headerLioncash2018-04-301-3/+3
| | | | All of these variables and functions are related to timings and should be within the namespace.
* hid: Move logging macros over to new fmt-compatible onesLioncash2018-04-241-25/+25
|
* service: Use nested namespace specifiers where applicableLioncash2018-04-201-4/+2
| | | | Tidies up namespace declarations
* Stubbed out GetPlayerLedPatternHexagon122018-04-131-1/+7
|
* Updated hid with more service names.Hexagon122018-04-101-0/+50
|
* Merge pull request #297 from bunnei/hid-touch-statebunnei2018-04-021-5/+21
|\ | | | | hid: Write empty touch screen state.
| * hid: Write empty touch screen state.bunnei2018-04-011-5/+21
| |
* | hid: Stub out GetSupportedNpadStyleSet.bunnei2018-03-311-0/+8
|/
* hid: Stub out SetNpadJoyAssignmentModeDual.bunnei2018-03-251-1/+7
|
* CoreTiming: Unschedule the pending events when an Interface is destroyed.Subv2018-03-041-0/+4
|
* Service/hid: stub some functionsmailwl2018-02-161-0/+43
|
* hid: Stub GetVibrationDeviceInfo and SendVibrationValues.bunnei2018-02-151-0/+15
|
* Service: stub some functions in am, audio, time, vi servicesmailwl2018-02-071-0/+22
|
* Service/hid: stub SetNpadHandheldActivationModemailwl2018-02-061-0/+7
|
* hid: Stub ActivateTouchScreen and SetNpadJoyHoldType.bunnei2018-02-061-2/+14
|
* hid: Stub out several functions.bunnei2018-02-051-1/+39
|
* hid: Implement CreateActiveVibrationDeviceList.bunnei2018-02-041-0/+25
|
* logger: Use Service_HID category where applicable.bunnei2018-02-041-2/+2
|
* hle: Rename RequestBuilder to ResponseBuilder.bunnei2018-01-251-2/+2
|
* service: Fix all incorrect IPC response headers.bunnei2018-01-251-11/+2
|
* Services: Added a todo about returning interfaces as domain objects in lm, hid and time.Subv2018-01-231-0/+3
|
* HID: Don't create an unnecessary port in CreateAppletResource.Subv2018-01-221-13/+13
|
* Stub OpenAudioOut and fix a issue with HID IAppletResource being created more than oncegdkchan2018-01-221-1/+6
|
* hid: Adjust timing based on actual hardwareshinyquagsire232018-01-171-3/+3
|
* hid: clang-formatshinyquagsire232018-01-171-3/+3
|
* hid: Adjust for style guideshinyquagsire232018-01-171-13/+13
|
* hid: Write to all layouts, implement circular buffers, set up controller metadata.shinyquagsire232018-01-161-38/+65
|
* hid: Bare-minimum sharedmem inputshinyquagsire232018-01-151-0/+86
|
* hid: Remove unused registered_loggers.bunnei2018-01-151-3/+0
|
* hid: Implement IAppletResource::GetSharedMemoryHandle.bunnei2018-01-151-3/+61
|
* Remove lots more 3DS-specific code.bunnei2017-10-131-422/+3
|
* Fixed type conversion ambiguityHuw Pascoe2017-09-301-1/+1
|
* HID: use TouchDevice for touch padwwylele2017-08-241-4/+8
|
* HID: fix a comment and a warningwwylele2017-08-201-2/+2
|
* HID: use MotionDevice for Accelerometer and Gyroscopewwylele2017-08-111-5/+27
|
* ResultVal: Remove MoveFrom()Yuri Kunde Schlesner2017-06-191-6/+6
| | | | | Replace it with std::move(result_val).Unwrap(), or Foo().Unwrap() in case you already have an rvalue.
* Service: Remove unnecessary includes from service.hYuri Kunde Schlesner2017-06-061-0/+2
| | | | | This has a huge fallout in terms of needing to fix other files because all service implementations included that file.
* ir: implement new 3ds HID via ir:rstwwylele2017-05-041-8/+11
|
* HID: use AnalogDevicewwylele2017-03-011-2/+9
|
* HID: use ButtonDevicewwylele2017-03-011-1/+44
|
* HID: move enable_accelerometer/gyroscope_count initialization into Init() (#2574)Weiyi Wang2017-02-171-2/+5
| | | Fixes #2556
* HID: reset acceleroeter and gyroscope index in Initwwylele2017-01-201-0/+2
|
* CoreTiming: use named constant for ARM11 clock ratewwylele2017-01-161-3/+3
|
* HID: manages updating itself using correct tickswwylele2017-01-161-55/+93
|
* core: Move emu_window and key_map into coreMerryMage2016-12-231-1/+1
| | | | * Removes circular dependences (common should not depend on core)
* hid: Get rid of a double -> float truncation warningLioncash2016-12-151-1/+2
| | | | float literals need to have the 'f' prefix.
* Use negative priorities to avoid special-casing the self-includeYuri Kunde Schlesner2016-09-211-1/+1
|
* Remove empty newlines in #include blocks.Emmanuel Gil Peyrot2016-09-211-8/+4
| | | | | | | This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
* Manually tweak source formatting and then re-run clang-formatYuri Kunde Schlesner2016-09-191-5/+4
|
* Sources: Run clang-format on everything.Emmanuel Gil Peyrot2016-09-181-22/+25
|
* hid: add missing headerwwylele2016-06-111-0/+2
|
* fixup! fixup! Refactor input systemwwylele2016-05-151-1/+1
|
* Refactor input subsystemwwylele2016-05-151-32/+36
|
* Kernel/SharedMemory: Properly implemented shared memory support.Subv2016-05-131-2/+3
| | | | | | | Applications can request the kernel to allocate a piece of the linear heap for them when creating a shared memory object. Shared memory areas are now properly mapped into the target processes when calling svcMapMemoryBlock. Removed the APT Shared Font hack as it is no longer needed.
* use reference instead of pointerwwylele2016-03-261-9/+9
|
* implement GyroscopeCalibrateParamwwylele2016-03-251-8/+7
|
* implement accel and gyro backendwwylele2016-03-221-3/+90
|
* hid: fix pad updatewwylele2016-03-131-1/+1
|
* svc: Make ResetType an enum classLioncash2016-03-121-5/+5
|
* BitField: Make trivially copyable and remove assignment operatorMerryMage2016-02-121-1/+1
|
* services: Get rid of unnecessary includesLioncash2016-02-021-1/+0
|
* general: Silence some warnings when using clangLioncash2015-09-161-2/+2
|
* Move input values into an arrayJames Rowe2015-07-281-0/+10
|
* CitraQt: Cleanup includes.Emmanuel Gil Peyrot2015-06-281-0/+1
|
* Remove every trailing whitespace from the project (but externals).Emmanuel Gil Peyrot2015-05-291-1/+1
|
* hid: Get rid of undefined behaviorLioncash2015-05-271-2/+2
| | | | Modifying a variable twice across a sequence point.
* HID: Stub DisableAccelerometer and DisableGyroscopeLowpurpasmart962015-05-231-0/+20
|
* Kernel: Capture SharedMemory attributes at creation, not when mappingYuri Kunde Schlesner2015-05-111-2/+4
|
* Common: Remove common.hYuri Kunde Schlesner2015-05-071-0/+2
|
* Services: Initialize all state variables at bootup.bunnei2015-05-021-8/+14
|
* Services: Stubs and minor changespurpasmart962015-04-031-3/+3
|
* Merge pull request #655 from purpasmart96/hid_fixesbunnei2015-03-171-0/+32
|\ | | | | HID: Proper Signal Interrupts for EnableAccelerometer & EnableGyroscopeLow along with a stub for GetSoundVolume
| * HID: Proper Signal Interrupts for EnableAccelerometer & EnableGyroscopeLow alongpurpasmart962015-03-171-0/+32
| | | | | | | | with a stub for GetSoundVolume
* | arm_interface: Get rid of GetTicks.Lioncash2015-03-161-3/+3
|/ | | | Removes a TODO.
* HID: Removed unnecessary global variables.bunnei2015-03-111-48/+42
|
* HID: Added additional variable comments and some code cleanups.bunnei2015-03-111-2/+6
|
* HID: Complete refactor of pad/touch input to fix threading issues.bunnei2015-03-111-81/+23
|
* HID: Cleanup how `next_touch_index` is calculated for Pad and touch.bunnei2015-03-101-2/+2
|
* HID: Changed TouchDataEntry `valid` to a BitField and added some doc strings.bunnei2015-03-101-1/+1
|
* HID: Added functions to emulate the touchpad.bunnei2015-03-101-0/+48
|
* HID: Moved some docstrings to the header.bunnei2015-03-101-23/+2
|
* HID: Refactored shared memory decoding for touchpad support.bunnei2015-03-101-21/+30
|
* Services: Moved the PTM and APT services to their own folderSubv2015-03-041-0/+32
| | | | | | This coincidentally fixes an issue about the PTM service failing to create its SharedExtSaveData archive due to the FS service not being initialized by the time the creating code runs. Ideally I'd like to move each process to its own folder, and have a single file per process that registers the service classes, which would be in their own files inside that folder. Then each service class would just call functions from the process to complete the commands.
* Kernel: Stop creating useless Handles during object creationYuri Kunde Schlesner2015-02-021-6/+6
| | | | | They're finally unnecessary, and will stop cluttering the application's handle table.
* HID: Fix crash when pressing a key when the emulator is stoppedYuri Kunde Schlesner2015-02-021-0/+2
|
* Kernel: Convert Event to not use HandlesYuri Kunde Schlesner2015-01-301-13/+15
|
* Kernel: Convert SharedMemory to not use HandlesYuri Kunde Schlesner2015-01-301-3/+3
|
* Added HID_SPVR service and split HID_U implementation into service/hid/hid.xxxarchshift2015-01-211-0/+138