mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 15:40:44 +00:00
(Android) add ability to report IME
This commit is contained in:
parent
f65e64a638
commit
9fb3b7bb57
@ -2,8 +2,9 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:id="@+id/rarch_settings" android:title="@string/rarch_settings" android:showAsAction="ifRoom" />
|
||||
<item android:id="@+id/input_method_select" android:title="@string/input_method" android:showAsAction="ifRoom" />
|
||||
<item android:id="@+id/retroarch_guide" android:title="@string/retroarch_guide"></item>
|
||||
<item android:id="@+id/report_ime" android:title="@string/report_ime"></item><item android:id="@+id/retroarch_guide" android:title="@string/retroarch_guide"></item>
|
||||
<item android:id="@+id/cores_guide" android:title="@string/cores_guide"></item>
|
||||
<item android:id="@+id/overlay_guide" android:title="@string/overlay_guide"></item>
|
||||
<item android:id="@+id/shader_pack" android:title="@string/shader_pack"></item>
|
||||
|
||||
</menu>
|
||||
|
@ -15,5 +15,6 @@
|
||||
<string name="shader_pack">Shader Pack</string>
|
||||
<string name="key_bind_title">Press the button to use, or select it from the list</string>
|
||||
<string name="key_bind_clear">Unbind</string>
|
||||
<string name="report_ime">Report IME</string>
|
||||
|
||||
</resources>
|
||||
|
@ -425,6 +425,11 @@ public class RetroArch extends Activity implements
|
||||
Intent rset = new Intent(this, SettingsActivity.class);
|
||||
startActivity(rset);
|
||||
return true;
|
||||
|
||||
case R.id.report_ime:
|
||||
String current_ime = Settings.Secure.getString(getContentResolver(), Settings.Secure.DEFAULT_INPUT_METHOD);
|
||||
Toast.makeText(this, current_ime, Toast.LENGTH_LONG).show();
|
||||
return true;
|
||||
|
||||
case R.id.retroarch_guide:
|
||||
Intent rguide = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.libretro.org/documents/retroarch-manual.pdf"));
|
||||
@ -435,14 +440,17 @@ public class RetroArch extends Activity implements
|
||||
Intent cguide = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.libretro.org/documents/retroarch-cores-manual.pdf"));
|
||||
startActivity(cguide);
|
||||
return true;
|
||||
|
||||
case R.id.overlay_guide:
|
||||
Intent mguide = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.libretro.org/documents/overlay.pdf"));
|
||||
startActivity(mguide);
|
||||
return true;
|
||||
|
||||
case R.id.shader_pack:
|
||||
Intent sguide = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.libretro.org/shaders/xml-gles-shaders.zip"));
|
||||
startActivity(sguide);
|
||||
return true;
|
||||
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user