From bf7ca323a079e48b320438f8f56708f8214d5f61 Mon Sep 17 00:00:00 2001 From: ndeadly <24677491+ndeadly@users.noreply.github.com> Date: Mon, 7 Sep 2020 10:34:32 +0200 Subject: [PATCH] btdrv-mitm: correct button layout for xiaomi controller --- btdrv-mitm/source/controllers/xiaomi_controller.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/btdrv-mitm/source/controllers/xiaomi_controller.hpp b/btdrv-mitm/source/controllers/xiaomi_controller.hpp index 58b3051..cfe8d06 100644 --- a/btdrv-mitm/source/controllers/xiaomi_controller.hpp +++ b/btdrv-mitm/source/controllers/xiaomi_controller.hpp @@ -37,11 +37,11 @@ namespace ams::controller { } __attribute__((packed)); struct XiaomiButtonData { - uint8_t B : 1; uint8_t A : 1; + uint8_t B : 1; uint8_t : 1; - uint8_t Y : 1; uint8_t X : 1; + uint8_t Y : 1; uint8_t : 1; uint8_t L1 : 1; uint8_t R1 : 1;