Commit Graph

398 Commits

Author SHA1 Message Date
twinaphex
a892f5901e Revert "Put menu_input state on heap"
This reverts commit 807be0a965.
2015-09-24 20:52:01 +02:00
twinaphex
807be0a965 Put menu_input state on heap 2015-09-24 20:38:56 +02:00
twinaphex
a45c9167b9 (Menu) menu drivers no longer need to grab pointer to menu_input state 2015-09-24 20:32:21 +02:00
twinaphex
c0b46e3003 Add more functionality to menu_input_ctl 2015-09-24 20:08:11 +02:00
twinaphex
08f24aae4b Add MENU_CTL_POINTER_PTR 2015-09-24 19:56:53 +02:00
twinaphex
aed44e970c Add MENU_CTL_MOUSE_PTR 2015-09-24 19:51:55 +02:00
twinaphex
3fb90871f6 Create menu_input_ctl 2015-09-24 19:47:41 +02:00
twinaphex
10d1aea0e3 Go through menu_input_mouse_state 2015-09-24 17:29:46 +02:00
twinaphex
fb67a39d32 (Menu) Start creating menu_input_pointer_state 2015-09-24 17:18:17 +02:00
twinaphex
172e75c758 Revert "Refactor menu_input.c"
This reverts commit 3ddbf2d5cc.
2015-09-24 14:17:03 +02:00
twinaphex
a8acea98b2 Revert "Move enums to menu_input.c"
This reverts commit 7a5f2228aa.
2015-09-24 14:16:57 +02:00
twinaphex
6927024320 Revert "Make menu_input_get_ptr a static function"
This reverts commit 65b2b0877f.
2015-09-24 14:16:43 +02:00
twinaphex
65b2b0877f Make menu_input_get_ptr a static function 2015-09-24 13:40:58 +02:00
twinaphex
7a5f2228aa Move enums to menu_input.c 2015-09-24 13:25:53 +02:00
twinaphex
3ddbf2d5cc Refactor menu_input.c 2015-09-24 13:22:46 +02:00
twinaphex
1fc97df819 Revert "Add action_type to menu_displaylist_push_list"
This reverts commit b7d0f45109.
2015-09-21 21:32:23 +02:00
twinaphex
b7d0f45109 Add action_type to menu_displaylist_push_list 2015-09-21 21:11:37 +02:00
twinaphex
2b840c0384 Refactor perf counters 2015-09-20 10:02:59 +02:00
twinaphex
bbe210f7eb C89_BUILD fixes 2015-09-06 23:43:27 +02:00
Twinaphex
3b3fa56309 Cleanup menu_animation_t 2015-09-06 05:00:08 +02:00
twinaphex
8fc96b52a3 refactor cheats.c 2015-09-06 03:51:08 +02:00
twinaphex
8405f76ff3 Refactor menu_animation.c 2015-09-06 02:41:36 +02:00
twinaphex
028e07e3e0 Refactor menu_navigation_get_current_selection 2015-09-06 01:58:00 +02:00
twinaphex
9a95f98283 Turn menu_list_pop into static function 2015-09-05 00:50:17 +02:00
twinaphex
3f978b2b1e Cleanup 2015-08-18 03:12:17 +02:00
twinaphex
1669d8b3e5 (Menu) Cleanup 2015-08-18 03:07:23 +02:00
Jean-André Santoni
e8c508d33f (GLUI) Stop scrolling on tap start, instead of tap end 2015-08-17 20:28:54 +02:00
twinaphex
4f1bb7b9b6 Not sure what perform_action was doing here 2015-08-17 15:44:57 +02:00
twinaphex
1c38e9ae05 Don't call menu_driver_render from menu_input.c 2015-08-17 06:40:28 +02:00
twinaphex
032abfffd4 Call menu_driver_render_messagebox from one place only 2015-08-17 06:31:39 +02:00
Jean-André Santoni
e8c5865798 (GLUI) Stop scroll on tap 2015-08-17 03:16:34 +02:00
Twinaphex
dd7cc401f6 Remove unused variables 2015-08-16 17:43:53 +02:00
twinaphex
8a173035c9 (menu_input.c) Always use MENU_ACTION_SELECT now for mouse presses 2015-08-16 17:41:39 +02:00
twinaphex
93ed2d60da Reimplement mouse input code - triggers 'select' callback 2015-08-16 02:10:16 +02:00
Twinaphex
8a56d6d67d Remove unused variables 2015-07-27 17:24:25 +02:00
radius
44feeabace this should fix controller indexes changing after binding 2015-07-26 18:35:13 -05:00
radius
829cd27cf1 poll the selected device index instead of the user number 2015-07-26 18:25:02 -05:00
radius
5e6784ff7f make sure only the selected device is polled on the bind all function 2015-07-26 18:01:32 -05:00
twinaphex
cd81a91d30 Revert "(GLUI) No need to double tap more" - Needs more
polishment before we can merge this

This reverts commit 24840c8918.
2015-07-15 06:28:54 +02:00
Jean-André Santoni
24840c8918 (GLUI) No need to double tap more 2015-07-15 03:39:23 +02:00
twinaphex
8b791c64a1 (kivutar) Add inertia 2015-07-15 03:04:44 +02:00
twinaphex
f8bf5d1827 (kivutar) Somewhat better touch support 2015-07-15 02:41:10 +02:00
twinaphex
1f01d62386 (Menu) Refactor zip file handling to be list-based 2015-07-14 12:49:54 +02:00
twinaphex
33b7388a9e (menu_input.c) Remove unused variables 2015-07-12 08:15:29 +02:00
twinaphex
135ee2f503 Use UINT64_C(1) everywhere instead of 1ULL 2015-07-12 07:53:46 +02:00
twinaphex
2dbc3c4b56 (Overlays) Cleanups 2015-07-12 07:12:33 +02:00
twinaphex
599ed62849 (Overlay) Refactor some more code 2015-07-12 07:03:39 +02:00
twinaphex
cdf3ce309e Decouple 'overlay' state from driver_t 2015-07-09 01:10:30 +02:00
twinaphex
49e35a5bcf ToadKing's 'cooldown' hack causes too many problems - try
different way of guarding against button A/B reacting too
quickly
2015-07-06 00:49:24 +02:00
Toad King
5e6840a9a5 add cooldown on ok/back buttons in menu, fixes weird wii bug with load core menu 2015-07-04 17:22:25 -05:00
twinaphex
70e56cd047 Make 'Search' label translatable 2015-06-27 14:16:41 +02:00
twinaphex
6ad1ebcd2a More C89 fixes 2015-06-26 19:57:40 +02:00
Alcaro
4ca6c2398c More C89 cleanups, part 3 2015-06-26 18:35:52 +02:00
Alcaro
97f8188969 Clean up some C99 longlongs. 2015-06-26 16:21:50 +02:00
twinaphex
b536bad9f9 (menu_input.c) Fix some CXX_BUILD warnings 2015-06-26 13:48:59 +02:00
twinaphex
5a4371ebf7 (menu_input.c) Replace hardcoded usage of 'seconds' 2015-06-25 08:21:50 +02:00
twinaphex
999343f7e3 (menu_input.c) Cleanup 2015-06-22 02:21:53 +02:00
Toad King
8929887f25 allow closing text input windows with cancel button 2015-06-18 21:37:54 -05:00
twinaphex
0e046c2fbb Create input_driver_keyboard_mapping_is_blocked/input_driver_keyboard_mapping_set_block 2015-06-19 03:45:23 +02:00
twinaphex
1fac29b651 Use menu_hash_to_str some more 2015-06-18 20:38:02 +02:00
twinaphex
897361b9d4 Create menu_hash_calculate 2015-06-17 19:55:35 +02:00
twinaphex
6891ca7479 (menu_input.c) Cleanups 2015-06-15 19:20:48 +02:00
twinaphex
0c4ac61b38 (Menu) Cleanups 2015-06-15 17:34:12 +02:00
twinaphex
668aff2605 (menu_input.c) Go through menu_input_get_ptr 2015-06-15 02:24:51 +02:00
twinaphex
2553bbcd91 Move menu->delay to menu->input.delay 2015-06-15 02:22:36 +02:00
twinaphex
70cf98eadc Move menu->dt, menu->cur_time and menu->old_time to menu_animation_t 2015-06-15 01:40:03 +02:00
twinaphex
a23cadda07 (menu_input.c) Buildfix 2015-06-14 19:43:04 +02:00
twinaphex
6a2b871f16 Create menu_display_get_ptr 2015-06-14 15:34:05 +02:00
Twinaphex
f65bf12123 (menu) Cleanup unused variables 2015-06-14 04:11:09 +02:00
twinaphex
f23d511a31 Use menu_list_get_ptr 2015-06-14 04:01:21 +02:00
twinaphex
bff61a9485 (Menu) Create menu_animation_get_ptr 2015-06-13 23:23:29 +02:00
Twinaphex
45a74e589f (menu_input.c) remove unused variables 2015-06-13 22:59:11 +02:00
twinaphex
84a1885786 Create menu_input_get_ptr 2015-06-13 22:57:55 +02:00
twinaphex
098c8a6063 Move some header includes around 2015-06-13 19:12:10 +02:00
twinaphex
158e86ce8a (Menu) More refactors 2015-06-13 16:47:51 +02:00
twinaphex
34a44983a0 (Menu) Cleanups 2015-06-13 02:40:01 +02:00
twinaphex
b31723236d (Menu) Cleanups 2015-06-13 00:09:09 +02:00
twinaphex
80445e2fca (Menu) Cleanups 2015-06-08 14:07:03 +02:00
twinaphex
f1373abf2d Add 'action_select' to menu_setting 2015-06-06 16:26:55 +02:00
twinaphex
d6a17a97de (Menu) Cut down on strcmp usage in menu_input.c 2015-06-05 17:56:51 +02:00
Twinaphex
cfe186a919 (menu_input.c) Prevent warning 2015-06-04 00:32:08 +02:00
twinaphex
bc953d3a1b Move settings code entirely to menu 2015-06-02 20:26:27 +02:00
twinaphex
6d6a60c145 Get rid of RARCH_LOG line 2015-06-02 11:36:37 +02:00
twinaphex
5bd60cb8ed Use setting_set_with_string_representation 2015-06-02 07:27:10 +02:00
twinaphex
d7e654cc07 (menu_input.c) Use setting_set_with_string_representation 2015-06-01 21:39:06 +02:00
twinaphex
7bee1c4ce3 Simplify menu_input_mouse_post_iterate 2015-06-01 15:25:46 +02:00
twinaphex
9437867a8a Rename MENU_ACTION_SELECT to MENU_ACTION_INFO 2015-06-01 07:21:00 +02:00
twinaphex
bd1e5d6a67 Rename action_select to action_info 2015-05-31 22:40:26 +02:00
twinaphex
23a861ad1f Rename MENU_ACTION_TEST to MENU_ACTION_SCAN 2015-05-26 01:10:27 +02:00
twinaphex
3c7e0b29fc Make menu_ctx_driver_get_ptr public - ALWAYS make sure that
no symbols will be redefined - Griffin depends on this
2015-05-19 21:55:44 +02:00
natinusala
e3357b5b5c Implemented perform_action callback of menu_driver_ctx 2015-05-19 21:20:46 +02:00
twinaphex
c33b7676c6 Use menu_displaylist_push_list 2015-05-18 20:53:23 +02:00
twinaphex
4f5b937f5e (menu_input.c) Cleanups - use menu_navigation_t * pointer 2015-05-18 20:00:09 +02:00
twinaphex
326ddd2986 Refactor call to menu_input_search_start 2015-05-18 17:54:54 +02:00
twinaphex
3dc7f6ab19 Create separate menu_entries_cbs_left.c/menu_entries_cbs_right.c 2015-05-18 15:56:32 +02:00
twinaphex
aa37c88620 Make menu_input_poll_find_trigger a static function 2015-05-18 14:57:01 +02:00
Twinaphex
197008890b Get rid of unused variable warnings 2015-05-18 03:51:35 +02:00
twinaphex
9f2c0c2ce5 Simplify menu_input_bind_iterate some more 2015-05-18 03:46:15 +02:00
twinaphex
68527f4906 menu_input_bind_iterate - cleanup - only call menu_driver_render
once
2015-05-18 03:39:47 +02:00
twinaphex
3981a621e9 Simplify menu_input_bind_iterate 2015-05-18 03:37:07 +02:00
twinaphex
1e17ecdce1 Remove action_cancel_lookup_setting 2015-05-18 02:59:49 +02:00
twinaphex
08c85f06ff Refactor some code in menu_input.c 2015-05-17 22:56:41 +02:00
twinaphex
dd525d2734 (Menu) Refactor cbs->action_toggle 2015-05-17 18:44:50 +02:00
twinaphex
e66f7db4a9 (Menu) Use menu_entry_action 2015-05-17 18:22:16 +02:00
twinaphex
036f0c4cb2 Revert "Refactor action_ok"
This reverts commit 04a2dd469e.
2015-05-17 18:18:17 +02:00
twinaphex
04a2dd469e Refactor action_ok 2015-05-17 16:30:54 +02:00
twinaphex
d11e36cfb9 menu_list_get_actiondata_at_offset - modify signature 2015-05-17 13:23:27 +02:00
twinaphex
5da758c12e Revert "Add DISPLAYLIST_CUSTOM_BIND"
This reverts commit 43fa78f58b.
2015-05-17 03:44:05 +02:00
twinaphex
43fa78f58b Add DISPLAYLIST_CUSTOM_BIND 2015-05-17 03:38:15 +02:00
twinaphex
e975658a5e Fix mouse toggle 2015-05-14 13:09:06 +02:00
Toad King
ecfb0b14e3 silence compiler warning 2015-05-12 20:35:07 -05:00
twinaphex
79612b2d8c Fix MOUSE_ACTION_BUTTON_L_TOGGLE 2015-05-11 23:12:54 +02:00
twinaphex
fdcef6cfc2 Can now escape 'Help' message with the mouse by pressing right mouse
button
2015-05-11 23:02:31 +02:00
twinaphex
76407c9ef2 Start updating menu->input.joypad and menu->input.mouse per-frame 2015-05-11 22:43:16 +02:00
twinaphex
92c4e5ce66 Improve menu_input_mouse_post_iterate 2015-05-11 22:36:12 +02:00
Twinaphex
014c1b343d Get rid of unused variables 2015-05-11 18:47:08 +02:00
twinaphex
a014f2db88 Move framebuffer is dirty and other menu-related state flags
to menu_handle_t
2015-05-11 18:46:06 +02:00
twinaphex
9eacc255ea (menu_input.c) More cleanups 2015-05-11 12:03:02 +02:00
twinaphex
6cfbc88a1b Simplify pointer_tap 2015-05-11 11:53:30 +02:00
Twinaphex
ed63625613 (menu_input.c) remove unused variable 2015-05-11 11:51:44 +02:00
twinaphex
9f4cd46dce Simplify menu_input_mouse_post_iterate/menu_input_pointer_post_iterate 2015-05-11 11:50:55 +02:00
twinaphex
4229d97e73 Simplify menu_input_post_iterate 2015-05-11 11:48:43 +02:00
twinaphex
dd214a7a4b Start simplifying menu_input_mouse_post_iterate 2015-05-11 11:36:15 +02:00
twinaphex
722f46721f (menu_input.c) Cleanups 2015-05-11 11:21:23 +02:00
twinaphex
ab4ca635be Remove menu_list_push_stack 2015-05-08 19:28:52 +02:00
twinaphex
cb22a3feb9 Use menu_setting_find 2015-05-08 17:19:43 +02:00
twinaphex
aca04bed0b (Menu) Cleanups 2015-05-07 05:31:25 +02:00
twinaphex
dcd203b44d Make menu actions configurable 2015-05-07 03:55:15 +02:00
Jean-André Santoni
d6ab5fb574 (Menu) Support back button with mouse 2015-04-20 20:15:55 +07:00
twinaphex
ed593b5b1d Improve menu_input_pointer_post_iterate early return 2015-04-19 12:58:36 +02:00
Jean-André Santoni
ba99edb847 (XMB) Basic touch support, no drag yet 2015-04-16 17:40:17 +02:00
Jean-André Santoni
0a56e3dcaa (Menu) Fix touch compatibility with the framebuf.dirty optimization 2015-04-16 15:32:49 +02:00
Jean-André Santoni
128cf327a3 (Menu) Drag to scroll with touch 2015-04-16 15:32:49 +02:00
twinaphex
7f17f340c0 (Menu) Cleanup 2015-04-15 09:35:48 +02:00
twinaphex
6bf30bb714 (PS3) Buildfixes 2015-04-14 21:58:39 +02:00
Twinaphex
69e7c978c5 Merge pull request #1627 from aliaspider/master
(CTR/3DS) fix build.
2015-04-14 16:39:28 +02:00
twinaphex
8c6cce3945 Rename rarch_joypad_driver_t to input_device_driver_t 2015-04-14 16:37:59 +02:00
aliaspider
b965a07c32 (CTR) fix build. 2015-04-14 15:35:14 +01:00
twinaphex
baaed5a241 Refactor set_bind functions 2015-04-14 14:04:24 +02:00
twinaphex
62a5d5338a Create menu_input_set_input_device_bind_mode 2015-04-14 13:43:24 +02:00
twinaphex
fc7f9894b8 Create menu_input_set_keyboard_bind_mode 2015-04-14 13:40:20 +02:00
Twinaphex
a3e9a5c8f9 Get rid of unused variables 2015-04-14 12:57:41 +02:00
twinaphex
930913ee8b (Menu) Cleanups 2015-04-14 12:56:37 +02:00
twinaphex
f5005cac96 Revert "Revert "Revert "(Input) Add timeout for gamepad binds"""
This reverts commit 50dcaf66c6.
2015-04-14 12:40:23 +02:00
twinaphex
50dcaf66c6 Revert "Revert "(Input) Add timeout for gamepad binds""
This reverts commit 6166e45095.
2015-04-14 12:34:03 +02:00
twinaphex
6166e45095 Revert "(Input) Add timeout for gamepad binds"
This reverts commit 54c41564c8.
2015-04-14 12:33:08 +02:00
twinaphex
54c41564c8 (Input) Add timeout for gamepad binds 2015-04-14 12:29:54 +02:00
twinaphex
8e3b63e2e9 menu_input_frame - early return if driver is NULL 2015-04-14 08:12:34 +02:00
twinaphex
19a3104cdc (RARCH_CONSOLE) Buildfix 2015-04-14 08:12:06 +02:00
twinaphex
f5470d37b2 Move input post iterate functions to menu_input.c 2015-04-14 07:38:04 +02:00
twinaphex
6be10cd04d Improve menu_input_mouse 2015-04-13 16:53:01 +02:00
radius
d45593d578 Prevent mouse/touch if overlays are enabled to avoid conflicting inputs.
Users can still get locked out if they purposelly disable mouse/pointer and overlays and don't use a controller
2015-04-04 11:15:27 -05:00
Lioncash
b68048e6db Fix some printf format specifiers
Gets rid of warnings on higher warning levels
2015-04-03 15:09:17 -04:00
twinaphex
5bf21de960 Move pointer_iterate and mouse_iterate to menu_input_frame 2015-03-31 14:38:05 +02:00
twinaphex
d9ba52e018 Create input_driver_get_joypad_driver 2015-03-23 03:40:09 +01:00
twinaphex
db1087ad33 Create input_driver_state 2015-03-23 03:04:05 +01:00
twinaphex
d98de68107 Create menu_driver_render_messagebox 2015-03-22 06:37:26 +01:00
twinaphex
b8a9800743 Create menu_driver_render 2015-03-22 05:35:46 +01:00
twinaphex
508ade73f9 Rename menu_driver_resolve to menu_driver_get_ptr 2015-03-21 23:56:42 +01:00
twinaphex
e6f0d366cb Go through global_get_ptr 2015-03-21 04:43:18 +01:00
twinaphex
73e3460675 Change settings_data_ namespace to settings_ 2015-03-21 00:56:26 +01:00
twinaphex
14ac2d9791 Rename settings_data.h to settings.h 2015-03-21 00:49:55 +01:00
twinaphex
7bc845006b Start replacing more g_settings usages 2015-03-20 20:43:22 +01:00
twinaphex
3670ef2ac5 Go through driver_get_ptr to grab pointer to driver struct 2015-03-18 19:40:00 +01:00
twinaphex
569ab60e43 Use g_settings.menu.mouse.enable directly 2015-03-17 04:01:58 +01:00
Higor Eurípedes
fec88a5cb4 (Menu) Add font color settings 2015-03-14 19:22:06 -03:00
Jean-André Santoni
ab84c14b66 (Menu) Delta timing 2015-03-06 16:00:46 +01:00
twinaphex
2e0902fda1 Revert "(Menu) Delta timing"
This reverts commit 24f7acb93c.
2015-02-24 03:06:25 +01:00
twinaphex
64527f2cef Revert "(Menu) cleaner dt formulas"
This reverts commit b6e214128a.
2015-02-24 03:06:13 +01:00
Jean-André Santoni
b6e214128a (Menu) cleaner dt formulas 2015-02-24 01:09:14 +01:00
Jean-André Santoni
24f7acb93c (Menu) Delta timing 2015-02-24 00:28:11 +01:00
twinaphex
94e1a339df Rename menu_action.c to menu_setting.c 2015-02-14 01:51:28 +01:00
twinaphex
df35e9fb75 Refactor menu_navigation.c 2015-02-14 00:47:42 +01:00
twinaphex
31b272f25a Don't pass menu_handle_t * state around 2015-02-13 20:19:20 +01:00
twinaphex
55844f06d7 Cleanups - start using menu_driver_resolve everywhere in menu
code for safety reasons
2015-02-13 20:04:50 +01:00
twinaphex
4d31687899 Create menu_driver_resolve to avoid having to pass state pointer
around between functions
2015-02-13 19:00:59 +01:00
twinaphex
8d050f23aa Remove more header dependencies (menu.h) 2015-02-11 22:15:13 +01:00
twinaphex
6654d2eb6c (menu_input.c) Cleanups 2015-02-11 22:05:56 +01:00
twinaphex
6ded569b87 (Menu) Create struct for delay timer 2015-02-11 21:48:20 +01:00
twinaphex
eb7a68a182 (Menu) Put scroll indices into struct 2015-02-11 21:36:07 +01:00
twinaphex
4d478434c7 (Menu) Start getting rid of void * pointer 2015-02-11 20:28:54 +01:00
twinaphex
8b5699d2d5 Cleanups 2015-02-10 23:26:21 +01:00
twinaphex
8c38ccc4a9 Add MENU_ACTION_TEST 2015-02-03 07:43:20 +01:00
twinaphex
2b0cefee0d (Menu) RetroPad: Bind X to 'Search' 2015-02-02 00:55:10 +01:00
twinaphex
ff8fec64ad Cleanups 2015-02-02 00:53:06 +01:00
twinaphex
ed7da3f632 Get rid of last param to keyboard_input_event 2015-01-29 23:12:42 +01:00
twinaphex
f258950bcf Keyboard input overlays can now be used as input device
for keyboard line events
2015-01-29 07:03:20 +01:00
twinaphex
49a2bce941 Cleanups - move input code to menu_input.c 2015-01-27 01:29:33 +01:00
twinaphex
8e95e87b2f Revert "Part 1 of menu input remapping"
This reverts commit 5b2d950034.
2015-01-25 04:52:26 +01:00
twinaphex
5b2d950034 Part 1 of menu input remapping 2015-01-25 02:14:04 +01:00
twinaphex
aa6452b8ca Cleanup menu_input_bind_iterate 2015-01-23 09:14:07 +01:00
twinaphex
38066b6ec7 Add Cheat File Save As 2015-01-19 19:00:26 +01:00
twinaphex
d81e7b9fc7 menu_input.c - Get rid of some header includes 2015-01-19 18:36:36 +01:00
twinaphex
068943445f (Input) Add input remapping files 2015-01-19 18:16:34 +01:00
twinaphex
6bbc7196a3 Add Input Remapping Save As option 2015-01-19 08:37:11 +01:00
twinaphex
9a39abfbf0 Rename menu_input.c functions so that they are all in menu_input_*
namespace
2015-01-11 06:42:53 +01:00
twinaphex
5dea7263e5 (menu_input.c) Cleanups 2015-01-11 06:34:32 +01:00
twinaphex
7f0ccae0d7 Rename menu_input_line_cb.c to menu_input.c 2015-01-11 06:24:44 +01:00