Commit Graph

486 Commits

Author SHA1 Message Date
twinaphex b20b6525d3 (Android) PendingIntent code created bad dependencies on Java frontend and
made it impossible for external clients like Dinothawr to use RetroArch
as a library
2014-01-04 05:36:08 +01:00
twinaphex 0a15a17d44 Update years on all license headers 2014-01-01 01:50:59 +01:00
twinaphex 5c6c88d9d6 (Android) Make some tweaks to input drivers for conformity 2013-12-28 03:44:37 +01:00
twinaphex d974216890 (Android) Add -DHAVE_LOCATION 2013-12-19 05:16:48 +01:00
twinaphex 9ed2c1b9b6 (Android location) Implement all JNI calls in stub location driver -
hopefully this will work straight away (fingers crossed)
2013-12-19 05:10:56 +01:00
twinaphex ec5153ab57 (Android) Build fix 2013-12-17 20:56:31 +01:00
AridRayne 8c23b0bd96 Added to copyright headers. 2013-12-16 08:46:38 -08:00
AridRayne 721fbeda7e Added an iCade profile for the Moga Hero Power controller, it might work
with other Moga controllers that have a HID mode.
2013-12-16 08:41:41 -08:00
AridRayne 30379e4abb Check AXIS_BRAKE and AXIS_GAS if AXIS_LTRIGGER and AXIS_RTRIGGER return
0. The Moga Hero Power specifically uses AXIS_BRAKE and AXIS_GAS
instead.
2013-12-16 08:08:06 -08:00
twinaphex bfbebaf041 (Android) Add JXD S5110B Skelrom to input autodetect 2013-12-16 10:52:50 +01:00
twinaphex 7cd8f6c188 (Android) Change case sensitivity for detecting JXD S7800b controls 2013-11-30 17:23:18 +01:00
twinaphex 2b01f0a33e (Android) Add JXD S7800B autodetected controls 2013-11-29 15:10:39 +01:00
twinaphex 60baa25233 (Android) Move around cpufeatures.c/.h to performance/ 2013-11-27 22:57:49 +01:00
twinaphex a7b34ec794 (Android) Implement all back behaviors 2013-11-26 13:41:33 +01:00
twinaphex 6c638f91f4 (Android) Big changes -
- both MainMenuActivity and RetroActivity are single instances now
- AKEYCODE_BACK gets eaten and onBackPressed in Java is triggered
- onBackPressed right now calls an instance of MainMenuActivity
(reuses the existing activity on the stack)
- User can switch back and forth between RetroActivity and MainMenuActivity
with AKEYCODE_BACK / Back button
- When a subsequent intent is launched after RetroActivity has already been
started up once, the pending intent gets passed to the existing RetroActivity
throug onNewIntent - in C land it will look every frame if an intent is pending - if it is, it will look up certain variables through JNI to launch a new game - or whatever it is that the intent wants to do
- With this we can now switch seamlessly between Android UI and RetroArch
itself.
2013-11-24 22:02:57 +01:00
twinaphex 47c8c26511 (Android) Simplify intent grabbing with JNI 2013-11-24 16:43:57 +01:00
twinaphex 37fce3c56e (Android) Move engine_handle_cmd from input_android.c to platform_android.c 2013-11-22 21:12:13 +01:00
twinaphex d66d4f7263 (Android) have engine_handle_cmd take as argument void* 2013-11-22 17:41:45 +01:00
twinaphex fead1faee5 (Android) Fix warnings when changing #if 1 to #if 0 2013-11-20 19:18:24 +01:00
twinaphex 4a816ac177 (Android) Put in #if 1 - Lioncash can change this to #if 0
to test Java-side back key handling
2013-11-20 19:14:02 +01:00
twinaphex 8c5679072c (Android) Implement JNI onBackPressed call 2013-11-20 19:00:21 +01:00
twinaphex 868de7d4ef (Android) jni_params struct -remove class_obj 2013-11-20 18:09:50 +01:00
twinaphex 87421d477c Clean up JNI: (...)
* pthread_key_create is used to set a destructor for every thread
created through jni_thread_getenv
* To grab a JNIEnv pointer - go through jni_thread_getenv
* jni_thread_getenv sets pthread_setspecific for the JNIEnv pointer
to bind destructor
* Reuse activity->vm everywhere instead of creating local pointer
copies
* Don't use DetachCurrentThread outside of platform_android's (new)
jni_thread_destruct function - the destructor will do this for us
now
2013-11-20 17:33:19 +01:00
ToadKing 104dafe53f [Android] fill in camera stub functions - needs testing, probably doesn't work yet 2013-11-17 21:48:49 -05:00
twinaphex 56a2b03e21 (Android) Input - Don't call AInputQueue_hasEvents on first iteration - it can return 0 even if events are queued up - leading to congestion issues 2013-11-18 01:21:26 +01:00
twinaphex 0c54da42e3 (Android JNI) jni_params - now also takes a submethod_name/submethod_signature 2013-11-18 00:52:26 +01:00
twinaphex 51891483c4 (Android) Stub android camera C driver - will interface with JNI
functions
2013-11-18 00:28:27 +01:00
twinaphex de1bae69c9 (Android) Add skeleton camera driver 2013-11-17 19:47:37 +01:00
twinaphex bdf8ba19e4 (Android) Compile with HAVE_NETPLAY enabled 2013-11-10 04:22:29 +01:00
twinaphex 87179e4946 (Android) Define HAVE_MENU 2013-11-08 04:53:40 +01:00
twinaphex da8f8b6d63 Get rid of lifecycle_mode_state and use g_extern.lifecycle_state
instead
2013-11-07 21:44:44 +01:00
twinaphex e3ebfbffa9 Rename frontend_android.h to platform_android.h 2013-11-03 17:02:40 +01:00
Themaister ae07e75e7c Hook up sensors API in libretro.
There are still many FIXMEs to be resolved before the interface
can lose its experimental status.
2013-11-03 12:06:14 +01:00
twinaphex 5a466c064e (Android) Add FIXME to input_android.c 2013-11-03 01:34:01 +01:00
twinaphex c65670df31 (Android) Add parenheses around sensor mask conditionals 2013-11-03 00:31:24 +01:00
twinaphex c0e02d3957 (Android/General) Add preliminary sensor support to libretro API /
add accelerometer support to Android input driver
2013-11-03 00:27:58 +01:00
twinaphex 3e5489cc6e (Android) Build fix 2013-11-02 21:50:38 +01:00
twinaphex 3e8166bfa5 (Input) Add new function to input driver - get_capabilities 2013-11-02 21:16:57 +01:00
twinaphex 14ae3ca316 (Android) Don't do log spamming inside input event queue poll function 2013-11-02 18:59:17 +01:00
twinaphex 727dc76db8 (Console/Android) Init input driver from context driver/graphics
driver from now on - just like PC - input driver initing can be
hoisted out of global_drivers_init that way
2013-11-01 16:33:32 +01:00
twinaphex a8696e2506 (RSound) Bake in rsound for Android port - should also be possible
to bake it in by default for PC now - made librsound.c crossplatform
2013-11-01 00:07:52 +01:00
twinaphex dd68d46b4c (Android) Wrap pthread calls 2013-10-31 23:12:40 +01:00
Chris Merrett 3ec7065238 Added Android support for cheap G910 gamepad. 2013-10-22 22:31:48 +01:00
twinaphex d2c87e3039 Convert most C99-style for loop initial declarations to C89-compliant
ones
2013-10-22 15:08:17 +02:00
Themaister 7df4500024 Use native side asset extraction. 2013-10-14 21:08:41 +02:00
twinaphex abb829283b Take out messy Dpad emulation code - this will require an entire
rewrite where we come up with a solution that works the same across
console/PC/mobile
2013-10-05 20:55:37 +00:00
twinaphex f44d6f3526 Add more info files 2013-10-05 03:55:22 +00:00
twinaphex 737520143f (Android) Add FC30 Gamepad to autodetection list (untested) 2013-09-19 02:13:34 +02:00
twinaphex a36f7a6b9a (Anroid) Add Wikipad (untested/preliminary) to autodetection list 2013-09-19 02:07:49 +02:00
twinaphex 650c6f4885 (Android) Add Much iReadGo i5 to autodetection list 2013-09-19 01:35:59 +02:00