Commit Graph

1293 Commits

Author SHA1 Message Date
Henrik Rydgård
d754f95814
Merge pull request #14884 from unknownbrackets/debugger-gpustats
Debugger: Add APIs for GPU stats
2021-10-19 19:54:51 +02:00
Unknown W. Brackets
8e15f755e6 UI: Add a sysprop for if the device has a keyboard.
Still left some ifdefs because of System_InputBoxGetString(), but
hopefully we can move away from them.  Some devices (like SDL) may only
optionally have a keyboard, so it's a runtime check.
2021-10-19 10:01:52 -07:00
Unknown W. Brackets
ce3b80dcea Debugger: Add initial GPU stats shell. 2021-10-19 10:01:40 -07:00
Henrik Rydgård
1cd520ae31
Merge pull request #15001 from hrydgard/update-android-target
Update target Android version from 11 to 12. (API 30 to 31).
2021-10-19 09:43:59 +02:00
Henrik Rydgård
ce0a45cf0f Update version to 1.12.3 2021-10-18 20:19:42 +02:00
Henrik Rydgård
e91b8af27a Update version to 1.12.2 2021-10-10 13:03:48 +02:00
Henrik Rydgård
e6857388c7 Add input device debug info to touchscreen test screen
(yeah maybe there's a better place but it's fine).

Also make a slight tweak to the detection order which I don't think
matters much.
2021-10-10 11:50:20 +02:00
Henrik Rydgård
5995fe8e7d
Merge pull request #15003 from unknownbrackets/android-device-id
Android: Prioritize PAD devices
2021-10-10 08:44:27 +02:00
Unknown W. Brackets
460ceadcc3 Android: Prioritize PAD devices. 2021-10-09 16:12:54 -07:00
Henrik Rydgård
2845f173ea Update target Android version from 11 to 12. (API 30 to 31).
We just updated from 10 to 11 which enabled scoped storage, but now
that 12 is final, we might as well target that. Some new APIs are
available that might be useful, like a crash dump
API and more refresh rate control.
2021-10-09 22:05:41 +02:00
Henrik Rydgård
bbe06ace22 Update version for 1.12.1 2021-10-09 10:19:44 +02:00
Henrik Rydgård
21686a6a93 Android: Catch some exceptions 2021-10-07 21:07:35 +02:00
Henrik Rydgård
076ece8507 Update AndroidManifest.xml for 1.12 2021-10-06 20:15:50 +02:00
Unknown W. Brackets
6814f5e7af Debugger: Add web debugger to build packaging. 2021-09-26 12:27:54 -07:00
iota97
7d8dd7c816 Square shape for combo button. Additional shapes (folder_open, warning) too. 2021-09-18 23:28:03 +02:00
Unknown W. Brackets
dab1a3aa3c Android: Fix UI background on scoped storage. 2021-09-13 10:27:42 -07:00
Unknown W. Brackets
db21d0e7fc Android: Avoid crash without ext dir.
This can return null on some older Androids.  See #14821.
2021-09-11 20:12:17 -07:00
Henrik Rydgård
dc520a59d3 Log the duration of directory size computations too 2021-09-11 18:17:14 +02:00
Henrik Rydgård
fcc0337576 Fix the Android recursive size computation and hook it up. 2021-09-11 18:12:30 +02:00
Henrik Rydgård
e842d395fa Add untested function Android_ComputeRecursiveDirectorySize 2021-09-11 18:11:53 +02:00
Henrik Rydgård
c9bcbf326f More shortcut fixes 2021-09-09 00:00:54 +02:00
Henrik Rydgård
273376ab8d Set a couple flags on the ShortcutIntent 2021-09-08 23:43:35 +02:00
Henrik Rydgård
bad0736fa3 Avoid calling into C++ when creating game shortcuts. Use scoped storage-compatible file chooser when possible. 2021-09-08 23:26:01 +02:00
Henrik Rydgård
1d08317766 Valiant attempt to fix queryGameName 2021-09-08 23:25:39 +02:00
Henrik Rydgård
8e9cdf97cf Implement support for new file chooser on Android 11+. 2021-09-08 21:33:50 +02:00
Henrik Rydgård
2a223bb91d No longer need to specify build tools version, gradle now has a default. 2021-09-08 01:16:49 +02:00
Henrik Rydgård
68d9372d9f Update gradle again.
Or at least try to, last time I tried we hit buildbot issues.
2021-08-29 21:20:33 +02:00
Henrik Rydgård
51b6c73a2b Experiment: Remove probably-redundant motionevent class check
Could maybe help #14766
2021-08-28 20:27:41 +02:00
Henrik Rydgård
8cab56c948 Move keymap defaults to a separate file. Not exactly a clean separation though. 2021-08-28 15:12:10 +02:00
Henrik Rydgård
8f86ddba2a Android: More strict identification of keyboard events. 2021-08-28 14:47:40 +02:00
Henrik Rydgård
527ec8eff2 Fix bug with device IDs on Android, causing the on-screen back button to be misinterpreted. 2021-08-28 14:07:22 +02:00
Henrik Rydgård
c151b7858b Bugfix 2021-08-22 00:12:47 +02:00
Henrik Rydgård
1fc43b4ea2 Android: Remove the old limitation of 3 registered input devices. 2021-08-21 23:44:16 +02:00
Henrik Rydgård
928bc88b01 Rename Unthrottle to Fast-forward globally 2021-08-18 09:28:13 +02:00
Henrik Rydgård
81b4c3b376 Auto-pause on app switch. Will be made conditional in the next commit. 2021-08-11 23:31:51 +02:00
Henrik Rydgård
fc91ff3dba Cleanup 2021-08-11 23:31:51 +02:00
Henrik Rydgård
b898e4587f Fix some old bugs where we overrode the device ID to 0 wrongly for back button
The checks for pad were wrong, and also the old path simply passed 0.
2021-08-11 23:31:44 +02:00
Henrik Rydgård
ed7053329a Fix some mis-handling of single file URI. Fixes the Load... button. 2021-08-07 12:17:31 +02:00
Henrik Rydgård
43ba908225 Propagate errors from file identification upwards better. 2021-08-07 11:54:45 +02:00
Henrik Rydgård
7c1c06ed66 If in legacy storage mode from an earlier install, we still might need to ask for permission.
So can't cap on that, until Android removes legacy storage access entirely, probably in
Android 13...

Should help nassau-tk's issue in #13847.
2021-08-07 11:01:44 +02:00
Henrik Rydgård
a0a5f7a67a Minor improvements on Android 9/10. Let the user reset to root of storage.
This includes handling weird "raw:/" content URIs. These I haven't seen
on newer versions.
2021-08-04 23:22:43 +02:00
Henrik Rydgård
93673cb565 Correct the cutoff for scoped storage. Android 9,10 (API 28,29) shouldn't use it. 2021-08-04 23:22:43 +02:00
Henrik Rydgård
80fc09a222 Indentation fix 2021-08-04 23:22:43 +02:00
Henrik Rydgård
59088e0921 Android 28 was the wrong cutoff for oldschool permissions, 29 is correct. 2021-08-04 23:22:43 +02:00
Henrik Rydgård
f51b8116a0 Basic flow of setting up and moving the PSP directory works now. 2021-08-04 23:22:43 +02:00
Henrik Rydgård
793e79945f Enable scoped storage enforcement on Android 11+.
This has a number of UX issues and bugs we need to work through, but at least
games are playable, things mostly work. Upgrades are handled smoothly by
keeping existing storage access until you uninstall. After a reinstall, you'll
need to re-select your old PSP directory manually in settings :(
2021-08-04 23:22:43 +02:00
Henrik Rydgård
3f1a5a148f Add a missing java function (fix a little merge mistake) 2021-07-26 21:54:48 +02:00
Henrik Rydgård
3ec13b8440 Two more functions 2021-07-25 17:32:12 +02:00
Henrik Rydgård
0997b8500c Convert four more functions to allow for error codes.
Note that they still don't actually use them...
2021-07-25 17:32:12 +02:00
Henrik Rydgård
2333239514 Change one storage function to use an error code. 2021-07-25 17:32:12 +02:00