Commit Graph

2814 Commits

Author SHA1 Message Date
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 150539decc Take out header include in frontend.c 2014-10-08 01:08:16 +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 7270f8982a (OSX) Get rid of unused variable warnings for now on OSX 2014-10-07 16:51:25 +02:00
Twinaphex 665a56b0b4 (iOS) Properly implement this - seems to fix the issue on second startup
with the simulator
2014-10-07 04:55:14 +02:00
Twinaphex 3280c0b2c9 (iOS) Build fix 2014-10-07 04:46:14 +02:00
twinaphex 3512919f9a (iOS) Start implementing frontend_apple_get_environment_settings 2014-10-07 04:43:59 +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
Jay McCarthy 0adcd2df76 Change interpretation of iteration return 2014-10-04 09:11:26 -04:00
twinaphex 458eff5f4d Both the 'pause' state and the 'menu' state return 1 - so that
we can signal to the Apple upper-layer function that we want
to run CFRunLoopWakeUp
2014-10-04 14:14:45 +02:00
twinaphex f86ad85fcd Use -1 for indicating we want to exit out of rarch_main_iterate 2014-10-04 13:41:57 +02:00
twinaphex e79d3d1630 Change return values for rarch_main_iterate and do_state_checks 2014-10-04 13:30:09 +02:00
Twinaphex 94f653ed2d Merge pull request #1087 from aliaspider/master
(GLUI) fixes segfault when selecting a video filter.
2014-10-04 03:18:55 +02:00
aliaspider 6ae462a61c (GLUI) fixes segfault when selecting a video filter. 2014-10-04 02:17:32 +01:00
Twinaphex 81ffa31441 (Apple) Comment out CFRunLoopWakeUp 2014-10-04 02:28:26 +02:00
twinaphex d68903f417 Add quick workaround for 100% CPU activity for iOS - NOTE -
FIXME/TODO should be acted upon since this is quite bad behavior
in its current state
2014-10-04 02:10:22 +02: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
twinaphex 86e0292883 (GX) Fix build 2014-10-03 17:01:56 +02:00
Twinaphex bdbd8842d3 Merge pull request #1082 from lakkatv/lakka
(Lakka) Fix subitem icon x coordinate
2014-10-03 15:38:03 +02:00
Jean-André Santoni 14b2396fd8 (Lakka) Fix subitem icon x coordinate 2014-10-03 15:31:08 +02:00
Twinaphex aa990f427f Merge pull request #1081 from lakkatv/lakka
(Lakka) Fix trigger menu animation flickering
2014-10-03 14:20:37 +02:00
Jean-André Santoni 95b22058fe (Lakka) Fix trigger menu animation flickering 2014-10-03 14:20:32 +02:00
twinaphex db47e069c2 Get rid of unused negative_return macro 2014-10-03 14:08:42 +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 e6a79f798b Refactor MODE_EXITSPAWN and MODE_EXITSPAWN_START_GAME 2014-10-02 21:39:29 +02:00
twinaphex a0e3404422 Free up g_extern.lifecycle_state - start with getting rid of
MODE_EXTLAUNCH_MULTIMAN/MODE_EXITSPAWN_MULTIMAN
2014-10-02 21:17:32 +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
twinaphex f273b34f73 deinit_msg_queue becomes static function - clean it up in rarch_main_state_free 2014-09-30 21:29:28 +02:00
twinaphex 9daad8bdb8 Split up rarch_main_clear_state into two functions - rarch_main_state_new
and rarch_main_state_free
2014-09-30 20:46:15 +02:00
Toad King b0ade7e010 add getVendorId and getProductId to android device detection (needs testing) 2014-09-30 12:31:37 -05: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
Twinaphex 53f3555076 (Apple) Fix pause hotkey locking up the app 2014-09-29 21:50:27 +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 c7d6eaa830 Refactor RARCH_ACTION_STATE_MENU_PREINIT into RARCH_ACTION_STATE_MENU_RUNNING 2014-09-29 13:27:28 +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 3c8cc513ab Make it possible to compile without menu support again 2014-09-28 18:01:59 +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 3bfa247770 (frontend.c) cleanups 2014-09-28 17:35:58 +02:00
twinaphex 94de11b060 Add resampler directory setting 2014-09-27 15:55:55 +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 7b49e072ff Get rid of unnecessary function main_entry_iterate_shutdown 2014-09-24 08:33:43 +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 ff9a16d407 Refactor main entry iteration function 2014-09-21 08:05:35 +02:00
twinaphex bdf9df6c2e Clean up more code in frontend.c 2014-09-21 07:39:17 +02:00
twinaphex 29aed58e4e Refactor MODE_LOAD_GAME 2014-09-21 06:50:10 +02:00
twinaphex 7056c9ca39 Refactor MENU_CLEAR_INPUT 2014-09-21 06:41:47 +02:00
twinaphex 9dc35b056f Refactor MODE_MENU_PREINIT code 2014-09-21 06:33:49 +02:00
twinaphex 9e362a4f35 Revert "Add stub functions for get_video_driver in frontends"
This reverts commit 98eaaf8f5f.
2014-09-20 23:35:55 +02:00
twinaphex 98eaaf8f5f Add stub functions for get_video_driver in frontends 2014-09-20 23:25:46 +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
Higor Eurípedes 25b09cdc78 Fix typedef redefinition 2014-09-16 18:01:24 -03:00
twinaphex 7a66467161 Create macro BIND_PRESSED - wrapper around BIT64_GET 2014-09-16 18:08:44 +02:00
twinaphex a5e367d2f0 More of aforementioend 2014-09-16 09:48:47 +02:00
twinaphex d363bdf24e Take out frame_buf_show in menu_driver.h 2014-09-16 06:09:23 +02:00
twinaphex 5188b3cc56 (Menu) Don't need menu_type_is anymore in menu display drivers 2014-09-16 04:21:31 +02:00
twinaphex b857890d1e (Lakka) Fixes 2014-09-16 01:36:28 +02:00
twinaphex 272e4d41a1 Don't rely on retro_time_t typedef for menu_driver API 2014-09-16 01:29:33 +02:00
twinaphex fffed52892 Silence warning 'variable is used before its value is set' 2014-09-16 01:09:10 +02:00
twinaphex a09e04f679 Split up driver_menu.h into three separate header files -
for menu display API, menu backend API, and menu driver general API
2014-09-16 00:52:07 +02:00
Twinaphex 18e20b0975 Merge pull request #1023 from heuripedes/frontend
(frontend.c) Fix include
2014-09-16 00:27:59 +02:00
Jean-André Santoni 2836d19052 (Lakka) Display a black background if no png background supplied 2014-09-16 00:18:14 +02:00
Higor Eurípedes e15c683b44 (frontend.c) Fix include 2014-09-15 17:48:11 -03:00
twinaphex 46055eb47b (GLUI) Silence warnings 2014-09-15 22:29:30 +02:00
Twinaphex 994c2d6db5 Merge pull request #1022 from heuripedes/frontend-drivers
(frontend) Add support for frontend specific video drivers
2014-09-15 22:12:39 +02:00
twinaphex bbcf2e5eda (Menu) Implement stub functions for shader manager functions in menu_common_backend.c 2014-09-15 21:54:03 +02:00
Higor Eurípedes b6dd4df368 (frontend) Add support for frontend specific video drivers 2014-09-15 16:48:55 -03:00
twinaphex 5ad098cdf9 (GLUI) Turn box_message into char variable of fixed size 2014-09-15 20:02:50 +02:00