Commit graph

139 commits

Author SHA1 Message Date
ndeadly
b805715e73 mc.mitm: move common virtual spi flash motion calibration initialisation into EmulatedSwitchController 2022-04-06 00:07:22 +10:00
ndeadly
e6e42d44c3 mc.mitm: apply correct motion calibration for dualshock4 2022-04-06 00:07:22 +10:00
ndeadly
22fdf369f5 mc.mitm: fix incorrect dynamic array allocation 2022-04-06 00:07:22 +10:00
ndeadly
ba41708770 mc.mitm: manually calibrate wii motion controls 2022-04-06 00:07:22 +10:00
ndeadly
86e8f3972a mc.mitm: refactor controller classes and add initial motion controls support for dualshock4 and wii motionplus 2022-04-06 00:07:18 +10:00
ndeadly
1bb3594e24 mc.mitm: add basic functionality to run async code in a worker thread and receive a response 2022-04-05 23:56:23 +10:00
ndeadly
18c7453530 mc.mitm: return shared_ptr from LocateHandler function instead of raw pointer 2022-04-05 23:56:23 +10:00
ndeadly
c2402888a6 mc.mitm: use shared_ptr for controller list and disconnect controller that fails to initialise instead of aborting 2022-04-05 23:56:23 +10:00
ndeadly
0081027385 mc.mitm: refactor hid report handling functions 2022-04-05 23:56:23 +10:00
ndeadly
863ce5ec83 mc.mitm: clean up thread initialisation code and make consistent 2022-04-05 23:56:23 +10:00
ndeadly
b663d8961a Embed build date in module 2022-04-05 23:56:22 +10:00
ndeadly
213e5f4a9a mc.mitm: handle imu sensitivity settings in subcommands 2022-04-05 23:56:17 +10:00
ndeadly
ac6999cf40 mc.mitm: correct motion control values to use signed integers 2022-04-05 23:52:50 +10:00
ndeadly
b64a83ada5 mc.mitm: correct coordinate systems according to recorded data observations 2022-04-05 23:52:50 +10:00
ndeadly
818a3249e8 Add current state of experimental code 2022-04-05 23:52:46 +10:00
ndeadly
60c17b8d54 mc.mitm: define switch motion calibration data 2022-04-05 23:50:44 +10:00
ndeadly
131c48654a mc.mitm: add definition for dualshock4 feature report 0x05 and calibration data 2022-04-05 23:50:44 +10:00
ndeadly
52b1f7f0a3 mc.mitm: enable and naively map motion controls for dualshock4 and dualsense controllers 2022-04-05 23:50:44 +10:00
ndeadly
374c1781c5 mc.mitm: allow for handling of hid set and get reports 2022-04-05 23:50:44 +10:00
ndeadly
52b478550b mc.mitm: add methods for requesting ds4 version info and calibration data 2022-04-05 23:50:44 +10:00
ndeadly
bb805477f6 слава україні 2022-04-05 23:32:49 +10:00
ndeadly
419c80e8f2 Add missing system_module.mk 2022-04-05 22:56:12 +10:00
ndeadly
34bd9f7796 mc.mitm: SwapBytes -> SwapEndian 2022-04-05 13:50:06 +10:00
ndeadly
21f9613316 mc.mitm: support for g910 wireless bluetooth controller 2022-03-27 22:40:57 +11:00
ndeadly
a55955708e mc.mitm: modifications to build with latest libstratosphere 2022-03-24 17:32:43 +11:00
ndeadly
68e5d13164 mc.mitm: clean up initialisation of threads 2022-02-08 07:14:07 +01:00
ndeadly
8d6089a8b5 mc.mitm: flag SetTsi command as unsupported for powera moga controllers 2022-01-20 06:30:38 +01:00
ndeadly
56eb9c3f22 mc.mitm: fix for nested designated struct initialisation compiler errors on latest devkitA64 2022-01-11 04:36:50 +01:00
Banz99
6643d726c1
Enable subcmd rumble only when not disabled globally (#411)
This should fix the recent reports of users incapable of disabling rumble.
2021-12-17 15:10:55 +01:00
ndeadly
0489e3090c mc.mitm: flag SetTsi command as unsupported for xiaomi and steelseries free controllers 2021-12-05 11:53:15 +01:00
Philipp Seiler
fab069c75f
Hyperkin Scout: Wrong Button layout. A / B were swapped (#400) 2021-12-01 16:42:13 +01:00
ndeadly
6409b356c5
mc.mitm: add support for hyperkin scout controller 2021-12-01 11:02:02 +01:00
ndeadly
3a643a8d34 mc.mitm: remove sleeps on wii extension controller init 2021-11-17 09:47:45 +01:00
ndeadly
eeb37b07bc mc.mitm: take both left and right decoded motor data into account when determining rumble output 2021-11-17 00:06:00 +01:00
ndeadly
e454e304db mc.mitm: check rumble packet decoding produces valid indices into lookup tables 2021-11-12 03:00:23 +01:00
ndeadly
f0c55aaf33
mc.mitm: add support for n64 and genesis/megadrive online controllers 2021-11-02 12:36:45 +01:00
ndeadly
ac0dad192a
mc.mitm: send initial output report to sony controllers prior to initialising the base class to improve perceived connection speed 2021-11-01 21:00:04 +01:00
ndeadly
b1d9fc906d
mc.mitm: convert static report staging buffers to instance members 2021-11-01 20:26:46 +01:00
ndeadly
b95ca984cc mc.mitm: add some missing subcommand responses 2021-11-01 12:57:30 +01:00
ndeadly
d2d12130c7 mc.mitm: correctly store/return player led pattern in response to subcommands 2021-11-01 12:56:41 +01:00
ndeadly
82bebeffd2 mc.mitm: actually take into account the value sent in enable vibration subcommand 2021-11-01 11:42:19 +01:00
ndeadly
ace83062bb mc.mitm: add default response for unrecognised subcommands 2021-11-01 01:31:20 +01:00
ndeadly
d9bed6ee2a mc.mitm: add struct definition for SetPlayerLeds subcommand 2021-11-01 01:23:57 +01:00
ndeadly
dbe5213bc0 mc.mitm: make use of GetControllerDirectory function during emulated controller initialisation 2021-10-31 23:57:44 +01:00
ndeadly
1090a80190 mc.mitm: disable sending SetTsi command to ouya controller 2021-10-31 19:28:10 +01:00
ndeadly
ea253a9e2a mc.mitm: add support for manually flagging a controller as not supporting the SetTsi command 2021-10-28 20:52:38 +02:00
ndeadly
07d73cefd9 mc.mitm: use libstratosphere shared memory types 2021-10-17 01:11:12 +02:00
ndeadly
abc80827fe Merge branch 'master' into develop
# Conflicts:
#	mc_mitm/source/controllers/emulated_switch_controller.cpp
2021-10-17 00:21:48 +02:00
SciresM
f7178ebc1b
mc: update for Atmosphere-libs refactoring (#372)
* mc: update for Atmosphere-libs refactoring

* Update for further ams-libs changes (through 1.2.0)
2021-10-17 00:15:56 +02:00
Banz99
6a1d490ff7
Add rescaled deadzones in the SPI bin file for the full 12 bit range (#376) 2021-10-12 20:54:54 +02:00