Commit Graph

8858 Commits

Author SHA1 Message Date
Squarepusher
edb4ec6509 Merge pull request #388 from lioncash/master
[Android] UI revamp/decoupling.
2013-11-17 04:29:39 -08:00
Lioncash
8777d958dc [Android] Cache the context in MainMenuFragment. Makes things look nicer, also gets rid of a few variable declarations. 2013-11-17 03:37:04 -05:00
Lioncash
26e9bef7ac [Android] Simplify the setting of the AlertDialog in function detectDevice. setMessage allows setting the message through just the message string ID. 2013-11-17 03:28:19 -05:00
Lioncash
4368467977 [Android] Finish the RetroTVMode activity when it launches the activity within its onCreate. Avoids a blank view when the launched activity finishes. 2013-11-17 03:08:23 -05:00
Lioncash
4b79284064 {Android] Fix a string's casing and structure. 2013-11-17 02:55:12 -05:00
Lioncash
114cf4e926 [Android] Initial huge underlying UI update:
- The UI is now mostly Fragment-centric (finally!)
- The Load Core, Load Game, Load Game (History) are now DialogFragments.
- The directory activities are killed off and consolidated into one fragment named DirectoryFragment.

DirectoryFragment is now a self-contained instantiable DirectoryFragment that can be instantiated anywhere by doing roughly the following.

DirectorFragment dFrag = DirectoryFragment.newInstance(/* Resource ID for a string title here*/);
dFrag.show(getFragmentManager(), "tag");

There are also other methods that were modified within the DirectoryFragment, such as addAllowedExt and disAllowedExt being changed to support a variable amount of arguments. This way, multiple calls of the same function aren't necessary in the case of adding multiple extensions, as well as supporting the case where only one extension is added.

DirectoryFragment also has a new interface added to it called OnDirectoryFragmentClosedListener. Say you have a DirectoryFragment instance, but want to use the selected item's path for something *after* the dialog has closed, with this interface, it is now possible. Just implement this interface within an Activity or Fragment, and then set the DirectoryFragment to use the listener through setOnDirectoryFragmentClosedListener() method.

Now what happens if this isn't set, wouldn't it be pointless to even use a DirectoryFragment in this case?
Not necessarily. What if you only wanted to save the selected item into the applications SharedPreferences?
This is a situation where it would be unnecessary to need that interface. So, to make a DirectoryFragment.java for the sole purpose of saving a selected directory/file path to the SharedPreferences, you would do this:

DirectoryFragment dFrag = DirectoryFragment.newInstance(/* Resource ID to a string title here*/);
dFrag.setPathSettingKey("key to store value in SharedPreferences at");
dFrag.show(getFragmentManager(), "tag");

Outside of these major changes, large portions of the code outside of this were simplified.
2013-11-17 02:37:33 -05:00
twinaphex
7167ccb5b9 (RGL PS3) Replace more GCM_FUNC entries 2013-11-17 04:57:19 +01:00
twinaphex
41a65eb32a (PS3 RGL) Replace more GCM_FUNC calls 2013-11-17 00:49:34 +01:00
twinaphex
5312ac8c29 (PS3 RGL) Don't call cellGcmSetAntialiasingControl 2013-11-16 20:50:32 +01:00
twinaphex
1850428ef6 (RGL PS3) Using namespace cell::Gcm can go now 2013-11-16 18:01:30 +01:00
Themaister
271939875a Update libretro camera API.
Need initialized/deinitialized callbacks to properly
handle driver reinit.
2013-11-16 17:54:18 +01:00
twinaphex
5c89e9106a (RGL PS3) Turn rglGcmFifo into a struct instead of a C++-style struct
(ie. class)
2013-11-16 17:48:11 +01:00
Themaister
28e9ce7d30 Clear out camera/ on make clean. 2013-11-16 17:31:49 +01:00
Themaister
6d6e964672 Fixup CXX_BUILD.
Cleans lots of sign-related warnings as well.
2013-11-16 17:31:49 +01:00
Themaister
a824952dec Some V4L2 cleanups.
Avoids global state for buffers, and make processing loop a bit simpler.
2013-11-16 17:31:49 +01:00
twinaphex
8826034a55 (PS3) Get rid of CELL_SDK_VERSION macro if conditional 2013-11-16 16:31:16 +01:00
twinaphex
f0ab69b115 (PS3) Split up OSK code into separate file 2013-11-16 16:02:04 +01:00
twinaphex
c062f36059 (OSK) Cleanup conditionals in menu_common.c 2013-11-16 15:56:52 +01:00
twinaphex
6828183b64 (OSK) Move runtime state (OSK callbacks) to g_extern 2013-11-16 15:54:50 +01:00
twinaphex
683c6432cd Add camera_device to retroarch.cfg 2013-11-16 03:28:45 +01:00
ToadKing
be830a0a1c [V4L2] set the frame_raw_cb pitch correctly 2013-11-15 19:38:48 -05:00
ToadKing
8f78112261 [V4L2] more conversion fixes 2013-11-15 19:35:16 -05:00
ToadKing
bc29115692 [V4L2] fix bad poitner arithmetic 2013-11-15 18:30:41 -05:00
ToadKing
e524ee1834 [V4L2] detect core caps correctly 2013-11-15 17:58:01 -05:00
twinaphex
9558a47ada (PS3 RGUI) Working OSK input 2013-11-15 23:19:44 +01:00
twinaphex
be356b7b67 (Menu) Add extra settings 2013-11-15 22:53:58 +01:00
twinaphex
111a5a3ed1 (Salamander) Cleanup 2013-11-15 17:42:43 +01:00
twinaphex
d06eebf9e6 (RGL PS3) cleanups 2013-11-15 17:21:30 +01:00
twinaphex
e8723dec16 (HAVE_OSK) Add OSK to menu iterate function 2013-11-15 05:18:36 +01:00
twinaphex
3ccf5c1457 (Salamander XDK1) Fix 2013-11-15 05:02:39 +01:00
twinaphex
6c394d717c (XDK1 Salamander) Build fix 2013-11-15 04:26:38 +01:00
ToadKing
0bb6c4aafc [EMSCRIPTEN] partially implement raw fb camera mode
need to add RGBA->XRGB conversion
2013-11-14 21:08:17 -05:00
twinaphex
79a4f790fe (XDK1) Menu texture now fills entire screen 2013-11-15 02:54:14 +01:00
twinaphex
ef7d85c1ce (XDK D3D) Some texture menu tweaks 2013-11-15 02:44:17 +01:00
twinaphex
1d067b9148 (V4L2) Check if raw_framebuffer_cb is not NULL 2013-11-15 01:19:54 +01:00
twinaphex
3c70302fb6 (V4L2) Fill in raw_framebuffer code - experimental 2013-11-13 15:36:10 +01:00
twinaphex
921327c7ab Add copyright to platform_apple.c 2013-11-13 12:43:28 +01:00
Squarepusher
4ab77e8405 Merge pull request #385 from libretro/webcam-test
Emscripten webcam driver
2013-11-13 01:25:19 -08:00
ToadKing
aaff8f2648 move prototype camera interface to libretro interface - GL texture only for now 2013-11-12 19:48:36 -05:00
twinaphex
d87c20feee (PS3) Get rid of ps3_input.h 2013-11-13 00:41:03 +01:00
twinaphex
aec049c803 (OSK) Refactor - (Onscreen Keyboard) - PS3-only backend for now -
I will make an overlay-based backend soon too for all other platforms
2013-11-13 00:27:31 +01:00
twinaphex
b20360948f (menu_common) Remove HAVE_OSK - will have to be reimplemented 2013-11-12 23:09:01 +01:00
ToadKing
4b7557c5ae Merge branch 'master' of https://github.com/libretro/RetroArch into webcam-test
Conflicts:
	Makefile.emscripten
2013-11-12 16:27:12 -05:00
ToadKing
27d1a9625f [EMSCRIPTEN] build with an outlining limit 2013-11-12 16:23:09 -05:00
twinaphex
f9b502773d (OSK PS3) Fix free 2013-11-12 20:02:25 +01:00
twinaphex
8ce8051654 (OSK PS3) Refactor OSK PS3 input 2013-11-12 17:16:30 +01:00
Themaister
fee97c961f Fix libretro comment. 2013-11-12 16:09:28 +01:00
Themaister
dfff94e5a0 Rework camera interface.
Hook up a more proper interface for libretro. Still very experimental.
2013-11-12 16:02:26 +01:00
Themaister
6f09f4b8e0 Stick to mmap() in v4l2.
Avoids really bloated code. Shouldn't become a problem.
2013-11-12 16:02:26 +01:00
twinaphex
ec2f91f19e (platform_psp.c) use fill_pathname_join instead of snprintf 2013-11-12 15:03:50 +01:00