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
Twinaphex
f89690a252
(GLUI) Silence warning
2014-09-15 18:26:56 +02:00
Higor Eurípedes
83b6aeb6cc
Fix C++ build linkage
2014-09-15 13:14:19 -03:00
twinaphex
9e132a0c24
(Lakka) build fix
2014-09-15 17:32:05 +02:00
Twinaphex
e1ddd908fe
Merge pull request #1020 from lioncash/leak
...
Fix a few memory leaks
2014-09-15 17:31:24 +02:00
Lioncash
d1f908b8f8
Fix a few memory leaks
...
Also guard against calloc failure in lakka_init.
2014-09-15 11:29:30 -04:00
Jean-André Santoni
353f7d2c1e
(GLUI) Display message boxes
2014-09-15 12:36:52 +02:00
twinaphex
a71b42e4b3
(RARCH_CONSOLE/RARCH_MOBILE) Add default playlist dir for consoles/mobile
2014-09-15 08:03:58 +02:00
twinaphex
756356870b
(Menu) Refactor more code to menu_action.c
2014-09-15 07:52:08 +02:00
twinaphex
35cc778bb3
(Lakka) Implement setting cmd_trigger
2014-09-15 07:42:35 +02:00
twinaphex
e53c7d590f
(Lakka) Fix menu toggle
2014-09-15 07:38:28 +02:00
twinaphex
3c05bc4b52
(Menu) Disable going back to main menu when pressing menu toggle button
...
(will later be exposed again as a toggleable option)
2014-09-15 07:23:50 +02:00
twinaphex
48a44e8e64
(Menu) Take out RARCH_MENU_TOGGLE for old_input_state - no longer
...
needed
2014-09-15 07:08:17 +02:00
twinaphex
89676e8424
Add Playlist Directory path setting
2014-09-15 04:12:41 +02:00
Twinaphex
416307fcd3
(OSX) Add GLUI to OSX solution
2014-09-15 01:35:23 +02:00
twinaphex
696b1cdef8
(Menu) Refator common code into calls to menu_action_setting_apply
2014-09-15 00:34:00 +02:00
twinaphex
899e69f921
(Settings/menu) Add WITH_CMD to settings_data.c
2014-09-14 23:44:32 +02:00
Twinaphex
af36280c79
(Menu) Buildfix for prototypes
2014-09-14 22:41:44 +02:00