12686 Commits

Author SHA1 Message Date
libretroadmin
9e34f22a29 Silence Xcode code warnings + general cleanups 2023-07-14 18:05:54 +02:00
sonninnos
227a9ec34a Allow adjusting screenshot flash without notification enabled 2023-07-13 17:02:33 +02:00
nfore
9ca5c5e623 Revive/rewrite Keyboard Overlay and OSK Toggle
Add keyboard overlay preset, keyboard submenu, and osk_toggle hotkey. Use overlay caching for osk_toggle.

For now, keyboard menu has only preset path, auto-scale toggle, and opacity.

Related fixes:
- input_keyboard_event: Don't check hotkey binds when device is RETRO_DEVICE_POINTER
- Add input_keymaps_translate_rk_to_ascii() for correct character input to input_keyboard_event
- input_overlay_poll: Delay clearing INPUT_OVERLAY_BLOCKED flag until there is no overlay input (Avoids stray input after osk_toggle)
- Send keyboard events for modifiers before other keys (for correct modifier+key input if hitboxes overlap)
2023-07-09 04:42:49 +02:00
nfore
8a81d39437 Overlay Caching
Adds overlay_cache_ptr to keep a disabled overlay in memory when it's expected to be shown again.

Most input_overlay_deinit calls are replaced with input_overlay_unload, which caches the overlay unless initing/deiniting core or disabling overlays.

Loading a cached overlay is done as a swap, intended for osk_toggle.

Related updates:
- Fewer parameters for the overlay loading task. Use current settings when enabling an overlay
- Add input_overlay_check_mouse_cursor() to preserve show/hide mouse behavior
- Don't apply input_overlay_show_mouse_cursor in windowed mode (controlled by mouse grab only)
- Remove some dead code
2023-07-09 04:42:49 +02:00
libretroadmin
d514f1ded3 Avoid false positives with code analysis tools - rename
variables called 'system'
2023-07-05 03:29:49 +02:00
sonninnos
b899f61c1f Menu navigation hold adjustments 2023-07-04 02:54:30 +02:00
sonninnos
4cca2b8eaf Add menu icons to 'RetroPad Binds' 2023-07-02 05:47:25 +02:00
Eric Warmenhoven
280dcb32f9 Fix several warnings 2023-07-02 05:46:45 +02:00
Eric Warmenhoven
ce49bd6dcc Enable option to rumble iOS device instead of controller (#14734). 2023-07-01 19:24:40 +02:00
hunterk
7b20954e66 move port X binds into retropad binds submenu and add appropriate help text and sublabels to discourage people from messing around in there unnecessarily 2023-07-01 19:22:45 +02:00
libretroadmin
d4fc6c7ce6 * Reduce snprintf calls to only formatting
* More strlcpy usage, less strlcat
2023-06-21 09:37:55 +02:00
libretroadmin
22dc6aff5a Rework some snprintf/strlcat calls 2023-06-21 09:25:04 +02:00
libretroadmin
60fb5dfc6e Fix system information spacing 2023-06-20 19:12:43 +02:00
libretroadmin
2195ac998b FIx potential -Wformat-truncation warnings 2023-06-20 19:06:45 +02:00
libretroadmin
22f32bf069 replace more strlcat calls in menu_cbs_sublabel.c 2023-06-20 18:21:10 +02:00
libretroadmin
2b4ad8f654 Fix sublabel_netplay_room 2023-06-20 18:01:59 +02:00
libretroadmin
b7e122a4fa Replace more strlcat calls 2023-06-20 17:56:45 +02:00
libretroadmin
bdc398d79f - Safer code - use strlcpy where possible instead of manual character
assignments for strings longer than 2 chars
- Use strlcpy concatenation instead of strlcat
- Make sure that what remains of iteration of the '_len' variable
for manual char assignment
is done in a safer way so mistakes are less possible
2023-06-20 16:33:55 +02:00
libretroadmin
2cebb07201 (menu_explore) General cleanups:
* Use strlcpy instead of strlcat
* Some style nits
2023-06-20 14:42:31 +02:00
libretroadmin
fa80ec099f Rewrite some strlcat calls to strlcpy 2023-06-20 13:21:26 +02:00
libretroadmin
c253bf4cbd Reduce char arrays -
* titles and msgs sent to runloop_msg_queue_push should just be
128 in size
* single extensions queried by frontend around 16
2023-06-19 18:16:40 +02:00
sonninnos
23bd1bc7f5 Remove advanced option flag from video rotation+orientation 2023-06-19 17:03:33 +02:00
sonninnos
7eae4ee3f6 Reorder overlay menu 2023-06-19 17:01:52 +02:00
libretroadmin
e8242253a7 Reduce strlcat calls where possible 2023-06-19 06:00:10 +02:00
sonninnos
a7ac52fe91 Menu navigation acceleration adjustments 2023-06-19 04:38:00 +02:00
libretroadmin
31d8f4fd51 Cut down on more strlcat calls 2023-06-18 22:53:13 +02:00
sonninnos
d6d0195060 Menu sounds corrections 2023-06-18 22:39:09 +02:00
libretroadmin
0517354181 * replace more strlcat calls with strlcpy
* Get rid of unnecessary string copies by clever usage of strlcpy
* Get rid of unnecessary temp variables when not needed
2023-06-18 22:37:01 +02:00
LibretroAdmin
244c86f661 Revert "Frame limiting improvements"
This reverts commit c723710c90f15147dae62ae2237f4c7ccc87db45.
2023-06-18 19:36:59 +02:00
libretroadmin
edecf0cb2d Replace more strlcat calls with strlcpy 2023-06-18 19:25:24 +02:00
sonninnos
c723710c90 Frame limiting improvements 2023-06-18 18:58:37 +02:00
libretroadmin
2b273697c8 menu_cbs) sublabel/title - replace some strlcat calls 2023-06-18 14:08:37 +02:00
libretroadmin
942858c6ba Fix -Werror, -Wfortify-source error for Orbis 2023-06-18 13:14:36 +02:00
libretroadmin
e055790a48 * Get rid of some duplicate strlen calls
* Get rid of some unnecessary temp char variables
* Some other small rewrites
2023-06-18 13:06:33 +02:00
libretroadmin
631301b3f7 * Cut down on strlcat calls when possible and replace them with clever
usage of strlcpy (when position/offset of previous strlcpy/snprintf call
is known. strlcat implementation in libretro-common makes implicit strlen
call, using strlcpy avoids this
* Reduce a bunch of local char variables by use of said clever usage,
should save up on local stack size usage
2023-06-18 12:06:12 +02:00
libretroadmin
c4b99031f0 (Menu) more static functions in menu_cbs_ok.c 2023-06-16 15:40:14 +02:00
libretroadmin
df73a3876c replace snprintf call with strlcpy 2023-06-16 13:42:01 +02:00
Grisly Glee
1bd501f8d2
Refactor system_info page (#15388) 2023-06-16 04:47:23 +02:00
libretroadmin
96068dfa81 Turn setting_set_with_string_representation static 2023-06-16 02:41:36 +02:00
libretroadmin
e818541337 (Menu) Turn some functions static 2023-06-16 02:29:10 +02:00
libretroadmin
618bedb950 Get rid of setting_get_bind_type 2023-06-16 02:03:04 +02:00
libretroadmin
cd95a0f663 Cleanups 2023-06-16 01:56:46 +02:00
libretroadmin
caf0df3f97 setting_list.h - turn several functions static 2023-06-16 01:36:07 +02:00
libretroadmin
bc1672708d Get rid of some code duplication in MaterialUI/Ozone 2023-06-16 00:48:16 +02:00
libretroadmin
8ea67c0d99 Cleanups 2023-06-15 23:51:29 +02:00
libretroadmin
0c51321099 Get rid of font_driver_flush 2023-06-15 23:41:40 +02:00
sonninnos
0b7e8eab99
Microphone menu correction (#15385) 2023-06-15 21:36:36 +02:00
libretroadmin
d342a4a04a Signedness warning fixes 2023-06-14 23:25:50 +02:00
libretroadmin
246cceeb27 Silence more signedness warnings 2023-06-14 19:51:31 +02:00
sonninnos
20e7107598
Audio menu cleanup (#15376)
* Microphone menu cleanup

* Combine audio resampler menu with audio output menu
2023-06-14 04:43:28 +02:00