yellows8
cde495241c
Added _hidActivateNpad/_hidDeactivateNpad for internal use in hidInitialize/hidExit. Added hidSetNpadJoyHoldType. Added _hidCmdWithInputU64 and _hidCmdWithNoInput.
2018-10-15 12:10:07 -04:00
yellows8
d4277b6d32
Added hidSetSupportedNpadIdType(), which is automatically called during init. Closes #148 , however vibration disable+enable in system-settings is still needed.
2018-10-14 21:47:26 -04:00
Vicki Pfau
7a952ab39b
hid: Uncomment function that works now
2018-09-30 16:39:51 -04:00
Vicki Pfau
8add42378b
hid: Add SixAxis sensor support
2018-09-30 16:39:51 -04:00
Vicki Pfau
68b2ad0c1e
hid: Call SetSupportedNpadStyleSet to enable additional Npad features
2018-09-27 16:23:37 -04:00
yellows8
1cc3547990
Removed TODO comment in _hidGetDeviceHandles().
2018-09-27 12:01:58 -04:00
yellows8
1267019d83
Added partial support for hid SixAxisSensor. Moved some hid ipc code into a single func for using cmds with an input u32. Moved handle-generation code from hidInitializeVibrationDevices into a new func, with some improvements + support for SixAxisSensor.
2018-09-26 22:28:40 -04:00
plutooo
74958c57ce
Use reference counting across services
2018-08-31 13:05:21 +02:00
Lioncash
12a473ecbe
hid: Correct bitwise AND for pro controllers in hidInitializeVibrationDevices()
...
LAYOUT_PROCONTROLLER is a value of zero, so the bitwise AND condition
here would always be false (TYPE_PROCONTROLLER, on the other hand is a
value of 1)
2018-08-09 14:53:26 +02:00
Jakob Dietrich
a180a36cb3
Fixed hid in sysmodules ( #135 )
2018-07-27 18:01:41 +02:00
yellows8
df203f0697
Added hidMergeSingleJoyAsDualJoy().
2018-05-18 18:42:48 -04:00
yellows8
3f75b79803
Copy the HidControllerHeader for each controller into hid state. Added disabled hidGetControllerType().
2018-05-12 13:53:11 -04:00
yellows8
f727aa669a
Added the remaining (pre-4.0.0) hid-serv vibration cmds.
2018-04-19 15:17:22 -04:00
yellows8
213676c5f8
Added hidGetHandheldMode().
2018-03-15 22:24:52 -04:00
yellows8
5e9869cc41
Added hidSendVibrationValues(). Improved hidInitializeVibrationDevices(), including changing the HidControllerLayoutType param to HidControllerType.
2018-03-14 21:47:21 -04:00
plutoo
a102c64341
Introduce atomics.c, refcounting on all services
2018-03-10 14:33:40 +01:00
plutoo
d12e99e3ad
Move ipc.h to kernel/
2018-03-10 14:03:29 +01:00
yellows8
d1cefabd12
Renamed hidInitializeVibrationDevice() to hidInitializeVibrationDevices(), and added support for optionally returning 2 handles + other changes.
2018-03-07 01:16:35 -05:00
yellows8
cbaa0e359b
Added hidPermitVibration() and hidIsVibrationPermitted().
2018-03-06 23:38:33 -05:00
yellows8
a3933c7a85
Added hid vibration.
2018-03-06 18:08:57 -05:00
yellows8
e7a4eba71c
Added hidSetNpadJoyAssignmentModeSingleByDefault() and hidSetNpadJoyAssignmentModeDual(). Check serviceIsActive() in hidExit(). Use hidSetNpadJoyAssignmentModeDual() for all controllers during hidInitialize()/hidExit().
2018-03-05 22:37:37 -05:00
plutoo
f4230f3ef0
Fix race condition in hid
2018-03-01 00:15:01 +01:00
shinyquagsire23
954a48b8fe
Add hidMouseRead, allows mouse position/velocity/scrollwheel velocity to be fetched
2018-02-22 06:48:00 +01:00
fincs
c20d372946
Clean up types.h:
...
- Move Permission to kernel/svc.h (also fix enum naming)
- Add s128, vu128, vs128
- voidfn -> VoidFn
2018-02-10 22:40:11 +01:00
plutoo
6fa8370bfb
This looks better
2018-01-22 20:11:55 +01:00
TuxSH
5abc4873d8
Include only what is really necessary...
...
add pragma once in every header, etc.
2018-01-22 18:42:57 +01:00
plutoo
e54bbc54ea
Fix codestyle for results
2018-01-21 18:40:23 +01:00
shinyquagsire23
368fbbb570
hid: joystickPosition -> JoystickPosition
2018-01-20 10:37:47 +01:00
shinyquagsire23
52e928df0e
hid: circlePosition -> joystickPosition
2018-01-20 10:37:47 +01:00
shinyquagsire23
a4dbd93b1f
hid: Add hidJoystickRead
2018-01-20 10:37:47 +01:00
yellows8
3a9451bbeb
Added CONTROLLER_P1_AUTO. Added bounds checking for id in hid{Set|Get}ControllerLayout.
2018-01-19 13:58:32 -05:00
plutoo
f70d70f029
Introducing "Service" object, implemented service override, fixing minor formatting mistakes
...
NOT TESTED :(
2018-01-12 23:29:49 +01:00
plutoo
fd4522423b
Hid stylefix
2018-01-11 22:29:16 +01:00
plutoo
7482c849fe
Introducing RwLock, make hid threadsafe
2018-01-11 22:25:49 +01:00
plutoo
bf89c7526e
Rename ipc functions before it's too late
2018-01-11 21:56:04 +01:00
shinyquagsire23
63f91dd215
Add hidTouchCount, hidTouchRead, KEY_TOUCH. Header tweaks.
2017-11-22 17:09:37 -07:00
shinyquagsire23
aa458e59f9
Add hidGetControllerLayout
2017-11-22 17:09:32 -07:00
shinyquagsire23
ffd10708ac
Variable name adjustment, fixes, clarifications
2017-11-20 12:07:50 -07:00
shinyquagsire23
0f24d05077
Brace consistency
2017-11-20 02:53:09 -07:00
shinyquagsire23
fc71b06161
Implement HID keys held/down/up
2017-11-20 02:17:30 -07:00
yellows8
d62b909757
Added hid.
2017-10-27 17:10:48 -04:00