Lioncash
f6c5a48dd1
hid: Update service function tables
Updated based off information provided by Switchbrew.
7 years ago
David Marcec
8144fa42bd
Using dual joycons as the default controller
Reason for the change is to allow both docked and undocked mode to work
7 years ago
David Marcec
98b760c645
Wip
7 years ago
David Marcec
85b0d9a7be
Dynamically decide handheld variant based on supported npad id priority
Kirby input still doesn't work, should fix a lot of other games
7 years ago
David Marcec
9e924f2ef2
Added BeginPermitVibrationSession and EndPermitVibrationSession
Used by Mario Party
7 years ago
David Marcec
3d75c9cd7a
Added GetLedPattern and HandheldVariant
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)
7 years ago
David Marcec
f43815af5d
Added the ability to "disconnect" individual npads
Fixes arms
7 years ago
David Marcec
5857aea94e
Addressed changes for better hid
7 years ago
David Marcec
56f35ab262
"Better Hid" rework part 1
7 years ago
David Marcec
cbc7ad8f6d
Fixed GetAccountId stub, Added error code for OpenDirectory and added ActivateNpadWithRevision
With these, `Nintendo Entertainment System - Nintendo Switch Online` loads
7 years ago
David Marcec
de9604d63e
Added ActivateGesture
7 years ago
David Marcec
a8b1c7763b
Added StopSixAxisSensor
7 years ago
David Marcec
717889e93c
Stubbed ActivateConsoleSixAxisSensor & StartConsoleSixAxisSensor
7 years ago
fearlessTobi
63c2e32e20
Port #4182 from Citra: "Prefix all size_t with std::"
7 years ago
fearlessTobi
500e81429a
hid: Implement ReloadInputDevices
7 years ago
Lioncash
0cbcd6ec9a
kernel: Eliminate kernel global state
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.
7 years ago
Lioncash
ec59e4a6c5
hid: Move core include to cpp file
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.
7 years ago
Lioncash
63a70c253e
hid: disable clang-format around tables
Prevents clang-format from butchering them.
7 years ago
Lioncash
9e74d6238e
hid: Stub DisconnectNpad()
This is required by ARMS.
7 years ago
mailwl
3c498189b6
hid: fix IsSixAxisSensorAtRest() response
8 years ago
Lioncash
890e543304
services/hid: Add ActivateNpadWithRevision() to the hid function info array
Updated based off the information on Switch Brew.
8 years ago
Hexagon12
fd797e2424
Add some HID commands ( #843 )
* Added some HID commands
* Addressed comments
8 years ago
Lioncash
1121622dc1
service/hid: Add the hidbus, hid:dbg, hid:sys, and hid:tmp services
8 years ago
Lioncash
7550c2c866
service/hid: Add the xcd:sys service
8 years ago
Lioncash
82cb5f030d
service/hid: Add irs services
8 years ago
MerryMage
44646e2ea0
core_timing: Split off utility functions into core_timing_util
8 years ago
Lioncash
a37a47448d
hid: Use a ranged-for loops in UpdatePadCallback
Modernizes the loops themselves while also getting rid of a signed/unsigned
comparison in a loop condition.
8 years ago
Zach Hilman
c337272ca9
Fill in more fields in TouchScreenEntryTouch
8 years ago
Zach Hilman
f2f368014e
Single touch support
8 years ago
James Rowe
7d209b3c9f
HID: Update controllers less often
8 years ago
bunnei
12a6996262
hid: Fix timestamps and controller type.
- This fixes user input in SMO.
8 years ago
James Rowe
638956aa81
Rename logging macro back to LOG_*
8 years ago
Zach Hilman
ac88d3e89f
Narrow down filter of layout configs
8 years ago
Zach Hilman
a353322b58
Move loop condition to free function
8 years ago
Zach Hilman
50153a1cb2
Avoid initializing single-joycon layouts with handheld controller
8 years ago
shinyquagsire23
2f9c0e7c7e
hid: Update all layouts and only show handheld as connected, fixes libnx input for P1_AUTO
8 years ago
greggameplayer
94fecef137
add IPC CommandType & Some HID FunctionInfo ( #487 )
* add some CommandType
* add some hid FunctionInfo
* add some other HID FunctionInfo
* delete non useful comments
8 years ago
Max Thomas
266703b50e
hid: Tweaks, Analog Sticks ( #435 )
* hid: Update mouse/keyboard state
* hid: Working analog sticks
* hid: Nits
* hid: Nits
* hid: Update mystery sections
* hid: Tweaks
8 years ago
Lioncash
0197e28cc9
core_timing: Namespace all functions and constants in core_timing's header
All of these variables and functions are related to timings and should be within the namespace.
8 years ago
Lioncash
9cd7485cd7
hid: Move logging macros over to new fmt-compatible ones
8 years ago
Lioncash
ccca5e7c28
service: Use nested namespace specifiers where applicable
Tidies up namespace declarations
8 years ago
Hexagon12
56d2958aaf
Stubbed out GetPlayerLedPattern
8 years ago
Hexagon12
2d2de1422e
Updated hid with more service names.
8 years ago
bunnei
72b90494e7
hid: Write empty touch screen state.
8 years ago
bunnei
b6b7d78ded
hid: Stub out GetSupportedNpadStyleSet.
8 years ago
bunnei
bde3e667be
hid: Stub out SetNpadJoyAssignmentModeDual.
8 years ago
Subv
248881fa7f
CoreTiming: Unschedule the pending events when an Interface is destroyed.
8 years ago
mailwl
6797d4a907
Service/hid: stub some functions
8 years ago
bunnei
e017184445
hid: Stub GetVibrationDeviceInfo and SendVibrationValues.
8 years ago
mailwl
335096e19a
Service: stub some functions in am, audio, time, vi services
8 years ago