Commit Graph

1135 Commits

Author SHA1 Message Date
twinaphex 1342b22828 (Android) Input - Take out unused d_pad_emulation 2014-06-09 02:24:30 +02:00
twinaphex f8073b2317 (Menu) Move menu input code to menu_input_line_cb.c 2014-06-08 19:48:38 +02:00
twinaphex 3a17e100aa (Android) Change Shield input binds 2014-06-08 19:14:58 +02:00
twinaphex 140a5b4e64 (Android) Properly implement android_input_key_pressed - menu toggle
button now works
(Android) Removed redundant lifecycle state code
2014-06-08 06:51:06 +02:00
twinaphex 678c7b2649 (Android) Add initial unfinished Shield keybinds with some FIXME notes -
still missing D-pad/analog sticks/menu button
2014-06-08 05:32:22 +02:00
Toad King c09c5c1109 more android input changes. rebinding from RGUI works now. need to re-add autodetect and special behavior for some controllers 2014-06-06 23:41:09 -04:00
twinaphex 683bda4e05 (Android) Cleanup Android sensor manager event queue in android_input_free
function
2014-06-02 14:34:31 +02:00
twinaphex 18d7e6f81e (Android) Input driver refactoring 2014-06-02 14:28:26 +02:00
twinaphex d33f4b8363 (Android) Implement the joypad interface - but don't hook it up
just yet
2014-06-02 13:42:24 +02:00
twinaphex 26b62ba42e Don't abuse g_extern.lifecycle_state for setting RARCH_QUIT_KEY
anymore
2014-06-02 09:52:30 +02:00
twinaphex 001d6e8897 Get rid of PERF_TEST entirely - if Performance Counters setting is
enabled, will also report performance counters log at exit
2014-06-01 22:16:22 +02:00
twinaphex bbf3f17b85 (Android) Properly implement input free function 2014-05-29 23:57:58 +02:00
twinaphex cf3c3efcb8 (Android) Set optimization level to -O2 2014-05-15 12:35:09 +02:00
twinaphex cb53d65fc3 Compile with HAVE_BUILTIN_FILTERS for Android - and some C90 build
fixes for filters. Note/FIXME: We need to get rid of the complex.h
dependency in the equalizer plugin
2014-05-03 04:59:35 +02:00
twinaphex 4dcf25b9d7 (Android) Fix JNI build 2014-04-30 03:31:49 +02:00
Themaister 3ac1150ebc Fixup Ant build for Android. 2014-04-25 16:35:26 +02:00
twinaphex 4942306fff Add HAVE_CC_RESAMPLER to nearly all targets 2014-04-20 04:17:18 +02:00
twinaphex 569de131a0 Move device enums outside of driver.h - and create new callback
for 'getting' the number of 'devices' the input driver supports
2014-04-17 20:47:43 +02:00
Themaister 927ffa7ea3 Revert "(Android) Build fix"
This reverts commit f7c2332c0d.
2014-04-16 01:19:18 +02:00
twinaphex f7c2332c0d (Android) Build fix 2014-04-15 23:28:20 +02:00
Themaister f2c78c36e3 [Android] Add support for GLES3 HW render. 2014-04-14 13:17:05 +02:00
LLeny b528e8df1c Android - Samsung Game Pad EI-GP20 2014-04-04 14:17:39 +02:00
twinaphex 19e474eefa (Android) Set min SDK version back to 9 2014-03-17 19:07:24 +01:00
muzuiget adcc860dcc (Android) Implement immersive mode on Kitkat 2014-03-17 22:09:51 +08:00
twinaphex c52c8cd5b5 (Android) Bump up versioncode
(VideoCore EGL) Fix build
2014-03-13 11:01:46 +01:00
twinaphex d21a0642fb (Android) GPL waiver - bump up year 2014-03-10 19:25:11 +01:00
twinaphex 9a66975589 (Android) Bump version 2014-03-10 05:49:29 +01:00
twinaphex edcd7118ad Take out unused -DHAVE_VID_CONTEXT 2014-02-13 08:54:14 +01:00
Themaister 1082e1d74f Rename RETRO_DEVICE_ID_SENSOR* stuff.
It's no longer polled from input_state, so avoid confusion.
2014-01-20 17:16:25 +01:00
Themaister 87818e0326 Remove some references to accelerometer stuff. 2014-01-20 17:09:31 +01:00
twinaphex 7c95be2d26 (Android) Rewrite sensor functions slightly 2014-01-20 16:28:02 +01:00
twinaphex 9e9a701be3 (Android) (Input) Get rid of unused variable warnings 2014-01-20 15:01:40 +01:00
twinaphex f7915ab55e Change param for get_sensor_input 2014-01-20 14:59:06 +01:00
twinaphex 460670f074 Move sensor value reading to retro_sensor_interface 2014-01-20 14:52:53 +01:00
Bezier89 2aee848163 Couple more changes 2014-01-12 15:14:08 -08:00
Bezier89 2bb6c4ddac Update input_android.c 2014-01-12 14:47:57 -08:00
Bezier89 031d3f829b Update input_android.c 2014-01-12 12:16:20 -08:00
Bezier89 d07c3a6e59 Update input_android.c 2014-01-12 12:10:54 -08:00
twinaphex afd9ad779a (Android) Bump version code to 32 2014-01-11 20:58:14 +01:00
twinaphex b584964c2b (Android) Bump up version 2014-01-11 17:38:04 +01:00
twinaphex 5b2ee14d78 (Android) Build in -lz from now on 2014-01-10 20:40:15 +01:00
Toad King 25a7f0c3cb [Android] work around input bind modifications, fixes custom binds
This is really ugly and should be fixed
2014-01-08 18:02:14 -05:00
Twinaphex 04017b7fd7 Merge pull request #479 from iAmGhost/fix_ireadgo_i5_mappings
Better MUCH iReadGo i5 key mappings.
2014-01-08 04:09:24 -08:00
Daehan Kim 962ee80909 Fixed zipFile resource leaking. 2014-01-07 02:41:50 -08:00
Daehan Kim 370efca314 Better MUCH iReadGo i5 key mappings. 2014-01-07 02:19:28 -08:00
twinaphex c49985ce90 (Android) Build fix 2014-01-07 10:01:08 +01:00
Bezier89 f274a409c7 Allow auto detect core to work with mixed case extensions and zip files. 2014-01-05 12:50:38 -08:00
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 998aac0765 (Android) Links to documentation changed 2014-01-03 00:26:02 +01:00
twinaphex c71f63008e (Android) Bump up version code to 26 - bump up version number to 1.0.0.0 2014-01-02 22:11:22 +01:00
Lioncash bf45b93775 Indicate downloadable cores are still in development for the Android front-end. 2014-01-02 15:43:10 -05:00
twinaphex 0a15a17d44 Update years on all license headers 2014-01-01 01:50:59 +01:00
Hans-Kristian Arntzen cfd487e117 Update Building in Eclipse.md 2013-12-29 13:05:13 +01:00
Themaister 68e2051d0f Update some references. 2013-12-29 13:00:40 +01:00
twinaphex ff036066e2 Rework frontend - separate functions now for iterating per frame
and for doing teardown - Emscripten and Apple ports can make use
of this now so we don't need separate frontend implementations
2013-12-28 21:08:30 +01:00
twinaphex 5c6c88d9d6 (Android) Make some tweaks to input drivers for conformity 2013-12-28 03:44:37 +01:00
twinaphex 6ce9c64e04 (Android) Change default overlay for Android to snes/snes.cfg 2013-12-28 03:14:21 +01:00
twinaphex d1bdd4bd97 (Android/Apple) Set default opacity to 0.7f 2013-12-25 02:41:37 +01:00
Lioncash 192bf387d4 Clean up tab/space mistmatch in RetroActivityLocation.java 2013-12-21 17:01:20 -05:00
twinaphex 9c82f5e89e (Android locatio) Gets location updates now (seems to call
onLocationChanged) but only if Wifi is enabled - Wifi off and
GPS on doesn't work yet
2013-12-21 16:55:05 +01:00
twinaphex 9e3b69cb78 (Android) RetroActivityLocation - some cleanups 2013-12-21 16:43:50 +01:00
twinaphex 2b5ece3804 (ANdroid JNI) Bugfix - onLocationGetHorizontalAccuracy should return
double, not float
2013-12-21 15:04:47 +01:00
twinaphex be5609269a (Android location) Gets a bit further but still not calling onLocationChanged - just renders the text for the first location retrieval and nothing else after that 2013-12-21 14:58:29 +01:00
twinaphex c68312fe31 (Android Location) Some changes - still not working 2013-12-21 06:19:38 +01:00
twinaphex 0d94dd03f7 (Android location) onConnected/onDisconnected reimplemented - still don't seem
to get to onLocationChanged though
2013-12-20 21:49:43 +01:00
twinaphex 1a20317cef (Android Location) Add metadata to manifest 2013-12-20 19:33:14 +01:00
Lioncash 77fbe67dbe [Android] Fix a bug in the DetectCoreDirectoryFragment.
Would crash if an unsupported file was tapped twice because it would set the inFileBrowser boolean to false, thus leading to the attempt to launch said unsupported file. Fixes this.

Also made it display a brief toast if no cores support the extension of the file.
2013-12-20 12:47:39 -05:00
twinaphex 3338513a9a (Android) Add another permission- ACCESS_COARSE_LOCATION - in case LocationManager
needs this
2013-12-20 01:18:35 +01:00
twinaphex 792b27288a (Android) (Location) Function signatures for functions that return
double were wrong - should be D instead of J
2013-12-20 00:42:42 +01:00
twinaphex da6e360e49 (Location) Implement horizontal and vertical accuracy - Android's
location API only provides horizontal API but iOS/OSX API supports
both horizontal and vertical. Maybe consider implementing vertical
accuracy for Android by hand later
2013-12-19 17:36:27 +01:00
twinaphex f0aa0f99fd (Location) Reimplement some parts of the location interface - get_latitude
and get_longitude are gone now in place of get_position. Basically,
from C land we basically do a poll-style queries, but on the
implementation side (ie. Android/iOS/OSX) - they all use callback-based
location updates. So we simply check in the poll function (get_position)
whether position has changed, and if so, update the pointer values and
return true - if not, set them to 0 and return false.
2013-12-19 15:47:47 +01:00
twinaphex 581aab1e3e (Android) Small typo fix 2013-12-19 05:24:12 +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 1659adbfe9 Merge pull request #428 from lioncash/master
[Android] Implement core autodetect.
2013-12-18 17:04:12 -08:00
Lioncash 54d0911868 [Android] Implement core autodetect. 2013-12-18 20:00:20 -05:00
twinaphex fa6459976f (Android) Build fix 2013-12-19 01:01:31 +01:00
twinaphex 250a6d757e (Android) location API - onLocationSetInterval 2013-12-19 00:56:47 +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
Lioncash f162088238 Simplify context retrieving in GPLWaiverDialogFragment, Application context is not necessary in this case. 2013-12-15 11:36:19 -05:00
Lioncash 4b86d80408 Move RetroActivity based classes into their own package. Keeps them localized. 2013-12-15 11:35:28 -05:00
Lioncash b2be996e67 Fix crashing in the core manager for devices on Android 2.3.x
Also remove a now non-existent activity reference from the AndroidManifest.
2013-12-15 10:37:50 -05:00
twinaphex c038f7be8f (Android Phoenix) RetroActivityCommon - Implement getAndroidOSVersion 2013-12-15 14:18:11 +01:00
twinaphex 104ae00915 (Android Phoenix) Split up camera code into RetroActivityCommon 2013-12-15 14:04:43 +01:00
twinaphex 4491140e03 (Android Phoenix) Split up Location functionaltity into RetroActivityLocation 2013-12-15 06:44:45 +01:00
twinaphex a643b2954f (Android Phoenix) Camera Java functions - some small cleanups 2013-12-15 06:23:13 +01:00
twinaphex 99dc8f9712 (Android) Try to properly stop/free/start/reinit camera based on
onResume/onPause/onStop/onDestroy. Doesn't seem to work yet and camera-based
core still crashes when unfocusing app. Might need to do calls back to JNI
shim functions to deinit some stuff or vice versa
2013-12-15 06:19:51 +01:00
twinaphex 66576b12e8 (Android) Initial stub location API/GPS support. Requires Google Play Services so
baking that in as a dependency now by providing the .jar file.

Still need to write stub driver in C that calls these location functions through
JNI - and still need to gather all semantics for libretro API additions
2013-12-15 05:48:28 +01:00
twinaphex b86a2c92e6 (Android) Make common RetroActivityCommon that both RetroActivityFuture and
RetroActivityPast extend from
2013-12-15 01:33:47 +01:00
twinaphex f5edd42535 (Android Phoenix) Add 'permissions' to ModuleWrapper etc. 2013-12-14 21:51:21 +01:00
twinaphex 3baa2e5ee2 (Android) Add permission.ACCESS_FINE_LOCATION - privacy options/settings to follow 2013-12-14 19:25:58 +01:00
Lioncash 61eaf262d8 [Android] Add the export tag to RetroArchPast/Future in the manifest. Allows passing external Intents. 2013-12-09 21:33:43 -05:00
Lioncash 6bdaadb82e Clean up RetroActivityFuture a little. Remove a pointless if statement check (the only Android versions this launches on are the ones that satisfy this condition).
Also misc other cleanup.
2013-12-09 02:29:56 -05:00
Lioncash f57210cb41 Fix duplicate string declarations in strings.xml. 2013-12-09 02:23:57 -05:00
twinaphex 6615f57971 (Android) Ignore FEATURE.LOW_AUDIO_LATENCY - devices like Nvidia Shield set it
to false while having frames per buffer values that are seen as ideal
- so setting it to true will always use those values now.
2013-12-06 21:17:19 +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 98ca741ca0 (Android) Should be backwards compatible with Android 2.3.x again -
2.3.x now uses RetroActivityPast
2013-11-29 01:35:56 +01:00
twinaphex 03ca0d89b2 (Android) Replace logo 2013-11-29 00:25:43 +01:00
twinaphex 60baa25233 (Android) Move around cpufeatures.c/.h to performance/ 2013-11-27 22:57:49 +01:00
twinaphex fc11d4501d (Apple/Android) Rename more 'game'/'emulator' strings 2013-11-26 23:15:05 +01:00
twinaphex d8b5ac7a83 Reword README.md and rewrite 'game' strings 2013-11-26 23:09:12 +01:00
twinaphex a8f51e4477 (Android) Implement 'Quit' button functionality - will still need to build
in working code for 'Back behavior = menu button'
2013-11-26 16:30:29 +01:00
twinaphex a7b34ec794 (Android) Implement all back behaviors 2013-11-26 13:41:33 +01:00
Lioncash 3579319573 [Android] Make a field a local variable in DisplayRefreshRateTest. It's not used elsewhere, so this is safe. 2013-11-25 09:57:06 -05:00
Lioncash 95539090ec [Android] Make CoreSelection and HistorySelection statically instantiable.
Allows showing the dialogs without the need for an actual variable or ugly "new HistorySelection(fm, tag).show();" syntax.

Also moved the else if for "Quit Retroarch" to the bottom of the if statements so its structured relative to the UI.
2013-11-25 09:55:46 -05: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 1d06b07a16 (Android) Add "USED" intent extra to RetroActivity 2013-11-24 17:58:23 +01:00
twinaphex 47c8c26511 (Android) Simplify intent grabbing with JNI 2013-11-24 16:43:57 +01:00
twinaphex 0b7268dfac (Android) Phoenix - get rid of warnings 2013-11-22 23:15:38 +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
Squarepusher 3f47951d3d (Apple) Build fix 2013-11-22 01:10:35 +01:00
twinaphex 7f0aafbcba (Android) Camera update - update onCameraPoll Java function -
remove ret variable - remove FIXME in C camera driver for Android
2013-11-21 15:37:28 +01:00
twinaphex 4df7eabd79 (Android) Camera- take out excessive logging spam 2013-11-21 00:28:49 +01:00
twinaphex c3eb6b1791 (Android) Camera goddamn works - yay 2013-11-21 00:00:37 +01:00
twinaphex 05b70bab87 (Android) Camera - add logs 2013-11-20 23:57:35 +01:00
twinaphex 1cbe95858d (Android) Add some missing functionality to camera texture handling 2013-11-20 23:49:06 +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 8b8c28ae86 (Android) RetroActivity - Add overridden stub onBackPressed - call
works without warning
2013-11-20 19:08:54 +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
twinaphex 3f279a2d5c (Android) Get rid of JNI_OnLoad - unused and unneeded 2013-11-20 15:54:31 +01:00
Squarepusher 0674ab47b0 Merge pull request #394 from lioncash/master
[Android] Fix a tiny bug in MainMenuFragment.
2013-11-19 18:42:58 -08:00
Lioncash 527bb976b0 [Android] Fix a tiny bug in MainMenuFragment. Pass the cores directory if a direct core can't be found. 2013-11-19 21:29:40 -05:00
Squarepusher 7464ae6824 Merge pull request #393 from lioncash/master
[Android] Get rid of the RetroTVMode class.
2013-11-19 18:09:53 -08:00
Lioncash 8a66d5ceef [Android] Get rid of RetroTVMode. We don't need this anymore, since the wonky logic that it was used to work around before has been fixed. 2013-11-19 21:05:26 -05:00
ToadKing b6af8b0e92 more camera changes, still no image 2013-11-19 15:13:29 -05:00
ToadKing 894b2870c0 more android camera work. no longer crashes, but still no image 2013-11-19 14:20:29 -05:00
ToadKing 82104bc7e2 reverse onLowMemory/onTrimMemory removal
we want to override the default behavior and do nothing instead
2013-11-19 11:03:46 -05:00
Lioncash 85a1a21c77 [Android] Clean up RetroActivity. 2013-11-19 10:41:58 -05:00
twinaphex 21bc30a44c (Android) Make RetroActivity invoke JNI_OnLoad - grab pointer to
RetroActivity class - try to use from camera/android.c
2013-11-19 14:30:45 +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
Squarepusher bc17af7ac2 Merge pull request #391 from lioncash/master
[Android] Fix a logging message in GPLWaiverDialogFragment.
2013-11-17 16:25:22 -08:00
Lioncash 4562f865b8 [Android] Fix a logging message in GPLWaiverDialogFragment. Thanks to Alcaro for pointing it out. 2013-11-17 19:23:41 -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
Squarepusher 0c5f375d8c Merge pull request #390 from lioncash/master
[Android] Separate the GPL waiver code into its own DialogFragment.
2013-11-17 16:03:23 -08:00
Lioncash e33c219b10 [Android] Separate the GPL waiver code into its own DialogFragment. 2013-11-17 18:52:41 -05: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 ef3040a78b (Android) Add CAMERA permission 2013-11-17 23:02:06 +01:00
ToadKing b22842ede2 [Android] more additions to the camera activity 2013-11-17 16:45:52 -05:00
Lioncash 089d1a7c50 [Android] More documentation of DirectoryFragment. 2013-11-17 16:22:40 -05:00
twinaphex bad7671159 (Android) Stub camera functions in Java 2013-11-17 21:34:07 +01:00