285 Commits

Author SHA1 Message Date
twinaphex
ea9f3f13ca (Apple OSX) Swallow 'escape' key being pressed - would previously make the game
go from fullscreen to windowed
2021-04-07 00:48:21 +02:00
twinaphex
69eff40e0d Cleanup 2021-03-08 16:35:55 +01:00
twinaphex
0b06eea846 (ui_cocoa.m) Cleanups - add fall-throughs 2021-03-08 15:19:26 +01:00
twinaphex
b0b81406ad Cut down on HAVE_COCOA_METAL/HAVE_COCOA ifdef 2021-03-08 04:09:43 +01:00
twinaphex
ee77cd7288 Move cocoa_defines.h to defines/ 2021-03-08 03:58:41 +01:00
twinaphex
ea3e9ee1c6 Buildfix 2021-03-08 00:33:31 +01:00
twinaphex
01c163a2fa (Cocoa) Combine Cocoa files into one 2021-03-08 00:28:21 +01:00
twinaphex
9e2ff36d4a (macOS) Silence warning 2021-01-27 03:44:11 +01:00
Autechre
a49b02c44b
(Mac) Makefile changes for supporting Metal build (#11929)
* (QB) Add rule for Metal - define HAVE_COCOA_METAL for now
when building for Metal, and HAVE_COCOA for non-Metal build

* Make necessary changes to Makefile.common and qb/config.libs.sh:
- Disable OpenGL for now for Metal build
- Take Metal conditional out of OpenGL block in Makefile.common

* (Metal) Header fixes for compiling without Xcode/Griffin

* (Mac) Some buildfixes for non-Xcode building

* (cocoa_common.h) Restructure to no longer use -DOSX

* (Apple) More buildfixes

* (Apple) Cleanups
2021-01-22 22:20:38 +01:00
Twinaphex
a83c328631 (Metal) Fix some build problems 2021-01-19 04:38:07 +01:00
twinaphex
0294b0c626 (Cocoa) Don't use NSEventModifierFlags type anymore - just
use NSUInteger instead
2021-01-18 20:41:30 +01:00
twinaphex
5c0aafe6e2 Simplify applicationDidFinishLaunching code for OSX 10.7 and up 2021-01-18 00:08:21 +01:00
twinaphex
1e9f6f175e (OSX) Fix PowerPC build 2021-01-17 05:02:07 +01:00
twinaphex
6d39160de1 CLeanups 2021-01-16 22:36:03 +01:00
twinaphex
a7bb200a1c (UI Cocoa) Cleanups 2021-01-16 22:22:16 +01:00
twinaphex
ca413ff132 (Cocoa) Cleanups 2020-09-15 21:03:27 +02:00
twinaphex
de68ce185c (Cocoa) Cleanups 2020-09-15 21:00:22 +02:00
Twinaphex
eaf540e563 Cleanups 2020-09-15 20:45:42 +02:00
twinaphex
d8406baf33 Cleanups 2020-09-14 23:14:26 +02:00
twinaphex
6bac58b902 Cleanups 2020-09-14 21:55:00 +02:00
Twinaphex
f5417943c7 Cleanups 2020-09-14 20:47:07 +02:00
Twinaphex
1fa89b642a (Cocoa) sendEvent - cleanups 2020-09-14 20:32:04 +02:00
Twinaphex
dfc8f66d09 (Cocoa) sendEvent - cleanups 2020-09-14 20:27:44 +02:00
Twinaphex
e5a52a82b6 Don't reference event unnecessarily 2020-09-14 20:23:49 +02:00
Twinaphex
9184fa3689 More cleanups in sendEvent 2020-09-14 20:14:23 +02:00
Twinaphex
d177b9e737 (Cocoa) Optimize sendEvent 2020-09-14 20:09:30 +02:00
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