Some more Work done with Microphone, added a Semi-decent way of checking for Mic Button

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@888 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Sonicadvance1
2008-10-16 01:15:15 +00:00
parent b5b0a4efcb
commit dfd332e149
8 changed files with 119 additions and 112 deletions

View File

@ -459,6 +459,10 @@ void X11_Read(int _numPAD, SPADStatus* _pPADStatus)
}
if (KeyStatus[CTL_START]){_pPADStatus->button |= PAD_BUTTON_START;}
if (KeyStatus[CTL_MIC])
_pPADStatus->MicButton = true;
else
_pPADStatus->MicButton = false;
}
@ -630,7 +634,8 @@ void LoadConfig()
XK_g,
XK_f,
XK_h,
XK_Shift_L //halfpress
XK_Shift_L, //halfpress
XK_p
};
#endif
IniFile file;

View File

@ -42,6 +42,7 @@ enum
CTL_DPADLEFT,
CTL_DPADRIGHT,
CTL_HALFPRESS,
CTL_MIC,
NUMCONTROLS
};
@ -69,6 +70,7 @@ static const char* controlNames[] =
"D-Pad_left",
"D-Pad_right",
"half_press_toggle",
"Mic-button",
};
struct SPads {