Commit Graph

259 Commits

Author SHA1 Message Date
twinaphex 0946604627 (Qt) Only call log_msg when the Qt companion UI window is active 2020-06-26 21:45:09 +02:00
twinaphex 1ae20ea17c Style nits - turn macro names into upper-case - some while style nits 2020-06-26 20:00:19 +02:00
twinaphex 88f7515d1d Cleanups, comments, style nits 2020-06-04 14:41:28 +02:00
Twinaphex 4b4a8693ac Remove unused variable 2020-05-21 22:27:20 +02:00
Alex Kornitzer 1d2dd249f3 cocoa: disable clipping cursor to window 2020-05-11 00:58:06 +01:00
Alex Kornitzer c4ee0463aa cocoa: don't update mouse events when outside nswindow 2020-05-10 22:44:44 +01:00
Alex Kornitzer edfafd9fad cocoa: fix mouse movement
The input driver was using absolute coordinate arithmetic while making
use of delta changes for each coordinate, as a result the absolute
change netted to zero. This fixes that and tries to mitigate cursor
event sync issues (sync issues will require more work).
2020-05-10 22:44:44 +01:00
Alex Kornitzer ac4b49f1c2 ui_cocoa: fix mouse input for cocoa
This brings back two lines of code that have been removed over time but
appear to be required in order for mouse input to work on macOS.
2020-04-16 22:01:40 +01:00
twinaphex 31263970ad Fix include path 2020-03-07 06:50:43 +01:00
twinaphex 85c672a0f6 Settings pointer cleanups 2020-02-19 20:57:02 +01:00
twinaphex 310bf3328e (UI) Cleanups 2020-02-13 22:39:29 +01:00
twinaphex f785e4b045 Replace while (1) with for (;;) - avoids MSVC warnings 2020-01-30 16:15:52 +01:00
Jean-André Santoni c0dfcd2adf
Fix Metal build 2019-11-30 12:49:52 +07:00
Jean-André Santoni f349784bd6
Fix the xcode build 2019-11-30 12:43:38 +07:00
twinaphex 861379d8e3 Revert code in hopes iOS works again 2019-11-20 06:25:40 +01:00
Jean-André Santoni 947e15f34f
Move WindowListener around 2019-11-19 12:00:24 +07:00
Twinaphex c7ce2c7053 Fix Xcode issue 2019-11-19 05:54:01 +01:00
Twinaphex 107b5eec44 (OSX) Simplify 2019-09-22 22:53:57 +02:00
Twinaphex 73c63d8768 (Cocoa) Add mouse down events 2019-09-20 18:22:14 +02:00
twinaphex ca3a80091a Cleanup runloop_iterate
NOTE/CHECK: Hopefully wiiu is unaffected by the change
in sleeping
2019-08-11 19:39:48 +02:00
Twinaphex db6a4f8368 (UI Companion) Get rid of unused iterate function callback 2019-07-19 13:59:07 +02:00
twinaphex 69fb32cd68 Get rid of these two pointer functions 2019-07-11 04:28:49 +02:00
Twinaphex c8486a5081 (Cocoa/Metal) Silence bunch of warnings 2019-06-24 14:58:32 +02:00
twinaphex 0c2c6781bf (Cocoa GL) ui_companion_cocoa_event_command was in an infinite loop 2019-06-19 12:07:25 +02:00
neville 7c4329f31d (OSX PPC) Buildfixes 2019-05-06 14:12:25 +02:00
twinaphex 7372bafb44 Remove RARCH_CTL_SET_LIBRETRO_PATH 2019-04-21 06:03:02 +02:00
twinaphex 6f43b7974b Add cocoa_gl_shared.h 2019-02-10 00:31:27 +01:00
twinaphex 1a8ad73c3f (Cocoa) Unify both headers 2019-02-09 04:40:38 +01:00
Twinaphex 4df6a5ad25 (OSX) Buildfix 2019-02-07 06:37:41 +01:00
twinaphex 89a6992d0c (Cocoa) Last change for today - combine ui_cocoa.m and ui_cocoa_metal.m 2019-02-07 06:32:49 +01:00
orbea 28ff4b391a Clean up white space. 2019-02-03 16:00:50 -08:00
Twinaphex ee36fd54c3 Cleanups 2019-01-31 22:18:15 +01:00
Twinaphex 5102911da6 (OSX) Buildfix 2019-01-20 03:26:35 +01:00
twinaphex 69aae94e5f
(Cocoa) Dehardcode some strings
(cherry picked from commit 7c93a0934e)
2018-11-04 20:50:51 -07:00
twinaphex 512a681345
Use runloop_get_libretro_system_info in more places - clean some code up
(cherry picked from commit a662b62d19)
2018-11-04 20:50:51 -07:00
twinaphex 9a73bae868
Buildfix
(cherry picked from commit 7717631909)
2018-11-04 20:50:51 -07:00
twinaphex 0db432ca68
Add HAVE_QT ifdefs
(cherry picked from commit 9f74b05b13)
2018-11-04 20:50:51 -07:00
twinaphex 7880e11ca0
Warning fix
(cherry picked from commit fa1096a604)
2018-11-04 20:50:51 -07:00
twinaphex 04c046e831
Update
(cherry picked from commit 64cc28a487)
2018-11-04 20:50:50 -07:00
Stuart Carnie 5c1075127b
chore(metal): Separate legacy GL and Metal source
* Forks of Cocoa / Cocoa Touch to *_metal.* version
* Reverted original GL Cocoa / Cocoa Touch versions
* GL and Metal projects still build
2018-11-04 20:50:50 -07:00
twinaphex 7c93a0934e (Cocoa) Dehardcode some strings 2018-10-30 19:32:52 +01:00
twinaphex a662b62d19 Use runloop_get_libretro_system_info in more places - clean some code up 2018-10-30 17:11:07 +01:00
Stuart Carnie 1e6503c0d9 fix(cocoa): Use RApplication for OpenGL 2018-10-21 15:57:05 -07:00
Stuart Carnie ab1242f368 fix(cocoa): Move sendEvent implementation to RAWindow
Introduced independent Info_Metal.plist and MainMenu_Metal.xib files,
to avoid breaking earlier builds.
2018-10-18 19:03:10 -07:00
Stuart Carnie ca0c1533e3 fix(cocoa): Suppress event propagation when event is not for RA window
This is required when the Qt window is focused.

Ideally, event handling should be reviewed and refactored such that this
hack is not necessary.
2018-10-17 22:39:45 -07:00
Stuart Carnie 9370123133 fix: Post CMD_EVENT_QUIT directly to command queue 2018-10-17 19:36:18 -07:00
twinaphex 7717631909 Buildfix 2018-10-15 03:38:43 +02:00
twinaphex 9f74b05b13 Add HAVE_QT ifdefs 2018-10-15 03:38:15 +02:00
twinaphex fa1096a604 Warning fix 2018-10-01 03:43:53 +02:00
Stuart Carnie f1ad1ff444 fix(Metal): Fix invalid selector
Removed selector logic and wrapped in HAVE_METAL, given this is only
called when Metal is enabled.
2018-09-02 12:51:34 -07:00