billliarrddd...here is how to set the button bit

This commit is contained in:
Shawn Hoffman 2011-10-09 01:10:47 -07:00
parent ade9485aac
commit 3790a16ece
1 changed files with 8 additions and 1 deletions

View File

@ -30,6 +30,9 @@
#include <portaudio.h>
#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];