summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/hid.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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