Commit Graph

2255 Commits

Author SHA1 Message Date
twinaphex 6c51889430 (RMenu) Add safety check in rmenu_init 2014-10-10 19:22:57 +02:00
twinaphex 064fbfb35c (Lakka) Uniquely name vertex and tex_coord variables 2014-10-10 19:18:25 +02:00
twinaphex f660071355 (Lakka) Every global variable moved over to lakka_handle_t now 2014-10-10 18:45:22 +02:00
twinaphex 0962b83455 Move more variables to lakka_handle_t pt. 3 2014-10-10 18:41:41 +02:00
twinaphex f021b1818f (Lakka) Move more variables over pt. 2 2014-10-10 18:20:52 +02:00
twinaphex 75002d26a7 (Lakka) Move more variables over 2014-10-10 18:10:13 +02:00
twinaphex dd55a65216 Move margin variables over to lakka_handle_t 2014-10-10 17:58:02 +02:00
twinaphex f58cd011e8 Move more variables to lakka_handle_t 2014-10-10 17:50:55 +02:00
twinaphex af18048837 (Lakka) Create lakka_free_userdata 2014-10-10 16:55:36 +02:00
twinaphex 60e5b881b9 (Lakka) Move categories over to userdata too 2014-10-10 16:53:02 +02:00
twinaphex c6a27e46ae (Lakka) Start moving global variables over to lakka_handle_t struct, and
bind it to driver.menu->userdata
2014-10-10 16:38:02 +02:00
twinaphex ca25d46742 (GLUI) Implement menu->userdata for GLUI 2014-10-10 16:23:12 +02:00
twinaphex e853eb88d7 Add userdata variable to menu_handle_t 2014-10-10 15:52:12 +02:00
twinaphex c8d9a71424 (XMB) Cleanups 2014-10-10 05:54:36 +02:00
twinaphex 7fed404a8d Cut down on some calls made to add_tween 2014-10-10 00:42:22 +02:00
twinaphex 821e37f480 Start reimplementing tween.c functions 2014-10-10 00:01:45 +02:00
Jean-André Santoni 0d9261663c (XMB) Implement context reset 2014-10-09 22:59:05 +02:00
twinaphex 5c728cef82 (XMB) Cleanups pt. 1 2014-10-09 22:45:29 +02:00
twinaphex 5f50570313 (XMB) Rename num_nodes to something more sane 2014-10-09 22:33:23 +02:00
twinaphex 4a6e59d35e Run xmb_selection_pointer_changed for all 'navigation'-related
functions right now
2014-10-09 22:30:17 +02:00
twinaphex 6995d46529 (XMB) Make some stub function implementations for navigation/list operation callbacks 2014-10-09 22:25:13 +02:00
twinaphex 07cd41c46b (XMB) Move another global variable to XMB 2014-10-09 21:57:05 +02:00
twinaphex fd7824ede5 (XMB) Don't use strcpy - always use strlcpy 2014-10-09 21:52:15 +02:00
twinaphex f0dca2cc18 (XMB) Some cleanups 2014-10-09 21:47:40 +02:00
Twinaphex 0d9a45cff0 Merge pull request #1109 from lakkatv/xmb
(XMB) Fix setttings values display
2014-10-09 19:22:08 +02:00
Jean-André Santoni ca11654e49 (XMB) Fix setttings values display 2014-10-09 19:22:42 +02:00
twinaphex 6f84dbd710 apply_deferred_settings - nit 2014-10-09 19:21:44 +02:00
Twinaphex c1ec8811f3 Merge pull request #1108 from lakkatv/xmb
(XMB) Use the populate entries callback, fixes the segfault
2014-10-09 19:06:20 +02:00
Jean-André Santoni 0dcf1949ad (XMB) Use the populate entries callback, fixes the segfault 2014-10-09 19:06:07 +02:00
Mike Robinson b67c86de28 Add support for deferred settings changes, defer audio latency 2014-10-09 11:09:36 +01:00
twinaphex 623e19edd5 (XMB) Cleanups 2014-10-09 05:35:18 +02:00
Twinaphex 91f2090297 Start adding xmb.c to Apple build 2014-10-09 05:06:32 +02:00
twinaphex 438fcccbbf (XMB) Uniquely name global vertex and tex_coord 2014-10-09 04:51:42 +02:00
twinaphex 84a35d4176 (XMB) Encapsulate everything inside xmb_handle_t struct 2014-10-09 04:34:16 +02:00
Twinaphex de130dd516 Build fix for non-HAVE_NETPLAY 2014-10-09 04:04:56 +02:00
twinaphex 86783713c8 (XMB) Build fixes 2014-10-09 02:58:05 +02:00
Twinaphex 6f951cbd8b Merge pull request #1106 from lakkatv/xmb
Xmb
2014-10-09 02:41:33 +02:00
Jean-André Santoni fed8744aef (XMB) Vertical animations 2014-10-09 02:41:08 +02:00
Twinaphex a86d5550a5 Merge pull request #1105 from aliaspider/master
(Lakka) fix segfault.
2014-10-09 02:34:05 +02:00
aliaspider e34402e98e (Lakka) fix segfault. 2014-10-09 01:32:56 +01:00
twinaphex a5d457728c (Lakka) Take out dead font driver code 2014-10-09 02:20:07 +02:00
twinaphex 3ba45d3eae Create init_lists in menu display driver 2014-10-09 01:31:11 +02:00
Jean-André Santoni c162510005 (XMB) Make functions static 2014-10-09 01:24:54 +02:00
Jean-André Santoni 7018d58731 (XMB) Initial commit 2014-10-09 01:21:22 +02:00
twinaphex 8cb7620f0c list_mainmenu and list_settings already get initialized by
menu_entries_push_list
2014-10-09 01:04:54 +02:00
twinaphex e5ab079298 Maintain two rarch_setting_t * lists in driver.menu - one
for main menu and the other for settings menu - regenerate these
when needed
2014-10-09 00:50:35 +02:00
twinaphex 1fe95bdafb Create menu_init_list and menu_free_list 2014-10-09 00:23:39 +02:00
twinaphex 80578199f6 Reduce calls to 'draw_frame' to one 2014-10-08 21:43:19 +02:00
twinaphex bb7b3a0d70 Add RARCH_CMD_OVERLAY_NEXT 2014-10-08 18:26:46 +02:00
twinaphex c35d25c76e Add RARCH_CMD_NETPLAY_FLIP_PLAYERS and RARCH_CMD_FULLSCREEN_TOGGLE 2014-10-08 16:41:08 +02:00
twinaphex 7391b7573b (Menu) Remove menu->last_time - unused 2014-10-08 04:44:43 +02:00
twinaphex 4100f40373 (Menu) Cleanup 2014-10-08 02:46:46 +02:00
twinaphex da3734e8c7 Add mask parameter to setting_data_get_list 2014-10-08 02:13:07 +02:00
twinaphex 0e2ce4d8d3 (Menu) Input Options and Shader Options don't go through settings list
yet, so put them back in menu_common_type_is
2014-10-07 23:09:21 +02:00
twinaphex 7daf5874e1 Dehardcode some code in menu_common_type_is 2014-10-07 22:52:31 +02:00
twinaphex 0e31f60ad1 Dehardcode some code in menu_entries.c 2014-10-07 22:48:57 +02:00
twinaphex 8dbe11613d Add need_refresh parameter to setting_data_get_list 2014-10-07 02:49:04 +02:00
twinaphex 8ac298a232 (Menu) Cleanup menu_action_setting_set somewhat 2014-10-06 23:43:17 +02:00
aliaspider a30ca8a082 (Lakka) fix texture loading when video_threaded is set to 'true' 2014-10-06 02:41:53 +01:00
aliaspider ce9cd4ac8f (Lakka) fix segfault due to uninitialized pointer in coords. 2014-10-06 01:37:04 +01:00
twinaphex e0b977215f Rename some macros for bit get/setting 2014-10-05 15:48:06 +02:00
twinaphex 3d68429aca Change menu_iterate return value to int 2014-10-04 16:20:28 +02:00
aliaspider 6ae462a61c (GLUI) fixes segfault when selecting a video filter. 2014-10-04 02:17:32 +01:00
twinaphex aa961dba9e Add 'Limit Maximum Run Speed' setting - set this to 'off' to
get the fastforward_ratio = -1 (no limit) setting again
2014-10-03 18:05:46 +02:00
Jean-André Santoni 14b2396fd8 (Lakka) Fix subitem icon x coordinate 2014-10-03 15:31:08 +02:00
Jean-André Santoni 95b22058fe (Lakka) Fix trigger menu animation flickering 2014-10-03 14:20:32 +02:00
twinaphex cf22277871 Only call RARCH_CMD_HISTORY_INIT from menu_load_content - it
already deinits and inits behind the scenes
2014-10-03 13:19:55 +02:00
twinaphex 4a623684c2 Init history file right before we attempt to push something to it
in rarch_main
2014-10-03 13:07:33 +02:00
twinaphex 154e7caf17 menu_environment_get - only set libretro core if g_extern.has_set_libretro
is false
2014-10-03 11:27:19 +02:00
twinaphex 7a6ee6a300 Get rid of MODE_MENU_HD too -g_extern.lifecycle_state can now
be used for 'injecting' button presses (i.e. libretro button presses
and/or meta button presses)
2014-10-02 21:57:01 +02:00
twinaphex e581436c0a Remove unused menu_action_ok LOG 2014-10-02 17:48:40 +02:00
twinaphex b22cf18228 (GL/Shaders) Put fixed-function vertex/matrix coord code inside shader
backend files as fallback routines
2014-10-02 15:17:21 +02:00
Twinaphex 7bfde3df63 Merge pull request #1077 from lakkatv/lakka
(Lakka) Un-hardcode alpha values
2014-10-02 13:39:05 +02:00
Jean-André Santoni 30f4572fda (Lakka) Un-hardcode alpha values 2014-10-02 13:36:03 +02:00
twinaphex 6c675e6580 Create gfx/gl_common.c 2014-10-02 13:32:42 +02:00
twinaphex 6b054da299 Rename shader_common to shader_context 2014-10-02 13:21:45 +02:00
twinaphex 28ab662668 (PS3) Build fixes 2014-10-02 13:00:04 +02:00
twinaphex 780c3220a0 Build fix for targets with shaders - get rid of now
obsolete menu_common_backend.h header
2014-10-02 11:36:52 +02:00
twinaphex e07ae03047 (GX) Build fix 2014-10-02 11:34:06 +02:00
twinaphex e4fd66ed98 (menu_shader.c) Fix dependency on shaders being there 2014-10-02 11:31:31 +02:00
twinaphex 89e449cc86 Get rid of header dependencies on GL in shader_common.h 2014-10-02 11:27:11 +02:00
twinaphex ca12482af0 Move shader files to gfx/shader/ 2014-10-02 00:45:11 +02:00
Jean-André Santoni abe6aa79fe (Lakka) Fix label display with video_threaded 2014-10-01 23:52:04 +02:00
Jean-André Santoni 66cf8bd820 (Lakka) Make effects depending on FBO optional and disabled for now 2014-10-01 22:44:36 +02:00
twinaphex 2523efdf48 (Lakka) Cleanups 2014-10-01 16:27:36 +02:00
twinaphex 23e1744235 (Menu) Update rmenu display drivers 2014-10-01 15:17:34 +02:00
twinaphex d99fa70fe0 (menu_input_line_cb.c) Get rid of some unneeeded variables - silence
warnings
2014-10-01 15:16:03 +02:00
Jean-André Santoni c85d32b8a2 (Lakka) Fix draw_icon in gles2 2014-09-30 19:01:16 +02:00
Jean-André Santoni ce3ebc1bdb (Lakka) Fix GLES2 build 2014-09-30 18:12:37 +02:00
Jean-André Santoni 094c1022fb (Lakka) Fix shader coords bug 2014-09-30 16:19:22 +02:00
Jean-André Santoni 21de27d935 (Lakka) Fix zoom out animation 2014-09-30 15:16:47 +02:00
Jean-André Santoni d926d119a3 (Lakka) Fix menu toggle 2014-09-30 14:57:19 +02:00
Jean-André Santoni d0001eb666 (Lakka) FBO 2014-09-30 14:44:13 +02:00
twinaphex 4b0bcf39cc Get rid of dead code in menu_iterate 2014-09-30 12:43:06 +02:00
Vladimir Panteleev d0e970f175 Fix/reimplement input flushing
This fixes:

- menu toggle erratically not working on Android
- stray input going to libretro core when resuming content
- bound keys triggering as soon as they're bound on Android
- menu key repeat also repeating keys which should not be repeated
- issues caused by relying on timeouts for flushing

Architectural changes:

- menu_ctx_driver_t::input_postprocess now takes state and old_state
  (this allows getting rid of menu_handle_t::trigger_state)

Related changes:

- remove some no-op input_postprocess handlers (same effect as NULL)
- menu_iterate now uses the parameters passed to it, instead of
  polling menu_input
- menu_input is now merged into meta_input_keys_pressed
2014-09-29 12:58:52 +00:00
Vladimir Panteleev 85f745e587 Document some input-related variables 2014-09-29 12:56:31 +00:00
twinaphex 2e230fe9b4 (menu) draw_frame - cleanups 2014-09-29 14:41:24 +02:00
twinaphex 295e83bfc0 (Menu) Implement pause_libretro functionality 2014-09-29 14:38:37 +02:00
twinaphex ae6c8fa7fb (Settings data) Create new category 'Menu Options' 2014-09-29 14:19:40 +02:00
twinaphex 449cb9e9ed (Menu) Do away with throttle_frame in menu_iterate - let rarch_main_iterate
do this
2014-09-28 19:11:11 +02:00
twinaphex 822bbe4e92 Create menu_shader_manager_apply_changes and move code to menu_shader.c 2014-09-28 17:42:31 +02:00
twinaphex 828e02cb49 menu_environment_get - implement has_set_save_path/has_set_state_path/
has_set_verbosity
2014-09-26 06:09:36 +02:00
twinaphex 19e5efe431 Take out unused load_menu_content_history 2014-09-26 06:04:08 +02:00
twinaphex 3b94edf14e (Menu) Grab all libretro keys in menu_input 2014-09-26 05:55:46 +02:00
Twinaphex 28c212c792 Merge pull request #1060 from lakkatv/lakka
(Lakka) Fix two submenu bugs
2014-09-25 23:32:02 +02:00
Jean-André Santoni 7fb42d5da9 (Lakka) Fix subitems fade out 2014-09-25 23:22:17 +02:00
Jean-André Santoni 61435123d0 (Lakka) Fix initial alpha and zoom for settings subitems 2014-09-25 23:17:22 +02:00
Jean-André Santoni 7c2bd73dfd (Lakka) Remember settings active submenu 2014-09-25 23:04:34 +02:00
Jean-André Santoni 6f996ade8c (Lakka) Prevent lakka_reset_submenu to reset all submenus 2014-09-25 22:58:32 +02:00
Twinaphex 470684cb43 menu_input - Remove unused variable 2014-09-25 21:21:46 +02:00
Twinaphex 7020b979da Merge pull request #1059 from lakkatv/lakka
(Lakka) Fix draw_text alpha when animating with a big LAKKA_DELAY
2014-09-25 20:50:15 +02:00
Jean-André Santoni 788a081f00 (Lakka) Fix draw_text alpha when animating with a big LAKKA_DELAY 2014-09-25 20:02:38 +02:00
twinaphex 2fe6103a61 Get rid of more unnecessary code now for menu toggle in menu_iterate 2014-09-25 18:40:01 +02:00
twinaphex d1d504df6c Implement menu toggle in a better way 2014-09-25 18:38:35 +02:00
twinaphex 00e605d9ba Take out MODE_MENu - and introduce g_extern.is_menu 2014-09-25 06:33:28 +02:00
twinaphex 13ac38324d Lower block_hotkey_until value to +15 2014-09-25 05:02:08 +02:00
twinaphex aa6d779fbc Added 1-second timeout when binding hotkeys 2014-09-25 04:44:24 +02:00
twinaphex 8015061720 Refactor menu_input - add input_keys_pressed in addition to
meta_input_keys_pressed
2014-09-25 04:19:09 +02:00
twinaphex 2309a3e716 Move input_poll to libretro_version_1.c 2014-09-24 09:52:01 +02:00
Twinaphex ff4e0928f4 Get rid of unused variable warnings 2014-09-24 08:30:05 +02:00
twinaphex 57489cb1be Move MAX_COUNTERS define to menu_common.h 2014-09-24 08:27:53 +02:00
twinaphex 9d94513dc4 (Menu/Shaders) Move all shader manager code to frontend/menu/menu_shader 2014-09-24 07:56:47 +02:00
twinaphex 93fbb44402 (Menu) Move menu_common_core_setting_toggle functions to menu_common.c 2014-09-24 06:46:18 +02:00
twinaphex bf2f55dc60 Move bind_iterate / bind_iterate_keyboard to menu_input_line_cb 2014-09-24 06:43:42 +02:00
twinaphex 90be5e6f93 (Menu) Cleanups pt. 1 2014-09-24 06:35:57 +02:00
Twinaphex faebff2db0 Merge pull request #1055 from Monroe88/patch-2
Only apply shader parameters immediately in Shader Parameters (Current).
2014-09-24 05:20:22 +02:00
twinaphex a7c10a5a17 (Menu) Refactor menu_custom_bind_iterate_ functions 2014-09-24 05:17:52 +02:00
Monroe88 a87efba091 Only apply shader parameters immediately in Shader Parameters (Current). 2014-09-23 21:19:03 -05:00
Twinaphex 6353240af4 Get rid of unused variables 2014-09-21 18:02:23 +02:00
Timo Strunk cb5c951a70 Merge remote-tracking branch 'upstream/master' into zip_ui
Conflicts:
	retroarch.c (defer_core was moved and modified by me)
2014-09-21 17:37:23 +02:00
Timo Strunk 193f416f8f Zip UI cleanup before pull request 2014-09-21 11:03:32 +02:00
twinaphex 430e0f1911 Reimplement rarch_main_iterate - menu iteration frame now gets
called from here too. Do away with the hoky 'MENU_GAME' state
as well.
2014-09-21 09:18:26 +02:00
twinaphex 9dc35b056f Refactor MODE_MENU_PREINIT code 2014-09-21 06:33:49 +02:00
Timo Strunk adfa00e193 Removed MENU_ACTION_Y, small bugfix with selections in zip select 2014-09-20 20:42:21 +02:00
Timo Strunk 3575f353bf Choosing whether to open or load a zip file in detect core should work now 2014-09-20 20:07:26 +02:00
Timo Strunk 864a5cdc4f Always interpret files as carchives in case of detect_core_list to allow browsing them. 2014-09-20 20:06:52 +02:00
Timo Strunk 97ea43994e Zipfiles open or run half finished 2014-09-20 19:10:05 +02:00
Timo Strunk 9c9543e7eb Added toggle button to open zip files in load content and detect core 2014-09-19 20:31:53 +02:00
Timo Strunk 7bc369642d Added generic message buffer and open_compressed flag to menu_driver 2014-09-19 20:31:18 +02:00
Timo Strunk 3672b4ba40 Added menu button Y 2014-09-19 20:28:30 +02:00
Jean-André Santoni c172169a9e (Lakka) Move tweening related functions in an external lib
so they can be used from another menu driver. Also add more tweening functions.
2014-09-19 13:36:18 +02:00
Jean-André Santoni 9bbd0b9825 (Lakka) Make settings values responsives 2014-09-19 11:31:06 +02:00
twinaphex f16a065cdd Fixes 'block hotkey enable' 2014-09-18 04:04:33 +02:00
twinaphex 4c4ae11ab6 Optimizations to input handling in rarch_main_iterate - pass
'trigger' state around
2014-09-17 20:15:56 +02:00
twinaphex 82806dcd85 Hide away last BIND_PRESSED invocations with check_quit_key_func 2014-09-17 17:48:41 +02:00
twinaphex 3892c8326d Use macro functions to hide away some of the ugliness 2014-09-17 07:38:49 +02:00
twinaphex 92938fe45f Optimizations - prevent static bools everywhere in check_* functions
- input_keys_pressed_func takes a pointer and sets it to the last
input state. We then pass this around functions and use it where
necessary
2014-09-17 06:55:03 +02:00
twinaphex d8d9b35a57 (menu_driver.h) Fix relative paths 2014-09-17 00:36:31 +02:00
twinaphex 310438f15b Refactor away input_key_pressed_func 2014-09-17 00:29:47 +02:00
twinaphex 7a66467161 Create macro BIND_PRESSED - wrapper around BIT64_GET 2014-09-16 18:08:44 +02:00