Henrik Rydgard
a9cefe2f3a
Android: Set display thread name, release local refs to frame comman strings properly
2015-07-20 20:28:59 +02:00
Henrik Rydgard
7c24761d4d
Http download : set completed flag even if failed. Use setThreadName on android in init
2015-07-19 17:15:13 +02:00
Henrik Rydgard
05d48b053e
Profiler fix for Android, count events
2015-05-15 18:14:39 +02:00
Henrik Rydgård
bf4a5f0352
Detect the Android UIMode, use as device type. For better automatic configuration for things like Android TV.
2015-04-03 11:13:38 +02:00
Henrik Rydgard
a72858d15e
Turn off the android audio fast path if not actually fast. Might as well use the PSP sample rate then.
2015-01-31 11:47:05 +01:00
Henrik Rydgard
1467753c35
Don't use a VBO for DrawBuffer drawing. Some crappy ES drivers really don't like dynamic vertex buffers.
2015-01-29 10:35:34 +01:00
Henrik Rydgard
d2f95b9190
Set some half reasonable defaults when there's no optimal sample rate available
2015-01-14 00:34:27 +01:00
Henrik Rydgard
a506ba2e83
Expose/fake native display refresh rate. Only has a real value on Android.
2015-01-14 00:27:21 +01:00
Henrik Rydgard
84ed01df53
Android audio: Add ability to not override the sample rate to 44khz
2015-01-11 17:28:06 +01:00
Henrik Rydgard
9201103abe
Get rid of the Java audio path. We now only support Android 2.3+ where it's not needed.
...
Also, expose the optimal sample rate for the platform so we can show it in the UI.
2015-01-11 11:39:30 +01:00
Henrik Rydgard
4dce24d05c
Improve Moga version detection - do it after the connect event.
2015-01-01 13:34:32 +01:00
Henrik Rydgard
c958ca6b4c
Add version argument to NativeGetAppInfo
2014-12-18 22:50:17 +01:00
Henrik Rydgard
82bf2dc136
Remove left-behind log statement
2014-12-06 13:13:05 +01:00
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
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
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
263e2207be
FrameCommand cleanup, logic fix in "vibrate" handling
2014-02-15 10:15:07 +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
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
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
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
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
d0d5be2c5d
Logspam reductions
2013-12-09 13:44:47 +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
563e005101
Android: Allow sending generic string messages out to Java.
...
Implement stubs for other platforms.
2013-12-04 17:38:37 +01:00
Sacha
60f1d1e3cb
Clean up of unused or redundant code and comments.
2013-10-29 11:24:10 +10:00
Henrik Rydgård
ac1620137f
Android: Add simple haptic feedback support
2013-10-10 16:00:30 +02:00
Henrik Rydgard
357d224414
Use an EGLConfigChooser to give us more control over which display config to use.
2013-10-10 11:08:38 +02:00
Henrik Rydgård
67bea6c7ed
Run gl_lost() on gl shutdown
2013-10-09 16:08:02 +02:00
Henrik Rydgård
3778d8d8b1
Android: Reorganize the display resize stuff. Assorted cleanup and fixes.
2013-10-09 15:29:02 +02:00
Henrik Rydgard
fee82ce288
Fetch language/region code, fix bug in VFSGetFileInfo
2013-09-04 12:07:05 +02:00
Henrik Rydgard
1790bd8b7e
Replace System_GetName with System_GetProperty so we can return more info
2013-09-04 11:28:19 +02:00
Henrik Rydgard
89361d002f
Bugfixes
2013-08-18 00:39:21 +02:00
Henrik Rydgard
0a857fe4a1
Add a way to get the "System name" (will be mostly useful for android). Tweaks.
2013-08-18 00:14:25 +02:00
Henrik Rydgard
4a1c3c4f83
More UI stuff, add glMapBuffer
2013-08-16 16:47:25 +02:00
Henrik Rydgard
f00bfc5464
Get device manufacturer + type
2013-08-06 11:08:55 +02:00
Henrik Rydgård
13b8277bd3
Fix some confusing code noticed by unknown, typo fix
2013-07-20 09:43:55 +02:00
Henrik Rydgard
8559d298f8
Android: Make preparations to let the app survive an activity shutdown. Lets us deal with orientation change natively.
2013-07-16 22:50:24 +02:00
Henrik Rydgard
7151e4c06e
Generalize the code mapping android key events into pad button bits, add support for keys needed to navigate UI.
2013-07-15 17:37:16 +02:00
Henrik Rydgard
94a163ca35
Rename JNI method to match the Java side. Fixes gamepad related crash on Android.
2013-07-08 17:16:59 +02:00
Henrik Rydgard
1dec6e8154
Work towards full android joystick support.
2013-07-06 19:08:20 +02:00
Daniel Dressler
bba8285b94
Fix android doubling key presses
2013-07-03 19:54:16 -07:00
Daniel Dressler
824f4fb457
Add queue of pressed keys to input_state
2013-06-24 21:47:29 -07:00