Aaron Culliney
bd9b38cd65
Allow calibration of portrait mode on Android
2016-02-14 20:40:51 -08:00
Aaron Culliney
261ae2efae
Refactor to not use video_backend in so many places
2016-02-07 14:42:32 -08:00
Aaron Culliney
5fec80a33a
Refactor video_shutdown() to appease Valgrind
...
- This likely breaks Darwin ports ... will fix soon[ish]
2016-02-07 14:42:28 -08:00
Aaron Culliney
edaae0bc89
Refactor glvideo to be the root glnode, begin to privatize video_backend APIs
2016-02-07 14:42:16 -08:00
Aaron Culliney
1358a52eee
Add but disable CPU trace on Android
2016-01-24 09:47:57 -08:00
Aaron Culliney
abae59767c
Enable simple heap memory fencing/scribbling in debug builds
2015-12-31 22:50:43 -08:00
Aaron Culliney
145b6a6cef
Refactor JNI plumbing for consistency
2015-12-20 12:54:27 -08:00
Aaron Culliney
22b1bc9ad8
Move key handling back to the Activity, otherwise we don't seem to receive onKeyUp() for the Android back button
2015-12-20 12:11:12 -08:00
Aaron Culliney
2f7f7bd359
Preliminary support for mapping an Android physical gamepad/joystick to emulated Apple //e joystick
...
- No support for custom joystick/gamepad configurations (yet)
2015-12-19 23:59:02 -08:00
Aaron Culliney
3ff877d80c
Refactor : move event handling into custom view
2015-12-19 23:13:52 -08:00
Aaron Culliney
2c8284d41f
Start running tests on Android after first resume
...
- This allows for a more consistent test environment (test disks copied out of APK and available, etc) and also
mimics main app behavior
2015-12-16 20:59:20 -08:00
Aaron Culliney
cdb0f7b06b
Shunt disk-state-change information back to the Java/Android menu system
2015-12-12 11:42:33 -08:00
Aaron Culliney
651ac246e3
Flush disk IO on backgrounding
2015-12-11 23:42:57 -08:00
Aaron Culliney
e1629095b6
Get crash symbolication working for x86 build
2015-11-29 14:35:01 -08:00
Aaron Culliney
b9d6d38b17
First cut at save/restore emulator state feature
...
- This adds to overall UX ... (you can finally finish some very difficult arcade games by strategically leveraging
this feature)
- Currently enabled for Android, but not Android-specific
2015-11-22 18:22:01 -10:00
Aaron Culliney
6de1cae478
Move nativeOnCreate back to proper position as first native call
...
- This runs discovery of CPU family
- This sets up native crash handling
2015-11-01 19:26:34 -08:00
Aaron Culliney
9a2044f75e
Apparently not possible to query this early on Gingerbread devices
2015-11-01 13:43:09 -08:00
Aaron Culliney
521d1daccf
Refactor app startup
...
- Make sure crash checking is performed as early as possible
- Minimize calling complex native functions until after splash screen is dimissed
- Do not attempt to setup/resume OpenGL until after splash screen is dimissed
2015-11-01 10:14:40 -08:00
Aaron Culliney
cbe8a734d0
Move CPU feature discovery into CTOR
2015-10-31 23:00:45 -07:00
Aaron Culliney
acdc8da64f
Refactor pause/resume functions to be strictly CPU thread pause/resume
2015-10-31 14:01:47 -07:00
Aaron Culliney
d4adabda93
SNEAKY BUGFIX race condition between UI thread and CPU thread on disk insertion
...
- Previously we would start the CPU thread and then insert, which has been a long standing race condition, but
possibly better exposed since the recent disk.c rephactor to use mmap I/O
- This directly manifested on a Kindle Fire 1st Gen as a crash, and, anecdotally on other devices as a "stalled"
disk read requiring a reboot of the virtual machine. Yay for crappy devices helping to expose crappy code! (git
blame me). =P
2015-10-30 23:19:33 -07:00
Aaron Culliney
2cc23cf35d
Upgrade to GPLv3 "or later" and update copyrights
2015-10-22 21:09:13 -07:00
Aaron Culliney
4e478d369c
Refactor disk interface API function names
2015-10-15 22:51:44 -07:00
Aaron Culliney
f4fa5670b4
Add function-call time tracing for Linux/Android
2015-10-04 14:22:26 -07:00
Aaron Culliney
e161dce3c2
Make app shutdown happen on the GL thread to avoid crashing
2015-10-04 13:39:57 -07:00
Aaron Culliney
7f32e14a6e
Compile against android-10 while we still care about Gingerbread ... nom nom nom
2015-09-27 15:04:10 -07:00
Aaron Culliney
286012c991
Blow up early, blow up often
...
- Expose and trigger a link error with getpagesize() on Gingerbread devices if we have built the software
incorrectly.
2015-09-27 14:30:20 -07:00
Aaron Culliney
d90b523440
process crashes in-situ on Android device
2015-09-26 15:20:54 -07:00
Aaron Culliney
88be6086a2
Refactor crash testing/reports into separate class/files
2015-09-26 15:16:30 -07:00
Aaron Culliney
ad2dbd54b0
Android architecture globals
2015-09-26 14:58:09 -07:00
Aaron Culliney
b8921b8441
Integrate Breakpad crash dumper and tools into Android build
...
- Includes Linux x86_64 binaries dump_syms and minidump_stackwalk
- Includes adb_sanitize.c tool (gcc -std=gnu11 -o adb_sanitize adb_sanitize.c) for easily pulling local minidumps
2015-09-19 13:11:27 -07:00
Aaron Culliney
ba0b0505e3
Minor nit ... name change
2015-09-18 23:04:30 -07:00
Aaron Culliney
5dadc922fd
Simplify mobile lifecycle at the expense of holding onto audio resources
...
- This does not seem to be a problem with both modern and older Gingerbread devices
2015-09-13 14:24:17 -07:00
Aaron Culliney
b2cb35c182
Lifecycle tweaks that get Android building again
2015-09-12 15:33:22 -07:00
Aaron Culliney
bc5559c1b0
Allow graphics thread to self-shutdown to avoid segfault on exit
2015-09-08 23:12:20 -07:00
Aaron Culliney
9c98745099
Remove unnecessary call to pump key handling codepath
2015-09-07 11:08:43 -07:00
Aaron Culliney
fa91a2806d
Get testing working on Android again
2015-09-06 23:43:26 -07:00
Aaron Culliney
7d4b63e12d
Refactor : move reinitialize() to timing module and make static (mostly)
2015-09-06 14:05:18 -07:00
Aaron Culliney
c3702c54b5
Remove build variants because they are confusing and incompatible with CLI ant builds which I still want to maintain
2015-09-05 14:08:21 -07:00
Aaron Culliney
ebe7f82f22
Persist settings for currently inserted disks, and provide a way to eject disks
2015-08-22 14:44:31 -07:00
Aaron Culliney
704c381ea8
Logging should automatically print function
2015-08-21 23:43:19 -07:00
Aaron Culliney
3f934ecd3f
Fix cycling between different touch devices in the GL touch menu
2015-08-21 23:33:08 -07:00
Aaron Culliney
7344cadfbd
More joystick settings including calibration mode
2015-08-02 14:29:34 -07:00
Aaron Culliney
0bc8869627
nativeOnTouch() now returns various state flags
...
- Allows playing of a key click sound if a keyboard item tapped
- Improves stovepiping the native request to show the Android main menu
2015-07-30 22:05:21 -07:00
Aaron Culliney
25b9f3d3f3
Android lifecycle cleanups
...
- Differentiate between cpu_pause() when going to menu (and app is still foregrounded, and cpu_pauseBackground()
when a system backgrounding event has occurred.
- Destroy/free audio resources owned by CPU thread when background is requested, put CPU thread into waiting upon
pthread condition to resume.
- Mobile device now always signals pthread condition to force CPU thread resume from background
2015-07-27 22:36:39 -07:00
Aaron Culliney
a0cadc83c6
Refactor timing locking behavior
...
- Do not start CPU thread until after splash screen
- Insure that only CPU thread can actually create/destroy the audio interfaces
2015-07-26 13:48:24 -07:00
Aaron Culliney
a60ffb8eb9
Beginning of Android persistent settings
2015-07-21 21:38:28 -07:00
Aaron Culliney
7ca4a2646d
Optimize video drawing and API cleanup
...
- Enforces synchronized access to video dirty bit
2015-07-12 14:13:13 -07:00
Aaron Culliney
5f4bf6b1a7
Use single buffer queue callback for OpenSLES/Android
...
- OpenSLES Callback now performs simple mix of 2 sources (speaker and mockingboard)
- Avoids multiple callbacks which was a performance penalty especially for low-end droids
2015-07-12 12:59:49 -07:00
Aaron Culliney
ada6d7a0be
Pause/resume CPU/audio together
2015-07-04 18:17:04 -07:00