Commit Graph

361 Commits

Author SHA1 Message Date
Mark W. Kidd 79264c7278 refactor and restore non-android bind hold behavior 2019-01-02 21:24:33 -05:00
markwkidd 96ea874850
unify input bind hold behavior across platforms 2019-01-02 18:47:40 -05:00
natinusala 39282915f8 libnx: implement swkbd for menu drivers 2019-01-02 16:24:31 +01:00
orbea ff63852a7c menu: Hide 'Parent Directory' in compressed archives.
When browsing compressed archives 'Parent Directory' will not work and
will endlessly recurse into non-existent empty directories where the
user will have to press the back button to get out of every instance.

This will now hide 'Parent Directory' in compressed archives to avoid
this issue. The user will still be able to press the back button to
exit.

Fixes https://github.com/libretro/RetroArch/issues/2604
2018-12-26 09:19:03 -08:00
radius 7a36190a0e cleanup filebrowser too 2018-12-10 23:20:27 -05:00
radius cad5ae287f fix https://github.com/libretro/fbalpha/issues/24#issuecomment-445803876 2018-12-10 22:09:42 -05:00
radius 77faf4ac4a [subsystem] try to load subsystems without loading content 2018-11-24 23:34:51 -05:00
natinusala 07068e5035 Dropdown lists: Add a checked bool to menu_entry_t 2018-11-05 17:34:57 +01:00
twinaphex a662b62d19 Use runloop_get_libretro_system_info in more places - clean some code up 2018-10-30 17:11:07 +01:00
Brad Parker 262634739c xmb: increase sublabel size limit to handle longer strings (especially CJK languages) 2018-10-08 23:29:17 -04:00
twinaphex 09c8e52387 Cleanups 2018-10-06 04:23:57 +02:00
twinaphex 6d0409b6bd (Menu) More cleanups 2018-09-17 10:07:15 +02:00
Sven 5f35249216 Implement robust cheat searching interface with rumble features 2018-07-25 19:19:14 -04:00
Sven 83da70586e implement a way to set rewind_buffer_size via the UI 2018-07-13 16:12:09 -04:00
radius 717e45dc52 Add mouse wheel support
enable hold to bind on android

cleanup
2018-06-29 21:12:47 -05:00
David Walters 91dd569a73 fix: keep resetting bind during the hold period 2018-06-29 21:12:46 -05:00
David Walters d73954085a Hold to bind function (disabled with #if 0) 2018-06-29 21:12:46 -05:00
twinaphex d27b6265a0 Add more HAVE_MPV ifdefs 2018-06-20 04:50:58 +02:00
twinaphex eb69025ca8 Cleanups 2018-04-23 11:30:38 +02:00
twinaphex c18d2e0432 Silence warnings 2018-04-23 10:49:36 +02:00
twinaphex abad1b3134 Revert "(menu) Start passing menu_handle to action_ok callback"
This reverts commit d2a1c39f4b.
2018-04-11 06:12:26 +02:00
twinaphex 1836d08b33 Revert "Start passing around menu_driver_data around properly"
This reverts commit 7c314a9165.
2018-04-11 06:12:14 +02:00
twinaphex fdffb7059d Revert "Less pointer grabbbing - reduce usage of RARCH_MENU_CTL_DRIVER_DATA_GET"
This reverts commit fbf03df8be.
2018-04-11 06:11:45 +02:00
twinaphex a276710877 Revert "(Menu) More refactors"
This reverts commit f0285ef792.
2018-04-11 06:11:38 +02:00
twinaphex a07ada7af6 Revert "More cleanups - getting rid of RARCH_MENU_CTL_DRIVER_DATA_GET"
This reverts commit a8f7d99aba.
2018-04-11 06:11:23 +02:00
twinaphex 87c9d9eb9a Revert "Cleanups"
This reverts commit 8632a92568.
2018-04-11 06:11:10 +02:00
twinaphex 4993630e10 Revert "Cleanups"
This reverts commit 8d6067b1d4.
2018-04-11 06:11:04 +02:00
twinaphex 372603858d Revert "(Menu) Update menu code"
This reverts commit f481924f1e.
2018-04-11 06:10:51 +02:00
twinaphex f481924f1e (Menu) Update menu code 2018-04-11 03:04:58 +02:00
twinaphex 8d6067b1d4 Cleanups 2018-04-10 22:03:29 +02:00
twinaphex 8632a92568 Cleanups 2018-04-10 21:59:36 +02:00
twinaphex a8f7d99aba More cleanups - getting rid of RARCH_MENU_CTL_DRIVER_DATA_GET
calls
2018-04-10 21:49:25 +02:00
twinaphex f0285ef792 (Menu) More refactors 2018-04-10 21:27:57 +02:00
twinaphex fbf03df8be Less pointer grabbbing - reduce usage of RARCH_MENU_CTL_DRIVER_DATA_GET 2018-04-10 19:57:33 +02:00
twinaphex 7c314a9165 Start passing around menu_driver_data around properly 2018-04-10 19:17:51 +02:00
twinaphex d2a1c39f4b (menu) Start passing menu_handle to action_ok callback 2018-04-10 18:39:03 +02:00
twinaphex 88e7c03e1b filebrowser_parse - cleanups 2018-04-09 16:27:37 +02:00
radius caafe61f07 show subsystem roms within archives 2018-03-19 18:44:15 -05:00
twinaphex 36f9d359c2 Combine menu_list and menu_entries 2018-02-25 00:39:20 +01:00
radius 9a23ee8017 subsystem part 3: remove more globals 2018-02-12 02:39:25 -05:00
radius 2a9046c06f subsystem part 3: cleanups 2018-02-12 02:39:25 -05:00
radius 692c8683b2 subsystem part 2: add missing define, fix typo 2018-02-12 02:39:24 -05:00
radius 788bb4de50 subsystem part 1: proper labels for each entry 2018-02-12 02:39:24 -05:00
radius 597e0ce1ec subsystem part 1: get the required data to load content 2018-02-12 02:39:23 -05:00
radius 42f88a8239 Revert "Fix 'Append Disk Image'"
Reverting this truly fixes disk image append

¯\_(ツ)_/¯

This reverts commit 366c73f429.
2018-02-08 22:30:51 -05:00
twinaphex 61ff51be2f Start using string_is_equal predominantly 2018-01-16 22:53:38 +01:00
orbea e1db3e7a6d C89_BUILD: Fix some clang compiler errors.
Fixes these two compile errors with C89_BUILD=1

configuration.c:2028:9: error: ISO C90 forbids mixing declarations and code [-Werror,-Wdeclaration-after-statement]
   bool has_application_data =
        ^
1 error generated.
make: *** [Makefile:164: obj-unix/configuration.o] Error 1

In file included from menu/widgets/menu_osk.c:42:
menu/widgets/menu_osk_utf8_pages.h:62:94: error: no newline at end of file [-Werror,-Wnewline-eof]
                          "ヤ","ユ","ヨ","ワ","ヲ","ァ","ィ","ゥ","ェ","ォ","⊕"};
                                                                                 ^
1 error generated.
make: *** [Makefile:163: obj-unix/menu/widgets/menu_osk.o] Error 1
2018-01-03 12:19:16 -08:00
twinaphex a6afddae04 current_input_data and current_input are no longer globals 2017-12-29 23:03:25 +01:00
gblues 6904101c44 Clean up trailing whitespace
== DETAILS

Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
2017-12-12 00:24:18 -08:00
Brad Parker 224b581881 C89 buildfix 2017-11-28 11:43:32 -05:00
David Walters c733f96a16 listen for mouse buttons/wheel when binding input 2017-11-26 15:42:47 +00:00
twinaphex 9875bbbd7d Silence some Coverity warnings 2017-11-26 01:06:48 +01:00
Twinaphex d36d3e2c89
Update menu_dialog.c 2017-11-21 04:38:38 +01:00
Rob Loach 9e3d6adf6e
Fix coding standard 2017-11-20 18:47:27 -05:00
Rob Loach 25c116e192
Fix strdup() memory leak 2017-11-20 18:46:07 -05:00
Rob Loach dd6ec31f3d
Fix for pressing ENTER on cheats 2017-11-15 22:19:29 -05:00
twinaphex e9708be756 Prevent Coverity warning 2017-10-19 23:02:18 +02:00
Brad Parker 338723bc31 fix some null pointer accesses with empty strings 2017-10-15 00:39:55 -04:00
twinaphex 856fccd65c Update 2017-10-05 05:27:43 +02:00
twinaphex 489acabdf4 Update 2017-10-05 05:26:46 +02:00
twinaphex 9829019306 Update 2017-10-05 05:23:54 +02:00
twinaphex 032109512a Fix more Coverity errors 2017-10-04 08:37:21 +02:00
twinaphex 8238545bef Cleanups 2017-10-04 06:53:47 +02:00
twinaphex 8d850dc0bd CXX_BUILD fixes 2017-10-02 07:07:18 +02:00
twinaphex cc988cf559 Trying to prevent Coverity error 2017-10-01 18:28:07 +02:00
twinaphex 2b55e5858e Remove menu_entries_get_actiondata_at_offset 2017-10-01 17:25:41 +02:00
twinaphex df15a67c71 Remove menu_entries_get_last 2017-10-01 17:20:01 +02:00
twinaphex e376bd75c0 Fix crash with savestate thumbnails 2017-09-30 07:10:58 +02:00
twinaphex 1156d6cec5 Simplify conditionals 2017-09-30 06:18:38 +02:00
twinaphex 4fd00ac146 Be safer with this 2017-09-29 21:22:01 +02:00
Twinaphex 66de49c987 Fix memory leaks and crashes 2017-09-29 21:19:07 +02:00
twinaphex 01099d526c Fix the other leaks in menu_entry_get 2017-09-29 21:10:03 +02:00
twinaphex 3551ac825c Rewrite rich label allocation 2017-09-29 21:05:23 +02:00
twinaphex 4639b2547d Rewrite another function 2017-09-29 19:09:11 +02:00
twinaphex 1c477ca007 Rewrite menu_entry_get_sublabel 2017-09-29 18:52:15 +02:00
twinaphex efde859e17 Rewrite menu_entry_get_rich_label 2017-09-29 18:46:53 +02:00
twinaphex 9c90f97792 No longer use menu_entry_alloc 2017-09-29 18:37:04 +02:00
twinaphex 08f9e4aaf9 Refactor menu_entry 2017-09-29 18:22:11 +02:00
twinaphex 8bf741257c (XMB) Reduce stack usage 2017-09-29 16:47:30 +02:00
twinaphex 5379b12e7c FIx some new Coverity errors 2017-09-29 05:39:06 +02:00
twinaphex 6dcbf0eab8 (menu_list.c) Use malloc 2017-09-29 04:49:59 +02:00
twinaphex dfe6035ade Put menu_entry_t on heap inside xmb_draw_items 2017-09-28 07:26:43 +02:00
twinaphex f914a91944 Use menu_entry_get_type_new 2017-09-28 07:15:29 +02:00
twinaphex decea56c03 Rewrite menu_entry_get_path 2017-09-28 06:51:48 +02:00
twinaphex 7adf4ca854 Simplify menu_entry_get_spacing 2017-09-28 06:44:04 +02:00
twinaphex 76277a12b0 Rewrite menu_entry_get_label 2017-09-28 06:40:15 +02:00
twinaphex db7e1a4fdf Simplify menu_entry_get_sublabel 2017-09-28 06:37:48 +02:00
twinaphex b8e900cd32 Rewrite menu_entry_get_value 2017-09-28 06:32:49 +02:00
twinaphex c5255b1bff Simplify menu_entry_get_rich_label 2017-09-28 06:19:34 +02:00
twinaphex 2f10fd14d6 Create menu_entry_init/menu_entry_free 2017-09-28 06:02:14 +02:00
twinaphex 8b5f8d8c64 menu_displaylist_info - rewrite path 2017-09-28 03:06:54 +02:00
twinaphex 08ecfc74ec Rewrite info.label 2017-09-28 02:45:03 +02:00
twinaphex 72087d1749 Rewrite path_b and path_c 2017-09-28 02:30:31 +02:00
twinaphex 72f42b602f menu_displaylist_info - reduce stack usage - exts no longer
a fixed size path
2017-09-28 01:38:05 +02:00
twinaphex 155d6a23b9 Start using menu_displaylist_info_free 2017-09-10 22:57:26 +02:00
twinaphex 08e3bb2122 (MSVC) Buildfixes 2017-09-10 22:38:03 +02:00
twinaphex 36e0ff8268 Rearrange variables 2017-09-09 01:10:00 +02:00
twinaphex ce6c11c16b Reduce size of label 2017-09-09 00:23:24 +02:00
twinaphex ad579e5cc4 Revert "Cleanups"
This reverts commit 3eeae957f6.
2017-09-09 00:17:14 +02:00
twinaphex 3eeae957f6 Cleanups 2017-09-09 00:12:40 +02:00
twinaphex e16371b8a5 Merge input_config.c and input_driver.c 2017-08-31 02:25:04 +02:00
twinaphex 366c73f429 Fix 'Append Disk Image' 2017-08-17 19:07:38 +02:00
twinaphex 5909d72a09 Fix 'Scan File' 2017-08-17 18:53:55 +02:00
twinaphex 07dd7c8ccb Cleanups 2017-08-15 05:15:45 +02:00
twinaphex db24e4da42 Try to avoid countless string_is_equal function calls
being called multiple times per frame render - prebake
these decisions instead inside list_insert
2017-08-15 04:33:36 +02:00
twinaphex 7ea86f2b16 Get rid of logging 2017-08-04 21:08:42 +02:00
twinaphex 93eb7b349a Add mod/s3m/xm support to audio mixer in GUI 2017-08-04 21:08:02 +02:00
twinaphex 060753258a Combine input_driver.c and input_keyboard.c 2017-06-11 17:51:12 +02:00
twinaphex 68516cf74c (input_keyboard.c) cleanups 2017-06-11 17:35:48 +02:00
twinaphex 9438545bca Add music tab for non-ffmpeg enabled builds now; add 'Run'
and 'Add to mixer' options when selecting Ogg/WAV files
2017-05-27 23:56:10 +02:00
twinaphex 74f202bbda (Menu) Cleanups 2017-05-26 20:12:52 +02:00
twinaphex 59fb7700b8 Combine menu_driver.c and menu_display.c 2017-05-19 15:25:14 +02:00
twinaphex 2fb5e821cf Update Font Path menu option 2017-05-19 04:44:10 +02:00
twinaphex fa9fe88547 Fix filebrowser issues 2017-05-19 02:39:33 +02:00
twinaphex 236f5b3514 Fix selecting image with Menu Wallpaper 2017-05-19 01:50:15 +02:00
twinaphex 6d20fa96e0 Revert "Fix #4920"
This reverts commit f341f70705.
2017-05-19 01:37:45 +02:00
Jean-André Santoni f341f70705 Fix #4920 2017-05-19 00:38:20 +02:00
twinaphex 204f0183e1 Header cleanups 2017-05-17 05:06:52 +02:00
twinaphex 529349019d Combine menu_navigation_ctl and menu_driver_ctl 2017-05-17 04:57:43 +02:00
twinaphex ee8dc151a3 Combine menu_driver.c and menu_navigation.c 2017-05-17 03:00:32 +02:00
twinaphex 8eca08c6ac Start using string_is_equal_fast/string_is_not_equal_fast macros
instead of straight memcmp
2017-05-16 03:20:59 +02:00
twinaphex 15142be8ee Cleanups 2017-05-15 20:30:37 +02:00
twinaphex 1fef134f04 Create menu_driver_navigation_set 2017-05-15 07:56:22 +02:00
twinaphex 0185f71bab Cleanups 2017-05-13 23:47:25 +02:00
twinaphex 2906bec7a8 Create input_driver_get_uint 2017-05-11 07:36:21 +02:00
Andre Leiradella 844d1475e6 Reverted cheevos changes in preparation for conversion to task; fixed 4884 2017-05-07 19:06:03 +01:00
twinaphex 33f2fe8029 Move cheevos.c to tasks/task_cheevos.c and add TODO/FIXME note 2017-05-06 05:50:46 +02:00
twinaphex 05e4ec733e Move uint variables 2017-04-28 21:03:04 +02:00
twinaphex ed53be7c81 Move all bool settings 2017-04-28 14:11:34 +02:00
twinaphex ae1c26cbc4 Restructure settings struct 2017-04-28 00:00:43 +02:00
twinaphex e179108080 Cleanups 2017-04-26 00:24:59 +02:00
Twinaphex 840034d4a0 remove unused variables 2017-04-25 18:54:41 +02:00
twinaphex 8d0e3d7777 Wrap settings->input.binds 2017-04-25 18:27:18 +02:00
twinaphex d66aff8fbd Start wrapping settings->input.binds 2017-04-25 18:12:13 +02:00
twinaphex 7ea0528c6b Turn MENU_NAVIGATION_CTL_{SET|GET}_SELECTION into separate
functions
2017-04-23 14:31:49 +02:00
twinaphex 6ebd4e139e Rewrite more string_is_equal call invocations as memcmp 2017-04-22 08:51:16 +02:00
Jean-André Santoni e587264b3d (OSK) Ascii symbol page 2017-03-05 11:54:08 +01:00
Twinaphex b7b3b2cb5f Try to prevent truckload of warnings on iOS 2017-02-26 10:33:03 +01:00
Andre Leiradella 0c8ee93e3e Moved cheevos files to their own folder in preparation for the changes to support leaderboards 2017-02-03 10:03:57 +00:00
twinaphex 07cd36e27c Create Filebrowser settings 2017-02-02 04:00:55 +01:00
Brad Parker 1a7263196e fix OSK backspace 2017-01-31 12:45:57 -05:00
Brad Parker 4c06f039af forgot to add utf8 pages header 2017-01-31 12:33:54 -05:00
Brad Parker d8fb3d937c UTF8 fixes for MSVC, don't include any files with a UTF8 BOM if HAVE_LANGEXTRA isn't defined 2017-01-31 12:20:16 -05:00
twinaphex ccf1f35f39 Fix rule for MSVC 2017-01-31 03:40:31 +01:00
twinaphex 78b31955aa Put this around BOM 2017-01-31 03:37:53 +01:00
twinaphex c2c2521b12 Add HAVE_LANGEXTRA to menu_osk.c 2017-01-29 20:01:26 +01:00
twinaphex 96c8ca5a09 Header update #1 2017-01-22 13:40:32 +01:00
twinaphex 0b1a204949 Roll this back 2017-01-16 22:32:39 +01:00
Brad Parker fc5afa3122 add UTF8 BOM to fix MSVC build 2017-01-16 12:50:08 -05:00
twinaphex 0968bcc173 (menu_input_bind_dialog) Prevent warning 2017-01-16 09:57:21 +01:00
twinaphex ef974086aa Split up menu OSK code to separate file - menu/widgets/menu_osk.c 2017-01-12 11:31:24 +01:00
twinaphex 03ba5b21df (menu_input_bind_dialog.c) Hackier but dispenses with the 1-second
delay which was annoying
2017-01-11 10:37:37 +01:00
twinaphex 365564b0ed When we bind a single key, introduce a 1-second delay to
get around input latching issue that can occur when pressing
OK/Cancel buttons for binding - which would immediately
leave the screen or enter the input binding again (workaround
for now until we fix these latching issues in the menu)
2017-01-11 10:21:34 +01:00
twinaphex d48141041d Pass joypad_info to input_state function callback - less
settings pointer grabbing
2017-01-10 17:40:21 +01:00
twinaphex 9d9a5e71ab (XMB) Set fullpath dir for each node entry 2017-01-07 18:32:55 +01:00
twinaphex 689eb71795 Rename FILEBROWSER_SELECT_IMAGE to FILEBROWSER_SELECT_FILE 2017-01-07 18:10:17 +01:00
twinaphex 61168a442f (Filebrowser) Fix 'Menu Wallpaper' setting 2017-01-07 09:53:39 +01:00
twinaphex f1acb16401 Add filebrowser_get_type and filebrowser_clear_type 2017-01-07 09:40:07 +01:00
twinaphex 3b4c50b19e filebrowser_clear_type - get rid of it 2017-01-01 06:19:07 +01:00
twinaphex bed1db78aa (Directory settings) We go back one level to Directory Settings 2017-01-01 01:31:10 +01:00
twinaphex 74e224abf0 (menu_input_bind_dialog.c) Use timer code 2016-12-23 19:17:38 +01:00
twinaphex ab2ee3c690 Simplify menu_dialog.c 2016-12-23 16:32:21 +01:00
twinaphex f6ec61b15c Create rarch_timer functions and have menu_dialog.c use them 2016-12-23 15:36:47 +01:00
twinaphex c3a9ade051 (menu_filebrowser.c) Cleanup 2016-12-16 13:56:53 +01:00
twinaphex adcc89012c Cleanups 2016-12-16 13:55:33 +01:00
twinaphex c9482e07d6 Change filebrowser_parse 2016-12-16 13:44:09 +01:00
twinaphex 454d3eba08 (menu_filebrowser.c) Cleanups 2016-12-16 12:15:00 +01:00
twinaphex 879049da70 (menu_filebrowser.c) Remove unneeded header includes 2016-12-16 09:18:39 +01:00
twinaphex f186583728 Move filebrowser-dependent code to menu_filebrowser.c 2016-12-16 09:07:03 +01:00
twinaphex 17a66067b0 Add menu_filebrowser.c 2016-12-16 08:59:17 +01:00
twinaphex d3c22cb0e4 Move input/input_autodetect.c to tasks/task_autodetect.c 2016-12-01 20:38:20 +01:00
twinaphex bd53c33069 Move input_get_auto_bind to input_config.c 2016-12-01 03:43:51 +01:00
twinaphex 0a046eaaf7 Turn menu_dialog_current_id into static variable again 2016-11-06 11:55:07 +01:00
twinaphex f190909aae Fix cheevos messages 2016-11-05 21:55:32 +01:00
twinaphex 49479937d4 Reintroduce setting_get_type 2016-10-31 15:01:40 +01:00
Brad Parker d1d5584d18 update copyright 2016-10-27 11:47:10 -04:00
twinaphex c1b59df7ae Reduce size of char variables 2016-10-27 09:32:07 +02:00
twinaphex eb416ce478 Prevent null representation entries 2016-10-27 02:23:21 +02:00
twinaphex 7a09ffe6bc Values start changing now upon language switch 2016-10-26 09:03:56 +02:00
twinaphex 8cc5b09428 Get rid of slow wrapper function input_driver_state 2016-10-23 04:38:08 +02:00
twinaphex 984c0e8141 Get rid of more small menu wrapper functions 2016-10-23 03:25:27 +02:00
twinaphex 594b36488b Get rid of more small and slow menu wrapper functions 2016-10-23 03:13:49 +02:00
twinaphex 2b4d87a983 Remove setting_get_type 2016-10-23 02:28:22 +02:00
twinaphex 0a295998a2 Hook up sublabels 2016-10-20 16:10:20 +02:00
twinaphex c9c7aea184 Create sublabel callbacks 2016-10-20 15:57:35 +02:00
twinaphex fa8e59c1ff Create menu_entry_get_sublabel 2016-10-20 15:49:00 +02:00
twinaphex 5f552253c4 Add sublabel to menu_entry_t 2016-10-20 15:47:02 +02:00
twinaphex 6a4d375e1d menu_dialog_push - prevent implicit memset 2016-10-19 04:16:25 +02:00
twinaphex ab3d3b1e3a menu_dialog.c - prevent implicit memset 2016-10-16 01:03:17 +02:00
twinaphex 70a7835b94 menu_entry.c - prevent implicit memsets 2016-10-16 00:53:51 +02:00
twinaphex 1388220866 (tasks) Don't do implicit memsets in crucial performance-oriented code 2016-10-08 18:31:43 +02:00
Jean-André Santoni def77b5d34 Wi-Fi menu, pass over the entry index to know which network we're trying to connect 2016-09-23 14:45:07 +02:00
twinaphex cea2ac6766 (menu_list) Use string_is_equal 2016-09-19 02:12:25 +02:00
twinaphex a55feae619 CXX_BUILD fixes 2016-09-16 13:38:06 +02:00
twinaphex 9726de615b Fix stray icon 2016-09-16 13:03:26 +02:00
twinaphex 8de734b702 Header include cleanups 2016-09-16 01:27:59 +02:00
twinaphex 06cc175311 Cleanups 2016-09-15 21:01:11 +02:00
twinaphex 3ed0aa5eb6 Cleanups 2016-09-15 20:55:20 +02:00
twinaphex e602f534c7 menu_input_bind_dialog.c - more refactors 2016-09-15 20:52:08 +02:00
twinaphex a9b8114109 Reafctor input_bind_dialog code 2016-09-15 20:45:00 +02:00