mic notes, wip vmu swap
This commit is contained in:
parent
2e294c4642
commit
96ffc3a524
|
@ -26,12 +26,11 @@ maximum size of a Maple Bus packet is 256 words (1024 bytes)
|
|||
|
||||
================
|
||||
Games that can use mic:
|
||||
-Seaman
|
||||
-Seaman [tested, working!]
|
||||
-Alien Front Online
|
||||
-Planet Ring
|
||||
-Mr Driller
|
||||
-Otoire
|
||||
-Mr Driller [tested, working!] (lol @ telling mr driller to dig)
|
||||
-Otoire [tested, working!]
|
||||
-Propeller Arena
|
||||
-Visual Park
|
||||
-Kiteretsu Boys Gangagan
|
||||
|
||||
-Kiteretsu Boys Gangagan
|
|
@ -38,6 +38,7 @@ extern "C"
|
|||
JNIEXPORT void JNICALL Java_com_reicast_emulator_JNIdc_initControllers(JNIEnv *env, jobject obj, jbooleanArray controllers) __attribute__((visibility("default")));
|
||||
|
||||
JNIEXPORT void JNICALL Java_com_reicast_emulator_JNIdc_setupMic(JNIEnv *env,jobject obj,jobject sip) __attribute__((visibility("default")));
|
||||
JNIEXPORT void JNICALL Java_com_reicast_emulator_JNIdc_vmuSwap(JNIEnv *env,jobject obj) __attribute__((visibility("default")));
|
||||
};
|
||||
|
||||
|
||||
|
@ -224,6 +225,14 @@ JNIEXPORT void JNICALL Java_com_reicast_emulator_JNIdc_stop(JNIEnv *env,jobject
|
|||
dc_term();
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_com_reicast_emulator_JNIdc_vmuSwap(JNIEnv *env,jobject obj)
|
||||
{
|
||||
maple_device* swap = MapleDevices[0][1];
|
||||
MapleDevices[0][1] = MapleDevices[0][0];
|
||||
MapleDevices[0][0] = swap;
|
||||
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL Java_com_reicast_emulator_JNIdc_send(JNIEnv *env,jobject obj,jint cmd, jint param)
|
||||
{
|
||||
if (cmd==0)
|
||||
|
|
|
@ -90,31 +90,34 @@ public class GL2JNIActivity extends Activity {
|
|||
GL2JNIActivity.this.finish();
|
||||
}
|
||||
}), params);
|
||||
|
||||
//TODO comment what these do
|
||||
//TODO update these icons
|
||||
|
||||
hlay.addView(addbut(R.drawable.config, new OnClickListener() {
|
||||
public void onClick(View v) {
|
||||
JNIdc.send(0, 0);
|
||||
JNIdc.send(0, 0); //Killing texture cache
|
||||
popUp.dismiss();
|
||||
}
|
||||
}), params);
|
||||
|
||||
hlay.addView(addbut(R.drawable.profiler, new OnClickListener() {
|
||||
public void onClick(View v) {
|
||||
JNIdc.send(1, 3000);
|
||||
JNIdc.send(1, 3000); //sample_Start(param);
|
||||
popUp.dismiss();
|
||||
}
|
||||
}), params);
|
||||
|
||||
hlay.addView(addbut(R.drawable.profiler, new OnClickListener() {
|
||||
public void onClick(View v) {
|
||||
JNIdc.send(1, 0);
|
||||
JNIdc.send(1, 0); //sample_Start(param);
|
||||
popUp.dismiss();
|
||||
}
|
||||
}), params);
|
||||
|
||||
hlay.addView(addbut(R.drawable.disk_unknown, new OnClickListener() {
|
||||
public void onClick(View v) {
|
||||
JNIdc.send(0, 1);
|
||||
JNIdc.send(0, 1); //settings.pvr.ta_skip
|
||||
popUp.dismiss();
|
||||
}
|
||||
}), params);
|
||||
|
@ -122,6 +125,13 @@ public class GL2JNIActivity extends Activity {
|
|||
hlay.addView(addbut(R.drawable.profiler, new OnClickListener() {
|
||||
public void onClick(View v) {
|
||||
JNIdc.send(0, 2);
|
||||
popUp.dismiss(); //print_stats=true;
|
||||
}
|
||||
}), params);
|
||||
|
||||
hlay.addView(addbut(R.drawable.input, new OnClickListener() {
|
||||
public void onClick(View v) {
|
||||
JNIdc.vmuSwap();
|
||||
popUp.dismiss();
|
||||
}
|
||||
}), params);
|
||||
|
|
|
@ -24,6 +24,7 @@ public class JNIdc
|
|||
public static native void initControllers(boolean[] controllers);
|
||||
|
||||
public static native void setupMic(Object sip);
|
||||
public static native void vmuSwap();
|
||||
|
||||
public static void show_osd() {
|
||||
JNIdc.vjoy(13, 1,0,0,0);
|
||||
|
|
Loading…
Reference in New Issue