Commit Graph

312 Commits

Author SHA1 Message Date
Twinaphex f5a38977d8 (OSX) Don't register click if we are on titlebar (we detect this for now
if y of location in windows' position is less than 0
2016-10-01 02:01:01 +02:00
twinaphex da64bb0f0d (ui_cocoa) Cleanup main loop 2016-09-30 08:17:18 +02:00
twinaphex 228886062b Create path_clear 2016-09-30 04:31:19 +02:00
Twinaphex bc705b79e1 (OSX) Fix 2016-09-29 09:58:57 +02:00
Twinaphex f0facb5463 Silence implicit declarations warnings 2016-09-23 03:42:50 +02:00
twinaphex 2d11ea71cc Move runloop_fullpath to paths.c 2016-09-23 03:39:44 +02:00
twinaphex 164d3b034c Get rid of OSX_PPC 2016-09-09 15:56:56 +02:00
twinaphex 82d82110ae Merge system.h with core.h 2016-09-06 06:11:54 +02:00
twinaphex bf4fd2a864 Update headers for ui/drivers 2016-09-05 18:33:22 +02:00
neville 35b48bca2c (OSX PPC) Buildfix 2016-06-12 19:38:30 +02:00
Twinaphex b11bfc8a73 Add ui_companion_driver_get_main_window 2016-06-12 19:29:07 +02:00
Twinaphex 4481486071 (OSX) openDocument - cleanup 2016-06-09 10:57:02 +02:00
twinaphex ac29a2acc2 Free heap variable 2016-06-08 17:56:09 +02:00
Twinaphex 29012aa74f (Cocoa) Cleanups 2016-06-08 17:54:55 +02:00
Twinaphex 5a746e04c2 (OSX) Refactor document loading code 2016-06-08 17:51:05 +02:00
Twinaphex 1cd441b125 (Cocoa) Reimplement browser loading code 2016-06-08 17:18:48 +02:00
twinaphex 969ef4b88d Add stub browser window implementations for Win32/Cocoa 2016-06-08 15:51:43 +02:00
twinaphex 0e01a3c84b Add ui_browser_window 2016-06-08 15:47:00 +02:00
twinaphex 615fc0432f Free strdup'ed values 2016-06-08 07:24:26 +02:00
twinaphex 047ffe9d30 Remove apple_display_alert 2016-06-08 07:19:19 +02:00
Twinaphex 6cf905508e Reimplement apple_display_alert to use new ui_msg_window implementation 2016-06-08 07:07:10 +02:00
Twinaphex aa81c1d82f Start implementing ui_cocoa_msg_window.m 2016-06-08 06:56:42 +02:00
twinaphex 10a25209da (Msg window) Add backends for Win32/Cocoa 2016-06-08 06:33:15 +02:00
twinaphex a247b16164 Add ui_null_msg_window 2016-06-08 06:29:52 +02:00
Twinaphex ba962d5dda Remove poll_iteration 2016-06-07 17:16:16 +02:00
Twinaphex 02910fd64d (Cocoa) Implement ui_application_process_events 2016-06-07 17:14:57 +02:00
Twinaphex 3b16eb1e91 Add (stub) ui_cocoa_application.m 2016-06-07 16:51:25 +02:00
twinaphex a90bd8cb67 Add ui_null_application.c 2016-06-07 16:31:35 +02:00
twinaphex 242e3d6a9e (ui_cocoa.m) Cleanups 2016-06-04 18:09:40 +02:00
Twinaphex 8e9bb03301 (Cocoa) Rewrite poll_iteration 2016-06-04 18:03:46 +02:00
Twinaphex 98014f7b66 (Cocoa) Add stub ui_cocoa_window.m 2016-06-04 07:56:28 +02:00
twinaphex 61e1c13ae6 Create stub window interface 2016-06-04 04:24:54 +02:00
twinaphex 7d26034ebe Rename rarch_task_* to task_* 2016-05-27 18:14:47 +02:00
twinaphex 747fe1ae63 (Cocoa) Remove obsolete forward declaration 2016-05-17 09:18:37 +02:00
Twinaphex 679cabd430 (OSX) Hopefully this GL hack is no longer necessary on 10.5-era OSX 2016-05-17 09:15:56 +02:00
Twinaphex 52937d4b02 Fix CONTENT_MODE_LOAD_CONTENT_WITH_CURRENT_CORE_FROM_COMPANION_UI 2016-05-17 09:14:18 +02:00
twinaphex fcf2decb2e Remove persist argument 2016-05-17 09:07:41 +02:00
twinaphex bb1d1da693 Remove runloop_iterate_data 2016-05-16 17:29:02 +02:00
twinaphex f70dc77a61 Pass content_ctx_info_t pointer to rarch_task_push_content 2016-05-16 16:25:16 +02:00
Twinaphex 81f669ca61 (Cocoa) Buildfix 2016-05-16 15:44:21 +02:00
twinaphex 6ef0b86e30 Reimplement content loading - task_content_load 2016-05-16 12:51:55 +02:00
twinaphex 2691ab0c7d Rename command_event enums 2016-05-09 20:51:53 +02:00
twinaphex a98ef36d36 Rename event_cmd_ctl to command_event 2016-05-09 20:20:50 +02:00
twinaphex 13e67aa44e Create runloop_iterate_data 2016-05-08 06:29:11 +02:00
Twinaphex 829656391a (OSX) Fix build 2016-04-28 19:29:21 +02:00
Twinaphex d5bc3c4d5b (OSX) Silence some warnings - just use plain numbers instead of enums
which can rapidly grow out of date
2016-03-03 00:48:45 +01:00
Twinaphex 353072c9cd (OSX) Fix build now for real 2016-02-26 13:39:32 +01:00
twinaphex 4dfed7e930 Cast to NSOpenGLContext * 2016-02-26 13:39:01 +01:00
twinaphex dcefb740f2 Create glcontext_get_ptr 2016-02-26 13:36:12 +01:00
twinaphex c6220a9e66 Reimplement rarch_task_push_content_load_default 2016-02-12 04:55:18 +01:00
twinaphex e26c88b4bb (OSX) Buildfix 2016-02-12 04:40:53 +01:00
twinaphex 21c4a07cf0 (OSX) Buildfix 2016-02-10 07:20:54 +01:00
twinaphex ce31c2b02a Add header 2016-01-25 06:17:00 +01:00
twinaphex 5cfc9c1830 (OSX) Buildfix 2016-01-24 07:19:37 +01:00
twinaphex 372d673a26 Rename event_command to event_cmd_ctl - add second parameter 2016-01-22 15:34:43 +01:00
Twinaphex 6f49139eba (OSX) Buildfix 2016-01-21 04:02:15 +01:00
twinaphex a767031651 Use string_is_equal in more places 2016-01-20 04:11:25 +01:00
Twinaphex b1b8f2645f (Apple) Buildfix 2016-01-20 00:38:48 +01:00
twinaphex 01d58f8681 Create RARCH_CTL_IS_INITED, RARCH_CTL_SET_INITED, RARCH_CTL_UNSET_INITED 2016-01-19 23:26:47 +01:00
neville f44e0db97c (Load Core) OSX - Filter by dylibs 2016-01-17 19:27:33 +01:00
Twinaphex a4eae00ac2 Make this runtime too 2016-01-17 19:03:57 +01:00
Twinaphex c9c46b8060 Get rid of another compile-time define 2016-01-17 18:58:50 +01:00
Twinaphex 9324f257fc (OSX 10.5) Change label to 'Load Content' 2016-01-17 18:46:26 +01:00
Twinaphex 681396b151 (OSX) Cleanups 2016-01-17 18:45:01 +01:00
Twinaphex bd153870c2 Move callback function up 2016-01-17 18:43:24 +01:00
Twinaphex 43b949a9a0 Create open_document_handler 2016-01-17 18:42:52 +01:00
Twinaphex 4f0233fbf9 Use BOXSTRING 2016-01-17 18:39:42 +01:00
Twinaphex 777af02e82 Create open_core_handler - cut down on code duplication 2016-01-17 18:38:08 +01:00
neville f6c6f64a20 Implement openCore for OSX 10.5 2016-01-17 18:34:18 +01:00
Twinaphex 7f505afda7 (OSX) Prevent crash with previous hack 2016-01-17 16:26:04 +01:00
Twinaphex 55105303ac Add hack that works around this issue 2016-01-17 15:55:30 +01:00
twinaphex 4b9fea617c (OSX) Perform selectorOnMainThread - move to applicationDidFinishLaunching 2016-01-15 23:09:50 +01:00
twinaphex 8323d06d3d (Cocoa) No more dependencies on get_chosen_screen or
get_backing_scale_factor
2016-01-15 22:20:46 +01:00
Twinaphex f35690e2e5 Fixes 2016-01-15 22:16:18 +01:00
twinaphex 09a183df3f (OSX) Create get_backing_scale_factor 2016-01-15 22:15:23 +01:00
twinaphex 3427d08c34 Do early return in case get_chosen_screen returns NULL 2016-01-15 14:00:11 +01:00
Twinaphex 26bcfa8d89 Revert "Refactor function get_float_from_selector - obsolete"
This reverts commit 1b2632e7fa.
2016-01-15 13:03:40 +01:00
twinaphex 1b2632e7fa Refactor function get_float_from_selector - obsolete
hardcoded ifdef
2016-01-15 12:53:33 +01:00
twinaphex 647438ae93 Hopeful buildfix 2016-01-15 12:40:56 +01:00
Twinaphex 4461ff8442 Fix crappy bug that happens with NSOpenPanel and Cocoa GL - current
context gets lost
2016-01-13 19:44:05 +01:00
Twinaphex a2580d3ec2 Revert "(OSX) use beginWithCompletionHandler - fixes 'OK' case"
This reverts commit 8b1b14e818.
2016-01-13 19:07:57 +01:00
Twinaphex 8b1b14e818 (OSX) use beginWithCompletionHandler - fixes 'OK' case 2016-01-13 19:06:27 +01:00
Twinaphex 61987e8ba5 Add 'set message' 2016-01-13 18:09:08 +01:00
Twinaphex b28771eadb Set dialogs to default dir 2016-01-13 17:00:41 +01:00
twinaphex 172b972a32 Add NSCancelButton cases 2016-01-13 13:36:50 +01:00
twinaphex fdc1f963b2 (ui_cocoa.m) Cleanups 2016-01-13 13:08:51 +01:00
twinaphex a8c6fc150b Add RUNLOOP_CTL_DATA_ITERATE 2015-12-11 10:17:18 +01:00
twinaphex d7fd52b03f Make g_system_menu no longer a global 2015-12-10 23:08:34 +01:00
twinaphex b0b35ba9e5 Remove more references to menu_driver_get_ptr outside of menu/ files 2015-12-07 16:00:48 +01:00
twinaphex 5b1e1592cb Rename rarch_main_iterate and rarch_main_data_iterate 2015-12-07 15:22:36 +01:00
Twinaphex aab828bbe5 Nit 2015-12-06 21:01:50 +01:00
twinaphex ec2795dd23 Another buildfix 2015-12-06 21:00:47 +01:00
twinaphex 9f1b9e6676 (Cocoa) More buildfixes 2015-12-06 20:20:45 +01:00
twinaphex 4d66e4beac (Cocoa) Update 2015-12-06 19:55:14 +01:00
twinaphex 9824eb7ea9 Rename rarch_main_ctl to runloop_ctl 2015-11-30 21:42:59 +01:00
twinaphex 4e333302ae Rename RARCH_MAIN_CTL* to RUNLOOP_CTL* 2015-11-30 21:35:50 +01:00
twinaphex 4e0a4150b5 Merge runloop and runloop_data.c 2015-11-30 15:35:57 +01:00
twinaphex 5e1b2b3bfa Move driver->input_data to input_driver.c 2015-11-29 18:18:25 +01:00
twinaphex ea18f0f5e3 (ui_cocoa.m ) Cleanups 2015-11-29 18:06:09 +01:00
twinaphex a9f2959f4f (Cocoa) Add header includes 2015-11-29 16:30:38 +01:00
twinaphex d018f65e95 Rename cocoa_input_keyboard_event 2015-11-29 16:26:13 +01:00
Twinaphex 6a99893705 (Cocoa) Cleanup poll_iteration 2015-11-28 19:00:50 +01:00
Twinaphex 3001729545 Revert "Go through input_driver_get_data_ptr whenever we need input data"
This reverts commit 52c9a2ec43.
2015-11-28 18:58:33 +01:00
twinaphex 52c9a2ec43 Go through input_driver_get_data_ptr whenever we need input data
state
2015-11-28 18:51:12 +01:00
twinaphex da8c36b0c3 Don't need sleeping argument anymore for rarch_main_data_iterate 2015-11-28 03:26:01 +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 4a3b9ffc7c Try to conserve on CPU usage when in sleep mode by skipping
menu rendering
2015-11-27 23:37:23 +01:00
twinaphex fecdc86475 Create RARCH_MAIN_CTL_SET_WINDOWED_SCALE 2015-11-18 11:55:23 +01:00
Twinaphex 2468c23d4c (OSX) Fix some warnings 2015-11-18 11:48:35 +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 5fc267d24a (OSX/iOS) get_chosen_screen buildfixes 2015-11-14 22:26:07 +01:00
Twinaphex 6847501e99 Revert "iCade codepaths work now for regular OSX too"
This reverts commit d72090f5e9.
2015-11-14 02:08:59 +01:00
Twinaphex d72090f5e9 iCade codepaths work now for regular OSX too 2015-11-14 01:48:16 +01:00
Twinaphex 51426f64c2 Revert "Add OSX implementation for cocoagl_gfx_ctx_get_native_scale"
This reverts commit a408a5e59a.
2015-11-01 12:45:36 +01:00
twinaphex a408a5e59a Add OSX implementation for cocoagl_gfx_ctx_get_native_scale 2015-11-01 12:15:21 +01:00
Twinaphex c4c26b83cc (OSX) Fixed mouse for Retina 2015-10-31 22:55:22 +01:00
Twinaphex 6f2bd56e23 (OSX) Remove references to 'chooseCore' 2015-10-12 12:30:58 +02:00
Twinaphex 09dca0c0f0 (OSX) Change interface to RetroArch_OSX 2015-10-12 12:21:54 +02:00
Twinaphex 39189047b4 Use RARCH_DEVICE_MOUSE_SCREEN by default now for Zarch, start
setting up cocoa_input.c
2015-10-08 21:04:27 +02:00
twinaphex fee01f271b Start splitting up menu_common_load_content functionality 2015-10-06 14:09:52 +02:00
twinaphex f87154773d Add msg_queue_push to UI companion driver interface 2015-09-22 22:20:03 +02:00
twinaphex 5465da0139 Rename rarch_sleep to retro_sleep 2015-09-22 18:55:14 +02:00
twinaphex 32e97ffd46 Cleanup menu_common_load_content 2015-09-07 02:28:26 +02:00
twinaphex 7079cdb798 Add notify_refresh to UI companion driver interface 2015-08-30 13:03:34 +02:00
twinaphex fdd1d3ee9f Pass sleep_ms argument to rarch_main_iterate 2015-08-27 14:52:02 +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 4f755d3bec Cleanups 2015-08-21 04:41:28 +02:00
twinaphex 53cd7a56a9 (UI companion) Implement iterate_menu function - should iterate
menu system for one frame
2015-08-15 02:55:30 +02:00
Jean-André Santoni c3bad44632 Start displaying messageboxes in cocoa_touch 2015-08-15 02:42:04 +02:00
twinaphex 371f6c8762 Cleanups 2015-08-14 02:53:19 +02:00
twinaphex 0d1496d691 (Cocoa) Some buildfixes 2015-07-27 17:21:37 +02:00
Twinaphex 578abcfb80 Need to add some special conditional for Xcode 2015-07-25 15:56:14 +02:00
twinaphex 8d6d9b96ba (OSX) Attempt to fix argument passing 2015-07-25 15:45:22 +02:00
Twinaphex 8bf42618d9 (OSX) Fix IBAction openCores 2015-07-18 19:24:14 +02:00
twinaphex fd33f2153a Update openCore 2015-07-18 16:01:39 +02:00
twinaphex ffc075166e (OSX) Add 'openCore' 2015-07-18 15:24:45 +02:00
twinaphex 40f8fabda6 Consistency in how we treat positive strcmp matches 2015-06-14 19:56:01 +02:00
twinaphex f7d732bc3d Rename RetroArch_OSX 2015-06-02 09:48:02 +02:00
neville 8151c85980 (OSX) Take out settings window for now entirely 2015-06-02 09:00:27 +02:00
twinaphex a4812c955f Get rid of 'Gets here' messages 2015-06-01 17:06:28 +02:00
twinaphex 74ee699d5c Split up rarch_main_data_iterate outside of rarch_main_iterate 2015-05-16 17:00:50 +02:00
Twinaphex 297fc772c0 (UI Companion) Create notify_list_loaded 2015-05-11 09:56:45 +02:00
twinaphex 1171cba2a4 Protect against NULL driver 2015-05-06 03:57:54 +02:00
Twinaphex 1afdb5cb92 Refactor apple_platform variable 2015-04-21 11:43:43 +02:00
Twinaphex 70ee864a9f (Cocoa) Remove loadingCore 2015-04-20 23:16:35 +02:00
twinaphex 14505cc222 Create new rarch_main signature 2015-04-20 21:31:25 +02:00
twinaphex e8a8b378d5 (Cocoa) Rename RAGameView to CocoaView 2015-04-20 20:39:39 +02:00
Twinaphex 510d8a0a2f Get rid of retroarch.h header include in ui_cocoa.m 2015-04-20 18:58:44 +02:00
Twinaphex 1062849419 (OSX) Fix ui_companion_cocoa_event_command 2015-04-20 18:53:02 +02:00
Twinaphex bd95b0a8ae (OSX/Cocoa) basicEvent - change cmd to enum event_command 2015-04-20 18:46:55 +02:00
Twinaphex a730e35897 (Cocoa) Start using ui_companion_event_command 2015-04-20 18:43:08 +02:00
Twinaphex 98ade89759 (UI companion driver) Update signatures of existing function pointer implementations (event_command) 2015-04-20 18:38:47 +02:00
Twinaphex d18f705873 Get rid of RetroArch_OSX get 2015-04-20 18:18:26 +02:00
Twinaphex 09fe3e9176 Move apple_display_alert implementation to UI driver 2015-04-20 18:10:15 +02:00
Twinaphex d87b27c04d (OSX) Buildfix 2015-04-20 17:27:07 +02:00
twinaphex 16115ebb03 Merge platform.m files with UI companion driver source file 2015-04-20 17:26:05 +02:00
twinaphex aa54f7fb41 Move apple_rarch_exited to UI companion drivers 2015-04-20 17:10:28 +02:00
twinaphex 20befff4c1 (Cocoa) Move cocoa common files 2015-04-20 12:52:16 +02:00
Twinaphex 1b5890b607 (OSX) Buildfix 2015-04-20 12:44:08 +02:00
twinaphex 96ae9c718a Create ui_companion_cocoa 2015-04-20 12:43:07 +02:00