From 3790a16ece95733cb546069766346c6563ae0c52 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Sun, 9 Oct 2011 01:10:47 -0700 Subject: [PATCH] billliarrddd...here is how to set the button bit --- Source/Core/Core/Src/HW/EXI_DeviceMic.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/Src/HW/EXI_DeviceMic.cpp b/Source/Core/Core/Src/HW/EXI_DeviceMic.cpp index b2bb38d504..8e37fe7d75 100644 --- a/Source/Core/Core/Src/HW/EXI_DeviceMic.cpp +++ b/Source/Core/Core/Src/HW/EXI_DeviceMic.cpp @@ -30,6 +30,9 @@ #include +#include "GCPadStatus.h" +#include "GCPad.h" + static bool pa_init = false; void CEXIMic::StreamLog(const char *msg) @@ -204,7 +207,11 @@ void CEXIMic::TransferByte(u8 &byte) case cmdGetStatus: if (pos == 0) - status.button = 0;// TODO + { + SPADStatus silly; + Pad::GetStatus(0, &silly); + status.button = !!(silly.button & PAD_BUTTON_A); + } byte = status.U8[pos ^ 1];