Commit graph

74 commits

Author SHA1 Message Date
ndeadly
c6d318c90a btdrv-mitm: overhaul outgoing report handling 2020-08-25 02:05:19 +02:00
ndeadly
d333b39394 btdrv-mitm: simplify controller base types 2020-08-24 22:47:27 +02:00
ndeadly
30a8bed0cd btdrv-mitm: misc. minor changes 2020-08-24 22:42:05 +02:00
ndeadly
00b3bc98a4 btdrv-mitm: move some functionality out of SwitchController and into EmulatedSwitchController 2020-08-18 23:47:44 +02:00
ndeadly
5ef5a2f143 btdrv-mitm: set proper battery info when makeing fake subcmd response 2020-08-18 23:44:24 +02:00
ndeadly
78bd785fc0 btdrv-mitm: move FakeSubCmdResponse function into EmulatedSwitchController class 2020-08-18 21:49:11 +02:00
ndeadly
73532cfc9f btdrv-mitm: rename FakeSwitchController to EmulatedSwitchController 2020-08-17 23:17:02 +02:00
ndeadly
ec37e65e69 btdrv-mitm: simplify emulated SPI flash reads to return uninitialised data (0xff) when possible 2020-08-17 22:25:43 +02:00
ndeadly
4cef65f290 btdrv-mitm: make wiimote nunchuck extension work correctly 2020-08-15 00:33:37 +02:00
ndeadly
5c91c89628 btdrv-mitm: fix WiiNunchuckExtensionData struct 2020-08-12 01:30:03 +02:00
ndeadly
561c79a658 btdrv-mitm: change signature of identifyController function 2020-08-12 01:16:32 +02:00
ndeadly
70dc851c16 btdrv-mitm: request status report on init and move empty contrsuctor into header 2020-08-12 01:14:50 +02:00
ndeadly
1aa837c4a7 btdrv-mitm: fix mapping of wii classic controller analog sticks 2020-08-12 01:06:05 +02:00
ndeadly
c9803cfe9c btdrv-mitm: Fix WiiClassicControllerButtonData struct 2020-08-12 01:04:32 +02:00
ndeadly
9c5fcf4d33 btdrv-mitm: remove convert8BitBatteryLevel function 2020-08-12 01:02:47 +02:00
ndeadly
26a44f84b7 btdrv-mitm: correct dualshock4 battery level reporting 2020-08-08 02:05:41 +02:00
ndeadly
3a847c82d1 btdrv-mitm: set dualshock4 state on initialize to make sure the controller is recognised quickly 2020-08-07 23:30:27 +02:00
ndeadly
e7fddf2a2b btdrv-mitm: factor duplicate dualshock4 button mapping code into its own method 2020-08-07 02:12:57 +02:00
ndeadly
2b227e991c btdrv-mitm: set charging flag for xbox one controller 2020-08-06 21:33:41 +02:00
ndeadly
dcfc88fcd8 btdrv-mitm: fix xbox one battery level reporting 2020-08-06 21:17:55 +02:00
ndeadly
d6cc6e9465 btdrv-mitm: update xbox one controller handling to work with latest controller firmware 2020-08-05 23:18:54 +02:00
ndeadly
e275318953 btdrv-mitm: misc cleanup 2020-08-04 22:19:12 +02:00
ndeadly
7148c02125 btdrv-mitm: move another empty constructor into header 2020-08-04 22:16:42 +02:00
ndeadly
ad3cf4db74 btdrv-mitm: misc code cleanup 2020-07-30 22:21:37 +02:00
ndeadly
c5a5b1f456 btdrv-mitm: move empty constructor definitions into headers 2020-07-30 22:07:26 +02:00
ndeadly
4fae9c88cd btdrv-mitm: move joycon and pro controller class definitions into their own headers to match wii controllers 2020-07-30 22:05:46 +02:00
ndeadly
75938d205c btdrv-mitm: refactor wii controller code and add initial support for extension controllers 2020-07-30 22:04:15 +02:00
ndeadly
51e1ea44ae btdrv-mitm: move pro controller name string to single location in controller manager 2020-07-28 00:57:59 +02:00
ndeadly
200b6f2dda btdrv-mitm: handle outgoing hid reports in controller classes rather than main mitm code 2020-07-27 19:42:40 +02:00
ndeadly
a755b81a0f btdrv-mitm: send init packet to xbox one controllers upon connection 2020-07-27 19:39:49 +02:00
ndeadly
e3ee7f348a btdrv-mitm: remove bluetooth address argument from wii controller functions 2020-07-27 19:39:09 +02:00
ndeadly
0e5fc4200f btdrv-mitm: use initialisation lists in constructors 2020-07-21 12:15:52 +02:00
ndeadly
494dbf5e2f btdrv-mitm: rearrange some report definitions 2020-07-21 12:13:28 +02:00
ndeadly
b9747b5f95 btdrv-mitm: misc. code cleanup 2020-07-16 23:19:46 +02:00
ndeadly
fe49813bee btdrv-mitm: detect official joycons correctly when they have random hardware ids due to pairing via rails 2020-07-12 15:08:49 +02:00
ndeadly
d2068b7912 btdrv-mitm: use btdrvWriteData to send ds4 report to be consistent with other output reports 2020-07-12 01:26:09 +02:00
ndeadly
59158118e3 btdrv-mitm: misc. minor improvements 2020-07-11 23:53:30 +02:00
ndeadly
88e24fcac6 btdrv-mitm: add code to report controller battery level 2020-07-11 23:19:56 +02:00
ndeadly
8802a7b9ee btdrv-mitm: forgot to track fakeswitchcontroller 2020-07-11 21:11:13 +02:00
ndeadly
d300272ae9 btdrv-mitm: move controllermanager code into controllers namespace 2020-07-11 21:10:38 +02:00
ndeadly
13f3cb66cb btdrv-mitm: define more wii hid reports, implement queryStatus function to check wii controller state 2020-07-11 20:30:17 +02:00
ndeadly
7ab2263cdb btdrv-mitm: replace BluetoothController class with SwitchController, define subclass FakeSwitchController to inherit non-native controller classes from 2020-07-11 20:26:55 +02:00
ndeadly
154c6a441f btdrv-mitm: further improvements to controller reports 2020-07-11 15:24:00 +02:00
ndeadly
c87a46a39c btdrv-mitm: rename scale_factor variable to stickScaleFactor 2020-07-11 13:52:56 +02:00
ndeadly
89d98dc606 btdrv-mitm: remove uses of HidData, improve controller hid report structs, better namespace usage 2020-07-11 13:43:21 +02:00
ndeadly
23653904e8 btdrv-mitm: call member functions through 'this' pointer 2020-07-10 22:03:20 +02:00
ndeadly
f64c59b69f btdrv-mitm: add handler for xbox one battery status report (0x04) 2020-07-10 22:02:24 +02:00
ndeadly
4536cf6abd btdrv-mitm: log unhandled report ids as hex 2020-07-10 21:41:00 +02:00
ndeadly
d85142c407 btdrv-mitm: use the same player led colours as ps4 console for dualshock4 controller 2020-07-10 21:37:31 +02:00
ndeadly
e8e5553ee4 btdrv-mitm: forgot to save wiimote header 2020-07-10 00:52:47 +02:00