mirror of
https://github.com/ndeadly/MissionControl
synced 2024-11-23 12:53:17 +00:00
btdrv-mitm: scale wii u pro controller stick coordinates
This commit is contained in:
parent
7a3c629cd1
commit
6b260ffa9e
1 changed files with 4 additions and 4 deletions
|
@ -70,12 +70,12 @@ namespace controller {
|
|||
|
||||
void WiiUProController::handleInputReport0x34(const WiiUProReportData *src, SwitchReportData *dst) {
|
||||
packStickData(&dst->report0x30.left_stick,
|
||||
src->report0x34.left_stick_x,
|
||||
src->report0x34.left_stick_y
|
||||
((3 * (src->report0x34.left_stick_x - STICK_ZERO)) >> 1) + STICK_ZERO,
|
||||
((3 * (src->report0x34.left_stick_y - STICK_ZERO)) >> 1) + STICK_ZERO
|
||||
);
|
||||
packStickData(&dst->report0x30.right_stick,
|
||||
src->report0x34.right_stick_x,
|
||||
src->report0x34.right_stick_y
|
||||
((3 * (src->report0x34.right_stick_x - STICK_ZERO)) >> 1) + STICK_ZERO,
|
||||
((3 * (src->report0x34.right_stick_y - STICK_ZERO)) >> 1) + STICK_ZERO
|
||||
);
|
||||
|
||||
dst->report0x30.buttons.dpad_down = !src->report0x34.buttons.dpad_down;
|
||||
|
|
Loading…
Reference in a new issue