summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/hid_server.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-11-27Fixed controller applet crashing when on FW17+FrozenAra1-0/+1
2023-11-17service: hid: Introduce firmware settings and update activate controller callsNarr the Reg1-1/+4
2023-11-16service: hid: Implement xpad callsNarr the Reg1-0/+8
2023-11-15service: hid: Split hid.cpp into individual interfacesNarr the Reg1-96/+12
2023-09-16service: hid: Implement ApplyNpadSystemCommonPolicygerman771-1/+1
2023-03-30service: hid: Implement SetNpadJoyAssignmentModeSingleWithDestinationgerman771-0/+1
Used by Let's Get Fit
2023-03-01service: move hle_ipc from kernelLiam1-110/+110
2023-02-25core: Update service function tables to 16.0.0+Narr the Reg1-0/+1
2023-02-24hid: avoid direct pointer access of transfer memory objectsLiam1-2/+8
2023-02-21service: refactor server architectureLiam1-2/+1
Converts services to have their own processes
2022-11-19service: hid: Only overclock npad controllersgerman771-1/+3
2022-09-25service: hid: Partially implement palma controllerNarr the Reg1-0/+29
2022-05-27service: hid: Implement ResetIsSixAxisSensorDeviceNewlyAssignedgerman771-0/+1
Needed by Nintendo Switch Sports
2022-05-27service: hid: Implement LoadSixAxisSensorCalibrationParameter and GetSixAxisSensorIcInformationgerman771-0/+2
Needed by Nintendo Switch Sports
2022-05-27service: hid: Implement EnableSixAxisSensorUnalteredPassthrough and IsSixAxisSensorUnalteredPassthroughEnabledgerman771-0/+2
Needed by Nintendo Switch Sports
2022-04-27service: hid: Stub IsFirmwareUpdateNeededForNotificationgerman771-0/+1
Used in Fitness Boxing 2: Rhythm & Exercise (0100073011382000)
2022-04-23service: hid: Access shared memory directlyNarr the Reg1-4/+5
2022-04-23general: Convert source file copyright comments over to SPDXMorph1-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.
2022-04-18service: hid: Improve accuracy of sixaxis functionsNarr the Reg1-0/+1
2022-02-12hid: Stub IsUsbFullKeyControllerEnabledlat9nq1-0/+1
Used by Splatoon 2, when opening the inventory from a LAN battle lobby. Reference: https://switchbrew.org/wiki/HID_services
2021-12-06service/hid: Stub SetNpadCaptureButtonAssignment and ClearNpadCaptureButtonAssignmentgerman771-0/+2
Used by ring fit adventure 1.2.0
2021-11-25core/hid: Improve accuary of mouse implementationgerman771-2/+2
2021-11-25core/hid: Improve accuracy of the keyboard implementationgerman771-0/+2
2021-11-25service/hid: Remove includes of core.h and settings.hgerman771-2/+2
2021-11-25service/hid: Use remove duplicated code, update namesgerman771-27/+0
2021-09-10hid: Stub SetTouchScreenConfigurationgerman771-0/+1
2021-07-21hle: service: Add a helper module for managing kernel objects.bunnei1-1/+12
2021-06-11hid: Stub IsFirmwareUpdateAvailableForSixAxisSensorgerman771-0/+1
2021-05-06hle: kernel: Migrate KSharedMemory to KAutoObject.bunnei1-6/+0
2021-04-08service: hid: Stub SetAnalogStickUseCenterClampMorph1-0/+1
- Used by eBASEBALLパワフルプロ野球2020
2021-02-21hid: Implement GameCube Controller VibrationsMorph1-0/+10
Implements both SendVibrationGcErmCommand and GetActualVibrationGcErmCommand, and modifies GetVibrationDeviceInfo to account for additional controllers.
2021-02-19hle: kernel: Rename SharedMemory to KSharedMemory.bunnei1-2/+2
2021-02-04Adds missing controller types and propertiesgerman1-4/+6
2021-01-24Stub Set/Get/Reset SixaxisSensorFusionParametersgerman1-0/+3
2020-11-27Stub set and get NpadCommunicationModegerman1-0/+2
2020-11-27service: Eliminate usages of the global system instanceLioncash1-4/+2
Completely removes all usages of the global system instance within the services code by passing in the using system instance to the services.
2020-11-16hid: Stub IsVibrationDeviceMountedMorph1-0/+1
- Used in Super Mario Odyssey
2020-11-16hid: Reorder all HID commandsMorph1-10/+10
Reorders all HID commands in command id order.
2020-11-16hid: Implement GetVibrationDeviceInfoMorph1-0/+16
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.
2020-09-30Stubbed EnableSixAxisSensorFusiongerman1-0/+1
2020-09-30hid: Stub HomeButtonInputProtection service commandsMorph1-0/+2
- Used in 1-2 Switch. Given that we do not emulate the functionality of the home button yet, we can stub this for now.
2020-09-24Use different timing for motiongerman1-0/+2
2020-09-05Include HID and configuration changes related to motiongerman1-0/+2
2020-07-28core_timing: Make use of uintptr_t to represent user_dataLioncash1-1/+1
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.
2020-07-16core_timing: Make TimedCallback take std::chrono::nanosecondsLioncash1-4/+3
Enforces our desired time units directly with a concrete type.
2020-06-24hid: Stub a series of "SevenSixAxisSensor" service commandsMorph1-4/+9
- Used by Captain Toad: Treasure Tracker Update 1.3.0 While we're at it, fix the input parameters for SetIsPalmaAllConnectable and SetPalmaBoostMode
2020-06-21hid: Implement Get/ResetGyroscopeZeroDriftModeMorph1-0/+2
- Used by Captain Toad Treasure Tracker
2020-06-01hid: Stub GetXpadIDsVolcaEM1-0/+1
Allows Minecraft: Nintendo Switch Edition (a.k.a. old Minecraft) to boot and go ingame
2020-05-11Stub SendKeyboardLockKeyEventDavid Marcec1-0/+1
Needed for Puchikon 4 SmileBASIC 1.0.0
2020-04-26services: hid: Stub StopSevenSixAxisSensor.M&M1-0/+1
- Used by The Legend of Zelda: Breath of the Wild v1.6.0
2020-03-27services: hid: Stub InitializeSevenSixAxisSensor.bunnei1-0/+1
- Used by Super Smash Bros. Ultimate v7.0.0.
2019-11-27core_timing: Use better reference tracking for EventType. (#3159)bunnei1-1/+1
* 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.
2019-11-25kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. (#3154)bunnei1-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.
2019-10-07hid: Implement DeactivateNpadMorph1-0/+1
Makes use of the already existing DeactivateController function.
2019-10-07hid: Stub SetNpadJoyAssignmentModeSingle and reorganize service commandsMorph1-6/+8
2019-09-22RebaseDavid Marcec1-3/+3
2019-09-22Deglobalize System: HidDavid Marcec1-3/+5
2019-09-04Update hid.hMorph19841-0/+2
2019-07-01hid:StartLrAssignmentMode, hid:StopLrAssignmentMode, hid:SwapNpadAssignmentDavid Marcec1-0/+3
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
2019-03-24core/core_timing: Make callback parameters consistentLioncash1-1/+1
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.
2019-03-05vm_manager: Remove cheat-specific ranges from VMManagerZach Hilman1-0/+2
2019-03-05controllers/npad: Add accessor for current press stateZach Hilman1-0/+1
Allows frontend/features to access pressed buttons conveniently as possible
2019-02-27service/hid: Amend forward declaration of ServiceManagerLioncash1-1/+1
The SM namespace is within the Service namespace, so this was forward declaring a type that didn't exist.
2019-02-12core_timing: Rename CoreTiming namespace to Core::TimingLioncash1-2/+2
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.
2018-12-29travis: Use correct package for linux Qt5WebEngineZach Hilman1-2/+2
2018-12-28hid: Make Hid service accessible and add GetPressStateZach Hilman1-0/+110
2018-10-10"Better Hid" rework part 1David Marcec1-399/+3
2018-08-24hid: Move core include to cpp fileLioncash1-1/+3
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.
2018-07-19hid: Use HID_NUM_LAYOUTS constant for indicating size of the layouts arrayLioncash1-1/+1
Gets rid of the use of a magic constant
2018-06-14Narrow down filter of layout configsZach Hilman1-1/+0
2018-06-13Avoid initializing single-joycon layouts with handheld controllerZach Hilman1-0/+1
2018-06-12hid: Update all layouts and only show handheld as connected, fixes libnx input for P1_AUTOshinyquagsire231-1/+1
2018-05-24Fix deadlocks caused from HID having too many layoutsDavid Marcec1-1/+1
Games such as SMO deadlock if we have more than 2 layouts
2018-05-07hid: Tweaks, Analog Sticks (#435)Max Thomas1-12/+86
* hid: Update mouse/keyboard state * hid: Working analog sticks * hid: Nits * hid: Nits * hid: Update mystery sections * hid: Tweaks
2018-04-20service: Use nested namespace specifiers where applicableLioncash1-4/+2
Tidies up namespace declarations
2018-01-17hid: Adjust for style guideshinyquagsire231-50/+55
2018-01-16hid: Write to all layouts, implement circular buffers, set up controller metadata.shinyquagsire231-1/+6
2018-01-15hid: Bare-minimum sharedmem inputshinyquagsire231-2/+2
2018-01-15hid: Remove redundant HID prefix on structs/enumsshinyquagsire231-73/+73
2018-01-15hid: Add sharedmem structsshinyquagsire231-0/+312
2018-01-15hid: Implement IAppletResource::GetSharedMemoryHandle.bunnei1-7/+6
2017-10-13Remove lots more 3DS-specific code.bunnei1-263/+3
2017-08-10HID: zero unused PadState bitswwylele1-1/+1
2017-05-04ir: implement new 3ds HID via ir:rstwwylele1-0/+10
2017-03-01Input: remove unused stuff & clean upwwylele1-34/+0
1. removed zl, zr and c-stick from HID::PadState. They are handled by IR, not HID 2. removed button handling in EmuWindow 3. removed key_map 4. cleanup #include
2017-03-01HID: use ButtonDevicewwylele1-0/+3
2017-02-11hid: remove the touch field from PadState (#2557)Weiyi Wang1-4/+0
2017-01-16HID: manages updating itself using correct tickswwylele1-3/+0
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot1-1/+0
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot1-35/+34
2016-05-15Refactor input subsystemwwylele1-3/+0
2016-03-25implement GyroscopeCalibrateParamwwylele1-1/+13
2016-03-22implement accel and gyro backendwwylele1-0/+66
2015-07-28Move input values into an arrayJames Rowe1-1/+4
2015-06-28Common: Cleanup key_map includes.Emmanuel Gil Peyrot1-7/+9
2015-05-23HID: Stub DisableAccelerometer and DisableGyroscopeLowpurpasmart961-5/+23
2015-04-03Services: Stubs and minor changespurpasmart961-3/+3
2015-03-17HID: Proper Signal Interrupts for EnableAccelerometer & EnableGyroscopeLow alongpurpasmart961-1/+29
with a stub for GetSoundVolume
2015-03-11HID: Removed unnecessary global variables.bunnei1-10/+0
2015-03-11HID: Added additional variable comments and some code cleanups.bunnei1-18/+23
2015-03-11HID: Complete refactor of pad/touch input to fix threading issues.bunnei1-30/+5
2015-03-10HID: Changed TouchDataEntry `valid` to a BitField and added some doc strings.bunnei1-3/+3
2015-03-10HID: Added static asserts to check register position in shared memory.bunnei1-2/+16
2015-03-10HID: Added functions to emulate the touchpad.bunnei1-0/+13
2015-03-10HID: Moved some docstrings to the header.bunnei1-1/+14
2015-03-10HID: Refactored shared memory decoding for touchpad support.bunnei1-12/+34
2015-03-04Services: Moved the PTM and APT services to their own folderSubv1-0/+17
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.
2015-02-22Frontends, HID: Add New 3DS specific pad buttons, and stub the touch one.Emmanuel Gil Peyrot1-0/+19
2015-01-30Kernel: Convert Event to not use HandlesYuri Kunde Schlesner1-5/+6
2015-01-30Kernel: Convert SharedMemory to not use HandlesYuri Kunde Schlesner1-1/+5
2015-01-21Added HID_SPVR service and split HID_U implementation into service/hid/hid.xxxarchshift1-19/+18
2014-12-26More services & small clean upspurpasmart961-8/+0
2014-12-21License changepurpasmart961-1/+1
2014-12-04hid_user: Pass by reference with PadButtonPress/PadButtonReleaseLioncash1-2/+2
2014-11-19Remove trailing spaces in every file but the ones imported from SkyEye, AOSP or generatedEmmanuel Gil Peyrot1-1/+1
2014-10-29Renamed souce files of services to match port namesGareth Poole1-0/+0
2014-10-26Add `override` keyword through the code.Yuri Kunde Schlesner1-1/+1
This was automated using `clang-modernize`.
2014-09-12Added support for multiple input device types for KeyMap and connected Qt.Kevin Hartman1-36/+44
2014-09-12Initial HID PAD work, with GLFW only.Kevin Hartman1-17/+70
2014-09-12Created structure for PAD.Kevin Hartman1-0/+25
2014-08-18Core: Alter the kernel string functions to use std::string instead of const char*.Lioncash1-1/+1
Most functions already operate on std::strings. This also removes the need to manually null terminate thread names.
2014-05-19- updated service(s) to be KernelObject'sbunnei1-1/+1
- various cleanups
2014-04-28removed DISALLOW_COPY_AND_ASSIGN in favor of NonCopyable classbunnei1-3/+0
2014-04-17added class stub for HID:User servicebunnei1-4/+6
2014-04-17updated service commentsbunnei1-1/+2
2014-04-16- added stubbed out GSP::Gpu service interfacebunnei1-13/+8
- various cleanups/refactors to HLE services
2014-04-16restructured hle:services completely to use function lookup tablesbunnei1-0/+39