188 Commits

Author SHA1 Message Date
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
166d07df0c MogaHack: Remove irrelevant log (?) 2015-07-19 17:33:03 +02:00
Henrik Rydgard
e23e20d8a1 Get rid of the separate so file for OpenSL stuff, we haven't supported 2.2 for a long time
Code needs some cleanup, but that's for later.
2015-07-19 17:27:36 +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
Unknown W. Brackets
bc29409817 Send the cache dir path to the app. 2015-06-27 18:27:54 -07:00
Henrik Rydgard
90c2ef38bd Make Native also target android-22 (oversight) 2015-05-30 21:22:09 +02:00
Henrik Rydgard
05d48b053e Profiler fix for Android, count events 2015-05-15 18:14:39 +02:00
Henrik Rydgård
2f5b1c6ebe Add Mupen64's hack around the broken Moga library (that won't work in android 21+) 2015-04-03 11:35:55 +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
sum2012
7ed0e24b17 Remove unused import 2015-02-22 16:17:22 +08: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
Unknown W. Brackets
471816c24b Fully remove old useOpenSL param. 2015-01-18 15:53:23 -08: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
fe94cb6146 Try not to pass-through back and menu as Android commands if they come from a gamepad. 2015-01-03 22:44:41 +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
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