Commit Graph

470 Commits

Author SHA1 Message Date
twinaphex
b0c36c18dd Move global->exec to runloop.c as static variable 2015-11-30 15:46:39 +01:00
twinaphex
86de67b3d7 Move core_shutdown_initiated to runloop.c and turn it into
static variable
2015-11-30 15:43:49 +01:00
twinaphex
4e0a4150b5 Merge runloop and runloop_data.c 2015-11-30 15:35:57 +01:00
twinaphex
871713dd9d Move driver->keyboard_linefeed_enable to input_driver.c 2015-11-30 03:23:35 +01:00
twinaphex
d4e88324ac Move driver->osk_enable to input_driver.c 2015-11-30 03:14:26 +01:00
twinaphex
3cd701450a Cleanups 2015-11-30 00:13:51 +01:00
twinaphex
777f8e94d0 Don't pass driver to rarch_main_cmd_get_state 2015-11-29 23:11:33 +01:00
twinaphex
1c867cedf0 Move nonblock_state to input_driver.c (NOTE: we probably need
to relocate this later on)
2015-11-29 17:53:11 +01:00
twinaphex
f7bb3650d9 Simplify driver_set_nonblock_state 2015-11-29 17:45:07 +01:00
twinaphex
253649b0cf Move flushing_input to input_driver.c 2015-11-29 17:23:30 +01:00
twinaphex
fa0e2032c6 Move EVENT_CMD_PREPARE_DUMMY to rarch_main_ctl 2015-11-29 00:29:41 +01:00
twinaphex
f97f0aa480 Merge runloop.c and runloop_msg.c 2015-11-29 00:19:01 +01:00
twinaphex
bd6b79fdee command_event should only be used for events that the user can call,
so start moving things that the user shouldn't call to rarch_main_ctl
instead
2015-11-29 00:15:51 +01:00
twinaphex
1df5d44bdb Rename input/keyboard_line 2015-11-28 16:13:16 +01:00
twinaphex
b2613904ee Skip menu rendering and sleep when RARCH_MAIN_CTL_IS_IDLE is true 2015-11-28 15:57:27 +01:00
twinaphex
2b4464f30a Implement RARCH_MAIN_CTL_IS_IDLE 2015-11-28 15:03:59 +01:00
twinaphex
778842abe3 Need to sleep for 10ms and return 1 to prevent high CPU usage
in unfocused mode
2015-11-28 03:41:30 +01:00
twinaphex
af2efa8a29 (Menu) Render when we are focused 2015-11-28 03:22:20 +01:00
Twinaphex
f0d37aed11 Take out this for now 2015-11-28 03:11:07 +01:00
twinaphex
a1226004f5 Revert "Don't render menu if unfocused - reimplement this"
This reverts commit ce7ec0681b.
2015-11-28 03:05:37 +01:00
twinaphex
ce7ec0681b Don't render menu if unfocused - reimplement this 2015-11-28 03:03:26 +01:00
twinaphex
a6ccc188a8 Rename input_common.c to input_config.c 2015-11-28 02:22:58 +01:00
twinaphex
265e36a5d0 Some CXX_BUILD buildfixes 2015-11-28 00:33:01 +01:00
Jean-André Santoni
63d977d674 (Menu) Fixes #2479 that was caused by bcb54b2eec and resulted in 2000fps on some nvidia cards 2015-11-28 04:40:48 +07:00
twinaphex
f42098013f Should now idle at menu if pause_nonactive is true 2015-11-27 20:34:43 +01:00
twinaphex
ec9ec9e079 Create RARCH_MAIN_CTL_CHECK_IDLE_STATE 2015-11-27 20:13:52 +01:00
twinaphex
7a831bcea6 Check focus and decide to sleep if 'pause_nonactive' is true 2015-11-27 18:56:11 +01:00
twinaphex
60dd3fe8b3 Move input_data related code to input/input_common.c 2015-11-24 00:53:47 +01:00
twinaphex
09fe26257c header include changes 2015-11-23 21:58:39 +01:00
twinaphex
e0f0590269 Rearrange header includes 2015-11-23 19:40:09 +01:00
twinaphex
a9cb970d0d Move log_file code to verbosity.c 2015-11-23 15:45:02 +01:00
twinaphex
76d6378228 Go through video_driver_ctl 2015-11-23 15:01:49 +01:00
twinaphex
9b41061143 Rename driver->video 2015-11-23 14:14:12 +01:00
twinaphex
074f14b132 Add verbosity.c/verbosity.h 2015-11-23 12:03:38 +01:00
twinaphex
e02fdd5b5b Cleanups 2015-11-23 10:13:27 +01:00
twinaphex
d65a445acd Fix concurrency issue with global->verbose 2015-11-22 20:50:39 +01:00
twinaphex
b59e2907f3 Add RARCH_AUDIO_CTL_SETUP_REWIND 2015-11-22 15:25:43 +01:00
twinaphex
6286e4b74c Add RARCH_DISPLAY_CTL_CACHED_FRAME_RENDER 2015-11-20 15:34:10 +01:00
twinaphex
533b799692 Create video_driver_ctl and get rid of video_driver_get_frame_count 2015-11-20 15:08:27 +01:00
twinaphex
fecdc86475 Create RARCH_MAIN_CTL_SET_WINDOWED_SCALE 2015-11-18 11:55:23 +01:00
twinaphex
a4ae655ff4 Start going through rarch_main_ctl for grabbing fullpath 2015-11-18 11:43:25 +01:00
twinaphex
2b727fa941 Add RARCH_MAIN_CTL_SET_LIBRETRO_PATH/RARCH_MAIN_CTL_SET_CONTENT_PATH 2015-11-18 11:15:42 +01:00
twinaphex
88cbdbdfda Reorder runloop global data struct 2015-11-18 03:25:23 +01:00
aliaspider
6e2b9df32f (3ds) fix non-griffin build. 2015-11-11 21:10:13 +01:00
twinaphex
22f85b11df Don't need this anymore 2015-11-07 20:59:12 +01:00
twinaphex
e2ced6bd6a Don't need this additional code anymore 2015-11-07 20:47:29 +01:00
twinaphex
37e450c94c devices_mask no longer needed 2015-11-07 20:44:40 +01:00
twinaphex
df01279cf3 Add non-HAVE_MENU ifdefs 2015-10-28 00:55:11 +01:00
twinaphex
02a43c6b2a Change 'rarch' to 'retro' namespace in libretro-common 2015-10-26 03:18:13 +01:00
twinaphex
257efd2899 Make menu_input_frame_pointer part of menu_input_frame_retropad
again
2015-10-24 03:56:28 +02:00
twinaphex
896a80d6b8 Call menu_driver_iterate another time for pointer/mouse controls 2015-10-23 09:15:05 +02:00
twinaphex
8c74be0879 Rename menu_input_frame to menu_input_frame_retropad 2015-10-23 09:01:57 +02:00
twinaphex
6512e95945 Pass device input mask to menu_input_frame 2015-10-22 19:34:25 +02:00
twinaphex
1a20e19c51 We will now be able to know from which input device type the input
event comes from - i.e. keyboard or gamepad
2015-10-22 19:17:47 +02:00
twinaphex
cd1f3510eb Move some code around 2015-10-22 18:29:35 +02:00
twinaphex
21f23ea51d Backport 'remove cheevos from the build unless HAVE_CHEEVOS=1;' 2015-10-16 18:04:59 +02:00
twinaphex
528a020d86 Always assume we are going to render when calling menu_driver_iterate 2015-10-11 12:58:21 +02:00
Andre Leiradella
c53766dde3 added cheevos_test back to runloop.c; included runloop.c and jsonsax.c in griffin.c 2015-10-09 15:29:50 -03:00
Andre Leiradella
18db59b446 removed cheevos_test for now 2015-10-09 14:09:49 -03:00
Andre Leiradella
fa3f17d219 preliminary code for retro achievements (cheevos) 2015-10-09 13:29:57 -03:00
Andre Leiradella
5fce3f4138 grouped core functions inside a retro_core_t structure; swapped core function globals by one retro_core_t variable 2015-10-06 14:34:09 -03:00
twinaphex
6d4900dc1c Create function pointer for iterate function 2015-10-03 05:08:29 +02:00
twinaphex
0acb119f61 Don't use menu_driver_get_ptr in runloop anymore 2015-10-03 04:40:19 +02:00
twinaphex
ba1ef9c3c2 (MSVC) Buildfixes 2015-10-02 17:57:37 +02:00
twinaphex
a91a326c0f Mistakenly passed cmd to rarch_main_ctl 2015-09-30 19:59:21 +02:00
twinaphex
5c087ecf00 Style nits 2015-09-30 19:12:27 +02:00
twinaphex
c926b9fb06 Refinements to rarch_main_iterate_time_to_exit 2015-09-30 19:11:16 +02:00
twinaphex
c9a0a48448 Create rarch_main_iterate_time_to_exit 2015-09-30 19:09:26 +02:00
twinaphex
4f889124ae Move video_driver_t * variable around 2015-09-29 18:11:09 +02:00
twinaphex
4ca5d31f9b Some more static code analysis nits when ran with enable=all 2015-09-28 18:12:02 +02:00
twinaphex
9679804382 Rename rarch_main_set_state to rarch_ctl 2015-09-27 01:58:24 +02:00
twinaphex
870ae8b7af (runloop.c) Refactors/cleanups 2015-09-26 21:32:41 +02:00
twinaphex
fc96ac60f3 Add RARCH_MAIN_CTL_GLOBAL_FREE 2015-09-26 21:30:20 +02:00
twinaphex
a3386f8f56 Refactor away rarch_update_frame_time 2015-09-26 21:06:27 +02:00
twinaphex
f62abdfed8 Refactor away rarch_limit_frame_time 2015-09-26 21:03:38 +02:00
twinaphex
e911e91f1b Move global->exec unsetting to the right place 2015-09-26 15:46:36 +02:00
twinaphex
8f7fbb973b (runloop.c) Refine/refactor do_quit code 2015-09-26 15:45:45 +02:00
twinaphex
0c674e8917 rarch_main_ctl - cleanups 2015-09-26 15:37:16 +02:00
twinaphex
b15347c893 Refactor rarch_main_ctl 2015-09-26 15:35:01 +02:00
twinaphex
ca7f547412 Add RARCH_MAIN_CTL_CHECK_STATE 2015-09-26 15:24:05 +02:00
twinaphex
bae9abb525 Add RARCH_MAIN_CTL_CHECK_PAUSE 2015-09-26 15:16:28 +02:00
twinaphex
fd4ce8659c Cleanups 2015-09-26 15:08:52 +02:00
twinaphex
ce36506734 Move around global_get_ptr 2015-09-26 15:00:29 +02:00
twinaphex
36b3576f20 Add more RARCH_MAIN_CTL_ enums 2015-09-26 14:57:46 +02:00
twinaphex
ab2e10fe70 Cleanups 2015-09-26 13:44:19 +02:00
twinaphex
54c3b60603 Refactor away rarch_main_clear_state 2015-09-26 13:35:04 +02:00
twinaphex
374a5bf635 Refactor away rarch_main_set_max_frames 2015-09-26 13:28:33 +02:00
twinaphex
7e6b6d8be6 Refactor away rarch_main_set_frame_limit_last_time 2015-09-26 13:25:58 +02:00
twinaphex
e3e1a5a35c Refactor away rarch_main_set_idle 2015-09-26 13:20:15 +02:00
twinaphex
5ad2987449 Refactor away rarch_main_set_slowmotion 2015-09-26 13:16:19 +02:00
twinaphex
4ba88ccabf Refactor away rarch_main_set_pause 2015-09-26 13:12:26 +02:00
twinaphex
0d18c61bc5 Add RARCH_MAIN_CTL_IS_PAUSED 2015-09-26 13:04:07 +02:00
twinaphex
cc4a918296 Create rarch_main_ctl 2015-09-26 12:58:02 +02:00
twinaphex
8dbdc90ebe Revert "Main menu loop now does rendering, data runloop does actual"
This reverts commit 297a63c77b.
2015-09-25 00:20:53 +02:00
twinaphex
297a63c77b Main menu loop now does rendering, data runloop does actual
state handling
2015-09-25 00:00:06 +02:00
twinaphex
5465da0139 Rename rarch_sleep to retro_sleep 2015-09-22 18:55:14 +02:00
twinaphex
2b840c0384 Refactor perf counters 2015-09-20 10:02:59 +02:00
twinaphex
28ac662440 Cleanups 2015-09-16 12:30:47 +02:00
twinaphex
576626ead0 Refactor frame_is_reversed - shader drivers should no longer
be dependent upon global state
2015-09-16 11:14:43 +02:00
twinaphex
e1c1917ed5 Cleanup headers 2015-09-05 19:24:21 +02:00
twinaphex
d7cde1675d Build fixes 2015-08-29 15:05:40 +02:00
twinaphex
4b3d520c19 Buildfix 2015-08-29 15:04:59 +02:00
twinaphex
70ff0a62f3 N/A 2015-08-27 15:00:48 +02:00
twinaphex
fdd1d3ee9f Pass sleep_ms argument to rarch_main_iterate 2015-08-27 14:52:02 +02:00
twinaphex
1ec90df165 Refactor fastforward ratio 2015-08-27 14:39:42 +02:00
twinaphex
fc763f5e25 Add EVENT_CMD_SET_FRAME_LIMIT 2015-08-27 14:25:57 +02:00
twinaphex
4e03865a78 Cleanup 2015-08-27 14:09:32 +02:00
twinaphex
d4534cca19 Simplify rarch_frame_limit_time 2015-08-27 13:56:59 +02:00
twinaphex
4b0ee4b9c2 Move rarch_sleep outside of rarch_main_iterate so that caller
can implement the idle step itself
2015-08-27 13:13:14 +02:00
twinaphex
d45b953078 Integrate main_is_idle check inside do_state_checks 2015-08-27 13:01:32 +02:00
twinaphex
3b9eca025e rarch_main_iterate - another change 2015-08-27 12:48:35 +02:00
twinaphex
bcb54b2eec (rarch_main_iterate) Another refactor 2015-08-27 12:46:32 +02:00
twinaphex
b6c34b362d Refactor rarch_main_iterate 2015-08-27 12:43:35 +02:00
twinaphex
8bf28544ef Add parameter to function signature of menu_iterate 2015-08-21 04:33:55 +02:00
twinaphex
7831fd6fc0 Cleanups pt. 3 2015-08-21 04:16:43 +02:00
twinaphex
c9a3caeca5 Cleanup 2015-08-06 03:44:32 +02:00
twinaphex
00af8fa7db Cleanups 2015-08-06 03:43:19 +02:00
twinaphex
b6812cc365 Refactor away input_flush 2015-08-06 03:20:15 +02:00
twinaphex
18af1a74a6 Refactor input_flush 2015-08-06 03:17:56 +02:00
twinaphex
d279b158c9 Bring back input_flush 2015-08-06 03:09:42 +02:00
twinaphex
6cee3c6701 Cleanups 2015-08-06 02:56:44 +02:00
twinaphex
4f69881592 Cleanups 2015-08-05 15:54:21 +02:00
twinaphex
3e21d0a0d0 (runloop) Add quit goto 2015-08-05 15:48:54 +02:00
twinaphex
9b43c973bb Cleanups 2015-08-05 15:08:09 +02:00
twinaphex
e418067610 Cleanup 2015-08-05 15:04:57 +02:00
twinaphex
77baab1577 Cleanups #2 2015-08-05 14:59:55 +02:00
twinaphex
517ec935b7 Cleanup 2015-08-05 14:57:06 +02:00
twinaphex
adb28bb341 Refactor max_frames 2015-08-05 14:45:56 +02:00
twinaphex
f39ab89867 (runloop.c) Refactors 2015-08-05 14:36:35 +02:00
twinaphex
a1e6313453 Refactor away input_flush 2015-08-05 14:24:21 +02:00
twinaphex
4cc71c0574 Refactor ui_companion_is_on_foreground 2015-08-05 13:56:59 +02:00
twinaphex
b18442dc5a Refactor is_slowmotion 2015-08-05 13:06:44 +02:00
twinaphex
ccac72f1e7 Refactor is_paused 2015-08-05 12:58:25 +02:00
twinaphex
74ee9b05f3 Create rarch_main_set_idle - make 'idle' variable self-contained 2015-08-05 12:40:47 +02:00
twinaphex
89d8b246b0 (runloop) Less pointer grabbing 2015-08-03 23:48:58 +02:00
twinaphex
d184e9b99e (runloop) Less pointer grabbing 2015-08-03 23:46:50 +02:00
twinaphex
0c023dcb68 Reimplement frame count 2015-08-03 23:01:07 +02:00
twinaphex
d98902c21e Don't use video_driver_get_frame_count in crucial runloop function 2015-08-03 20:39:58 +02:00
twinaphex
3d36cb02ac No more separate runloop_t 2015-08-03 20:15:46 +02:00
twinaphex
bd6ee135e9 Take out runloop_t dependencies 2015-08-03 20:03:14 +02:00
twinaphex
e43f54f7c1 Take max frames out of runloop 2015-08-03 19:49:34 +02:00
twinaphex
a70f09a90d Rearrange structs 2015-07-27 17:18:10 +02:00
twinaphex
4d78dc4bdf Make g_runloop not a pointer anymore 2015-07-27 14:41:25 +02:00
twinaphex
aa649f90fc Make g_extern not a pointer 2015-07-27 14:38:01 +02:00
twinaphex
cdef82b185 Make late binding possible for frontend drivers
(PS3) Fix shutdown/quit hang - now we have to fix exitspawn instead
2015-07-27 03:44:28 +02:00
twinaphex
7ad1beeb81 Some robustness checks 2015-07-18 15:26:31 +02:00
twinaphex
a2af5252c1 Get rid of input_driver_key_pressed 2015-07-17 03:09:12 +02:00
twinaphex
f938c75e0b When 'Hide In Menu' is enabled, overlay should reappear now when we
select 'Resume Content', 'Load State', or 'Save State'
2015-07-16 11:57:50 +02:00
twinaphex
6001d6bacd (runloop_t) Refactor more continuous pointer grabbing 2015-07-12 19:17:57 +02:00
twinaphex
b50f6a02ed (runloop.c) Minimize pointers grabbed 2015-07-12 19:06:24 +02:00