Henrik Rydgard
a4a17415a7
android: Allow querying the real display resolution as detected on start
2014-07-21 00:34:12 +02:00
Henrik Rydgard
1d77b94355
Fix another operator shortcutting bug (tilt events)
2014-07-20 18:29:42 +02:00
Henrik Rydgard
2ab2016002
Expose the Android system version to the app. Useful to enable/disable android-only features like immersive mode
2014-07-20 12:04:22 +02:00
Henrik Rydgard
ceb5a94c4a
android: Add "recreate" command
2014-07-18 21:49:33 +02:00
Henrik Rydgard
82c805d93d
gotta be public
2014-07-18 21:25:14 +02:00
Henrik Rydgard
1012f46dee
Add some infrastructure to be able to support Android hardware scaling
2014-07-18 20:31:29 +02:00
Henrik Rydgard
326504baf8
android: Cleanup of dpi/refresh variables
2014-07-18 17:39:32 +02:00
Henrik Rydgard
3b45ca1d2f
Some cleanup
2014-07-18 16:07:36 +02:00
Henrik Rydgard
8cd755942b
Reduce some logging
2014-07-18 12:07:08 +02:00
Henrik Rydgard
1c93a58223
Prevent short-circuit evaluation from eating some of our touch event handling
2014-06-18 00:54:11 +02:00
Henrik Rydgard
a3e23f0ac6
Propagate input even return values in more places. Handle repeats better.
2014-06-15 13:04:10 +02:00
Henrik Rydgard
6739fc5654
Have the input functions return bool, so we can say if we used the key.
...
Will allow mapping Android volume keys as game inputs without also showing the volume setting.
2014-06-15 12:12:12 +02:00
Henrik Rydgard
e7001eb701
Some input tweaks and UI utility functions
2014-05-19 23:28:11 +02:00
Henrik Rydgard
6b8a8a6c8d
Restore immersive mode after volume change (android bug workaround)
2014-03-19 18:03:33 +01:00
TwistedUmbrella
4dd55657c5
Ignore the preemptive key processing for ICS Xperia Play
2014-02-19 22:56:29 -05:00
Henrik Rydgard
263e2207be
FrameCommand cleanup, logic fix in "vibrate" handling
2014-02-15 10:15:07 +01:00
Henrik Rydgard
9cb2292308
Reset rotation lock on resume
2014-02-15 09:59:49 +01:00
Henrik Rydgard
4ae715832e
Allow control of Kitkat Immersive Mode from native code
2014-02-09 23:15:22 +01:00
Henrik Rydgård
48b4745e73
Some cleanup, make really sure we don't use AudioTrack on Gingerbread+.
2014-02-07 14:18:45 +01:00
Henrik Rydgard
710d63aac1
Android: Send data about the device used in touch events.
2014-02-05 20:02:13 +01:00
Henrik Rydgård
455411edcb
Theme fix for text input alert dialogs
2014-02-04 16:17:41 +01:00
Henrik Rydgård
5fa72b4d22
Add support for querying the desired rotation setting from Java.
2014-02-04 12:57:32 +01:00
Henrik Rydgård
c960fdb0b2
Add a new "queryConfig" native android function, so that the Java code can check
...
config options like rotation lock (config is implemented on the C++ side).
2014-02-04 12:07:17 +01:00
Henrik Rydgård
ed96a29988
Log detected DPI.
2014-01-31 14:32:06 +01:00
Henrik Rydgård
e41706f74e
Add finish command to NativeActivity
2014-01-21 16:55:57 +01:00
Henrik Rydgård
ca90b79bf8
Fix Android input box function. Add dpi to command line options in PCMain.
2014-01-21 15:57:15 +01:00
Henrik Rydgård
ef2cb9cf35
Log "onDestroy" as info instead of error.
2014-01-16 15:30:55 +01:00
Henrik Rydgård
dfcfe5d00f
Android: Allow apps to override the use of low profile.
...
Minor logging improvement in vjson
2014-01-14 17:32:06 +01:00
Henrik Rydgård
725ada516a
Don't log native-app messages, let the app handle it in NativeMessageReceived if it wants to
2014-01-14 11:11:59 +01:00
Henrik Rydgård
024846cb7b
Make Android "FrameCommands" quite a bit more robust.
2014-01-10 13:45:03 +01:00
valef
43691090f3
- Removed SHORTCUT_EXTRA_KEY and shortcut query out of NativeActivity class.
...
- Added String shortcutParam member & setShortcutParam() method. This will be set from other class.
2014-01-06 18:00:24 +07:00
valef
b2c3ee8d57
- Added jshortcutParam parameter to libnative_NativeApp_init.
...
- If shortcut_param is not empty, pass it as additional varargs argument to NativeInit() method.
const char *argv[3] = {app_name.c_str(), shortcut_param.c_str(), 0};
NativeInit(2, argv, user_data_path.c_str(), externalDir.c_str(), installID.c_str());
- NativeInit() is expected to treat extra argument as boot_filename, which in turn will start game immediately.
2014-01-06 13:36:40 +07:00
valef
234344983a
- Added key to get shortcut parameter.
...
public static final String SHORTCUT_EXTRA_KEY = "org.ppsspp.ppsspp.Shortcuts";
- Added code to get shortcut parameter from intent.
String shortcutParam = getIntent().getStringExtra(SHORTCUT_EXTRA_KEY);
- Call NativeApp.init() with shortcutParam argument.
NativeApp.init(dpi, deviceType, languageRegion, apkFilePath, dataDir, externalStorageDir, libraryDir, shortcutParam, installID, useOpenSL);
2014-01-06 13:36:40 +07:00
valef
87533085fa
Added 'shortcutParam' argument to init() method declaration.
...
public static native void init(int dpi, String deviceType, String languageRegion, String apkPath, String dataDir, String externalDir, String libraryDir, String shortcutParam, String installID, boolean useOpenSL);
2014-01-06 13:36:40 +07:00
Henrik Rydgård
432fa7e6e6
Workaround for broken key repeat on Ouya - it sends repeats with a different device ID
2014-01-05 12:49:40 +01:00
Henrik Rydgård
ce20273f5f
Add showTwitter command (Android-only).
2013-12-19 14:27:16 +01:00
Henrik Rydgård
1ef531ec9c
Add some infrastructure to handle screen resizes that don't lose the device
2013-12-16 16:19:40 +01:00
Henrik Rydgård
d20700d5bb
Android: Add "sharetext" action
2013-12-11 18:04:23 +01:00
Henrik Rydgard
ca6355d859
Turn EGLConfig back on on Ouya
2013-12-10 23:43:43 +01:00
Henrik Rydgård
d0d5be2c5d
Logspam reductions
2013-12-09 13:44:47 +01:00
Henrik Rydgård
dc1594ad3d
Turn off kitkat immersive mode. Can't get it to work consistently.
2013-12-09 13:12:22 +01:00
Sacha
9e5df6028a
Add InputBox as a platform-specific system function instead of a host function. Enable it on all Qt platforms.
2013-12-08 20:15:09 +10:00
Henrik Rydgard
4e2212de40
Skip the EGLConfigChooser. Seems to choose a suboptimal mode on several phones.
...
We just have to live with no stencil in non-buffered. Play buffered.
2013-12-07 15:20:11 +01:00
Henrik Rydgård
6730d2d244
Android: set immersive mode on "configChanges"
2013-12-06 15:01:52 +01:00
Henrik Rydgard
3c8374d304
Add command to invoke android's "Share picture" functionality
2013-12-04 17:59:16 +01:00
Henrik Rydgard
563e005101
Android: Allow sending generic string messages out to Java.
...
Implement stubs for other platforms.
2013-12-04 17:38:37 +01:00
Henrik Rydgard
9140f10e2f
Take out nonsensical DPI adjustment (android).
...
It had bad effects when combined with kitkat immersive mode.
2013-12-04 12:41:37 +01:00
Unknown W. Brackets
26821c5f9f
Typo, buildfix, warning fix.
2013-11-27 22:34:52 -08:00
Sacha
8186bebce0
Oops, cast to float.
2013-11-28 16:04:37 +10:00
Sacha
bd6a94c6ec
Use better DPI on Android.
2013-11-28 15:44:01 +10:00