Android: Force first mic to always be port A-2

This commit is contained in:
Ender's Games 2018-08-22 17:25:29 -04:00
parent c922d5b6a6
commit fa3c3cd94d
2 changed files with 7 additions and 1 deletions

View File

@ -402,6 +402,12 @@ JNIEXPORT void JNICALL Java_com_reicast_emulator_emu_JNIdc_setupMic(JNIEnv *env,
{ {
sipemu = env->NewGlobalRef(sip); sipemu = env->NewGlobalRef(sip);
getmicdata = env->GetMethodID(env->GetObjectClass(sipemu),"getData","()[B"); getmicdata = env->GetMethodID(env->GetObjectClass(sipemu),"getData","()[B");
// Obligatory microphone for controller A-2
delete MapleDevices[0][1];
mcfg_Create(MDT_Microphone, 0, 1);
// Allow additional microphones, if desired
for (int i = 0; i < 3; i++) for (int i = 0; i < 3; i++)
{ {
if (controller_periphs[i + 1][0] == MDT_Microphone) { if (controller_periphs[i + 1][0] == MDT_Microphone) {

View File

@ -95,7 +95,7 @@
<string name="controller_compat">Enable Compatibility Mode</string> <string name="controller_compat">Enable Compatibility Mode</string>
<string name="controller_unavailable">Gamepad IME detected!\nPlease disable native interface</string> <string name="controller_unavailable">Gamepad IME detected!\nPlease disable native interface</string>
<string name="enable_microphone">Enable Microphone(s)</string> <string name="enable_microphone">Enable Microphone(s)</string>
<string name="controller_1_vmu">Includes 2 VMUs (Cannot be modified)</string> <string name="controller_1_vmu">Includes 2 VMUs (or 1 VMU / 1 Mic)</string>
<string name="customize_physical_controls">Customize Physical Controls</string> <string name="customize_physical_controls">Customize Physical Controls</string>
<string name="map_keycode_title">Modify Controller</string> <string name="map_keycode_title">Modify Controller</string>