Commit Graph

623 Commits

Author SHA1 Message Date
twinaphex
0f90a3352b Create Qt5 implementation of msg window 2016-06-10 09:47:16 +02:00
twinaphex
a66a46ca25 Start implementing ui_qt_application.cpp 2016-06-10 08:38:27 +02:00
twinaphex
acf0a74e6d Add ui_qt_application 2016-06-09 20:18:08 +02:00
twinaphex
69f32c3a35 Add qt/ui_qt_window.cpp 2016-06-09 20:11:26 +02:00
twinaphex
b4085b6118 Hide Qt wrapper code behind an ifdef - HAVE_QT_WRAPPER, set this to
1 in Makefile.common in order to use it
2016-06-09 19:51:50 +02:00
twinaphex
c011090ebb ui_application - add initialize 2016-06-09 15:22:03 +02:00
twinaphex
f183fab022 (Win32) Cleanups 2016-06-09 12:37:46 +02:00
twinaphex
50a2091cc6 (Win32) Implement browser window 2016-06-09 12:34:39 +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
008e622843 Add capabilities to ui_browser_window_state 2016-06-08 17:53:51 +02:00
Twinaphex
5a746e04c2 (OSX) Refactor document loading code 2016-06-08 17:51:05 +02:00
neville
817b63be99 (OSX) Buildfix for pre-OSX 10.6 2016-06-08 17:39:20 +02:00
Twinaphex
1cd441b125 (Cocoa) Reimplement browser loading code 2016-06-08 17:18:48 +02:00
twinaphex
82ae93e348 Add ui_companion_driver_get_browser_window_ptr 2016-06-08 16:56:45 +02:00
Twinaphex
8088df5f09 Cleanups 2016-06-08 16:39:46 +02:00
Twinaphex
9e5ad14da0 Start implementing untested ui_browser_window_cocoa_open function 2016-06-08 16:11:06 +02:00
twinaphex
d9e61e5153 Add missing file 2016-06-08 15:53:59 +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
d63442ca3b Implement ui_win32_msg_window 2016-06-08 10:19:37 +02:00
twinaphex
47abc22fe9 ui_win32_window.c needs to become a C++ file for DragAcceptFiles 2016-06-08 10:05:48 +02:00
neville
f170856374 (OSX) Fixes 2016-06-08 07:41:59 +02:00
twinaphex
0a7bc4d21f Add 'warning' 2016-06-08 07:27:46 +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
3c7fafe9a3 Create ui_companion_driver_get_msg_window_ptr 2016-06-08 07:02:38 +02:00
Twinaphex
aa81c1d82f Start implementing ui_cocoa_msg_window.m 2016-06-08 06:56:42 +02:00
twinaphex
1fc0009cdc ui_msg_window_state - turn title and text into pointers 2016-06-08 06:37:00 +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
c35e75a0bd Create ui_msg_window_t 2016-06-08 06:24:15 +02:00
twinaphex
793d0de45c Add ui_message_window_buttons/ui_message_window_response 2016-06-08 06:17:26 +02:00
twinaphex
20766147a6 Cleanup 2016-06-07 18:04:07 +02:00
twinaphex
3f44ba59eb Add pending_events function callback 2016-06-07 18:02:37 +02:00
twinaphex
dbf59a72bd (ui_win32_application.c) Indenting cleanups 2016-06-07 17:32:37 +02:00
twinaphex
f4c3a41f84 (Win32) Implement application process events 2016-06-07 17:28:51 +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
c1a321015a Create ui_companion_driver_get_application_ptr 2016-06-07 17:10:27 +02:00
twinaphex
4dded0c76b Change signature of process_events 2016-06-07 17:07:11 +02:00
twinaphex
3aeecc7eb2 Create ui_win32_application.c 2016-06-07 17:03:34 +02:00
Twinaphex
3b16eb1e91 Add (stub) ui_cocoa_application.m 2016-06-07 16:51:25 +02:00
Twinaphex
f17b4fba05 Rename ui_cocoa_window.h 2016-06-07 16:47:48 +02:00
twinaphex
07ca97618d Add ui_application_win32 2016-06-07 16:43:25 +02:00
twinaphex
ee8277b31c Rename ui_win32_window.h to ui_win32.h 2016-06-07 16:33:55 +02:00
twinaphex
febe0a2a1e (UI) Turn some functions static 2016-06-07 16:32:13 +02:00
twinaphex
a90bd8cb67 Add ui_null_application.c 2016-06-07 16:31:35 +02:00
twinaphex
ea5f458fbd Go through function pointer 2016-06-06 08:01:26 +02:00
Twinaphex
b78b29cb14 (Cocoa) Turn functions static 2016-06-06 07:40:44 +02:00
twinaphex
77d5de3b4c Create ui_companion_driver_get_window_ptr 2016-06-06 07:35:45 +02:00
Twinaphex
e4d202458a (iOS) Buildfix 2016-06-05 07:01:04 +02:00
twinaphex
2f7bc8760c Turn win32_browser into static function 2016-06-04 18:43:03 +02:00
twinaphex
757c83ea58 Turn apple_rarch_exited static 2016-06-04 18:10:52 +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
4b0401462f (OSX) Buildfixes 2016-06-04 17:34:01 +02:00
twinaphex
4a649695a5 Add prototypes 2016-06-04 17:27:23 +02:00
twinaphex
75781bb256 (Win32) Buildfix 2016-06-04 17:26:14 +02:00
twinaphex
fc9954d967 Create window_focused callback 2016-06-04 17:24:46 +02:00
twinaphex
52d85c50d2 Implement ui_window_win32_set_droppable 2016-06-04 08:48:04 +02:00
Twinaphex
bb5107b5fa Don't use ui_cocoa_window_set_droppable for now 2016-06-04 08:45:20 +02:00
twinaphex
47c7330cc8 Add set_droppable 2016-06-04 08:38:38 +02:00
Twinaphex
37d4dcfac1 (Cocoa) Implement ui_window_cocoa_destroy 2016-06-04 08:16:14 +02:00
Twinaphex
deb3efb8db (Cocoa) Implement ui_window_cocoa_set_focused and ui_window_cocoa_set_visible 2016-06-04 08:14:39 +02:00
Twinaphex
860fb1d525 (Cocoa) Implement ui_window_cocoa_set_title 2016-06-04 08:09:55 +02:00
Twinaphex
7a564720fb (Cocoa) Buildfix 2016-06-04 08:00:19 +02:00
Twinaphex
98014f7b66 (Cocoa) Add stub ui_cocoa_window.m 2016-06-04 07:56:28 +02:00
twinaphex
fe0391825b (UI/Win32) Change on_top_checkbox's type 2016-06-04 06:58:00 +02:00
twinaphex
f2f38be4e6 Refactor shader_param_ctrl_t 2016-06-04 06:55:29 +02:00
twinaphex
e6c7450c53 Turn g_shader_dlg.separator into ui_win32_window type 2016-06-04 06:39:18 +02:00
twinaphex
0ae7bf2a53 Use ui_window_win32 for g_shader_dlg 2016-06-04 06:31:14 +02:00
twinaphex
f8901d4e47 Fix initializer 2016-06-04 06:28:35 +02:00
twinaphex
f7bcc68cd9 Buildfix 2016-06-04 06:27:49 +02:00
twinaphex
999437f31b Use ui_window_win32_t for g_shader_dlg 2016-06-04 06:27:04 +02:00
twinaphex
efc8df02f0 Put extern prototype inside ui_win32_window.h header 2016-06-04 06:04:02 +02:00
twinaphex
8093d2f124 Remove this file 2016-06-04 05:41:12 +02:00
twinaphex
05c4308cac (Win32) Buildfix 2016-06-04 05:05:41 +02:00
twinaphex
aedd7fa53e Implement set_visible function callback 2016-06-04 05:04:00 +02:00
twinaphex
cd49b89bbf Add set_title function callback to ui_window_t 2016-06-04 04:57:44 +02:00
twinaphex
2f1fb7783d Add set_focused function callback to window 2016-06-04 04:54:12 +02:00
twinaphex
5cf1b4b233 (Win32) Buildfix 2016-06-04 04:39:41 +02:00
twinaphex
be08e07a66 ui_window - add destroy function callback 2016-06-04 04:37:37 +02:00
twinaphex
bc7e7a26f0 Add ui/drivers/win32_ui_win32_window.h 2016-06-04 04:36:07 +02:00
twinaphex
61e1c13ae6 Create stub window interface 2016-06-04 04:24:54 +02:00
Twinaphex
cbae4af38a (OSX) Add preliminary drag and drop code 2016-06-03 19:21:37 +02:00
twinaphex
01390f8ceb Use retro_common_api.h 2016-06-03 08:06:49 +02:00
Twinaphex
1aef6ddbc8 Merge pull request #3058 from mudlord/master
Updates to drag and drop:
2016-06-03 08:04:10 +02:00
mudlord
bcf636283b Updates to drag and drop:
* Now recognises old core used, if compatible.
* If not compatible, compatibile cores are scanned and used.
* Different compatible cores are now enumerated to be selected at will.
2016-06-03 16:00:08 +10:00
twinaphex
7ce2ac082a Use retro_common_api.h 2016-06-03 05:54:21 +02:00
twinaphex
5097240aef Add OFN_NOCHANGEDIR in hopes Win32 file dialogs won't change
current working dir
2016-05-31 04:48:00 +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
4b2d9a9ae5 (ui_win32) Include tasks_internal.h 2016-05-16 20:21:53 +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
e95bb7e37a (Windows) Another buildfix 2016-05-16 15:36:31 +02:00
twinaphex
6ef0b86e30 Reimplement content loading - task_content_load 2016-05-16 12:51:55 +02:00
Twinaphex
19afc807ef (iOS) Not sure why we are calling rarch_main() twice for iOS 2016-05-10 23:33:51 +02:00
twinaphex
2691ab0c7d Rename command_event enums 2016-05-09 20:51:53 +02:00
twinaphex
523ebed112 Combine command_event.c and command.c 2016-05-09 20:30:47 +02:00
twinaphex
a98ef36d36 Rename event_cmd_ctl to command_event 2016-05-09 20:20:50 +02:00
twinaphex
1b8e8ac22a Remove video_shader_driver_ctl 2016-05-08 21:11:27 +02:00
twinaphex
13e67aa44e Create runloop_iterate_data 2016-05-08 06:29:11 +02:00
Twinaphex
803c27c582 (iOS) Cleanups 2016-05-04 04:13:33 +02:00
Twinaphex
51565e6336 (iOS) Avoid some analyze warnings 2016-05-04 04:10:33 +02:00
twinaphex
ce5d065014 Cast as NSUInteger 2016-05-02 14:54:08 +02:00
Twinaphex
829656391a (OSX) Fix build 2016-04-28 19:29:21 +02:00
twinaphex
11cc280239 (Win32) Buildfix 2016-04-28 19:27:17 +02:00
Twinaphex
20706b51de (iOS) Fix iOS - pass argc/argv 2016-04-05 21:22:23 +02:00
Twinaphex
cf9d8a8adb (iOS) rewrite this 2016-04-05 20:58:17 +02:00
twinaphex
c536e0fbdc (iOS) argv needs to always be non-NULL 2016-04-05 20:53:02 +02:00
twinaphex
93b7dc1bdd (libretro-common) move 'lists' files to lists/ 2016-03-20 14:53:54 +01: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
93e17b46bd Cleanups 2016-02-26 13:32:56 +01:00
twinaphex
61a4d47feb (ui_win32.c) 80-char width limit 2016-02-26 13:31:34 +01:00
twinaphex
debb5dd0ce Add SHADER_CTL_GET_CURRENT_SHADER 2016-02-14 22:13:21 +01:00
Twinaphex
485750c8ba Remove unused variable 2016-02-12 06:50:44 +01:00
twinaphex
cfe884f0b7 Add ui_companion_driver_toggle 2016-02-12 06:43:06 +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
b5e28cda58 Create RARCH_MENU_CTL_ITERATE 2016-02-10 20:13:12 +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
twinaphex
3f3a305396 (CocoaTouch) Buildfix 2016-01-18 22:15:19 +01:00
twinaphex
91de59c7ff (Cocoa) Cleanups 2016-01-18 22:10:16 +01:00
twinaphex
cebea56412 Add UI Companion Enable setting 2016-01-18 21:35:09 +01:00
Phillip Ponson
6ca58a4d6e iOS: Refactoring support for background Music.app. 2016-01-17 19:51:28 -06: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
dd239fc85d Add HAVE_AVFOUNDATION ifdefs 2016-01-16 22:02:49 +01:00
pponso1
a983c8269e iOS. Adding support for Music.app.
I had to comment out this line in the showPauseMenu function: 
  
ui_companion_cocoatouch_event_command(NULL, EVENT_CMD_AUDIO_STOP);

This may actually be on the only change needed. 😜
2016-01-16 12:37:09 -06:00
pponso1
3ce5ad9243 iOS. Adding support for Music.app.
Users who want to play games while listening to music should enjoy these modifications. Not the cleanest; refactoring is needed.
2016-01-16 12:25:57 -06:00
pponso1
452c6afaf0 support for playing Music.app in background. 2016-01-16 12:09:44 -06: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
44ffd90278 (ui_win32.c) Fix 2016-01-13 17:07:23 +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
7a55ae3765 Start updating headers for 2016 2016-01-10 04:06:50 +01:00
Yoshi Sugawara
890eaafcd7 Fixed reading keyboard input for iOS 9 (use [UIApplication handleKeyUIEvent]). Fixed 8bitdo SNES30/SFC30 button mappings (fixed key mapping for X button) 2015-12-26 19:38:02 -05:00
twinaphex
c2d7cbe18b Use string_is_empty 2015-12-26 07:59:15 +01:00
twinaphex
3df4101321 Get rid of menu_entries_set_start and menu_entries_get_start 2015-12-12 14:39:35 +01:00
twinaphex
fde4826754 Add MENU_ENTRIES_CTL_SHOW_BACK 2015-12-11 21:34:27 +01:00
twinaphex
9216fc9421 (CocoaTouch) Buildfix 2015-12-11 15:55:47 +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
2f6dc858e2 (iOS) Buildfix 2015-12-10 20:14:09 +01:00
twinaphex
ffa1db61e6 (Win32) Buildfix 2015-12-08 09:32:48 +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
a3146ecca5 (CocoaTouch) Buildfix 2015-12-06 21:01:26 +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
718ed30d70 (Cocoa) Buildfixes 2015-12-06 18:18:50 +01:00
twinaphex
29f6d23d90 (Cocoa) Buildfix 2015-12-05 17:20:11 +01:00
twinaphex
f0b4f216b9 Attempt to fix iOS build errors 2015-12-05 17:15:32 +01:00
twinaphex
63c12b0083 Don't include ui_companion_driver.h inside driver.h 2015-12-05 10:04:06 +01:00
twinaphex
de97726323 Take out ui companion state from driver_t 2015-12-05 10:01:20 +01:00
twinaphex
29dcf06a2e Move ui_companion_driver code all to ui_companion_driver.c 2015-12-05 09:55:13 +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