mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
billliarrddd...here is how to set the button bit
This commit is contained in:
parent
ade9485aac
commit
3790a16ece
@ -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];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user