Keith Bauer
c4903d9267
Cocoa: Fix half of all key events for Caps Lock
...
This adds reporting of those Caps Lock key events that cause the lock
state to change.
The full fix involving IOHID is being worked on in #1368 .
Related to #1368 .
Closes #1373 .
ago%!(EXTRA string=7 years)
Andrew Belt
cc621765e5
Cocoa: Accept focusing mouse click as input
...
This makes the behavior on macOS consistent with other platforms.
Fixes #1209 .
Closes #1386 .
ago%!(EXTRA string=7 years)
Camilla Löwy
17a15a20f2
Cocoa: Move to modern Objective-C literals
ago%!(EXTRA string=7 years)
Camilla Löwy
c3ed70a4b7
Cocoa: Add NSApplicationDelegate protocol
ago%!(EXTRA string=7 years)
Camilla Löwy
88c5edb409
Cocoa: Remove subclassing of NSApplication
...
This removes the GLFW NSApplication subclass as a step towards better
coexistence with other libraries that touch Cocoa.
This moves application object creation to platform init to allow event
processing before window creation.
Related to #1317 .
ago%!(EXTRA string=7 years)
Camilla Löwy
f680001b95
Cocoa: Remove superfluous compatibility macro
ago%!(EXTRA string=7 years)
Camilla Löwy
18145a7f3d
Cocoa: Use NSURLs for drag and drop
...
Fixes #1377 .
ago%!(EXTRA string=7 years)
Camilla Löwy
5595fa3ae6
Cocoa: Fix OpenGL rendering not being displayed
...
Fix based on information provided by @rcgordon .
Fixes #1334 .
Closes #1346 .
ago%!(EXTRA string=7 years)
Camilla Löwy
6dfc12a439
Cocoa: Fix some macOS 10.14 deprecation warnings
ago%!(EXTRA string=7 years)
Camilla Löwy
50eccd298a
Fix cursor mode application for unfocused windows
...
Fixes #1239 .
Fixes #1247 .
ago%!(EXTRA string=7 years)
Camilla Löwy
2884915000
Cocoa: Set CAMetalLayer contents scale from window
...
Fixes #1229 .
ago%!(EXTRA string=7 years)
Camilla Löwy
5f8108e8a9
Cocoa: Fix SDK version numbers
...
The pattern for version 10.10 and later was incorrectly applied to
version number for 10.8.
Fixes #1232 .
ago%!(EXTRA string=7 years)
Camilla Löwy
77879736af
Cocoa: Event polling did not initialize AppKit
...
Fixes #1218 .
ago%!(EXTRA string=7 years)
Camilla Löwy
58cc4b2c5c
Move full screen cursor centering to shared code
ago%!(EXTRA string=8 years)
Camilla Löwy
cfb5cb8805
Add comment
ago%!(EXTRA string=8 years)
Camilla Löwy
1d75b205cb
Cleanup
...
Allow window creation despite video mode setting failure.
Video mode setting failure is ignored the rest of the time and the
desired video mode has never been a hard constraint anyway.
ago%!(EXTRA string=8 years)
Camilla Löwy
973bf29622
Remove use of non-standard function strdup
...
Related to #873 .
ago%!(EXTRA string=8 years)
Camilla Löwy
ee9dffcd66
Add GLFW_HOVERED for polling cursor hover state
...
This window attribute corresponds to the cursor enter/leave callback.
Fixes #1166 .
ago%!(EXTRA string=8 years)
Camilla Löwy
370eac3c48
Add glfwSetWindowContentScaleCallback
...
Related to #677 .
Related to #1115 .
ago%!(EXTRA string=8 years)
Camilla Löwy
9da2285b14
Cocoa: Make frame autosave hint a string
ago%!(EXTRA string=8 years)
Camilla Löwy
0e8c4ea7ce
Add lock key modifier bits input mode
...
This adds the GLFW_MOD_CAPS_LOCK and GLFW_MOD_NUM_LOCK modifier bits.
Set the GLFW_LOCK_KEY_MODS input mode to enable these for all callbacks
that receive modifier bits.
Fixes #946 .
ago%!(EXTRA string=8 years)
Stephen Gowen
bb13275b72
Cocoa: Fix Xcode Warnings
...
Closes #1132 .
ago%!(EXTRA string=8 years)
Camilla Löwy
1fe319d234
Cocoa: Filter out duplicate size events
...
Fixes #1085 .
ago%!(EXTRA string=8 years)
Camilla Löwy
8b81a03a5a
Cocoa: Remove double resize of full screen window
...
Related to #1085 .
ago%!(EXTRA string=8 years)
Camilla Löwy
11e47f08b1
Add glfwGetWindowOpacity and glfwSetWindowOpacity
...
This adds support for setting the opacity of the whole window, including
any decorations.
Fixes #1089 .
ago%!(EXTRA string=8 years)
Camilla Löwy
31cbb20ba2
Deprecate window parameter of clipboard functions
ago%!(EXTRA string=8 years)
Camilla Löwy
bf09dba95b
Cleanup
ago%!(EXTRA string=8 years)
Camilla Löwy
16bf872117
Add content scale queries
...
This adds glfwGetWindowContentScale and glfwGetMonitorContentScale for
querying the recommended drawing scale factor for DPI-aware rendering.
Parts of this patch are based on code by @ferreiradaselva .
Fixes #235 .
Fixes #439 .
Fixes #677 .
Fixes #845 .
Fixes #898 .
ago%!(EXTRA string=8 years)
Camilla Löwy
5aeb37d1b8
Cocoa: Fix window title being lost when untitled
...
The window title was lost and could not be updated while the window did
not have NSWindowStyleMaskTitled set.
Fixes #1082 .
ago%!(EXTRA string=8 years)
Camilla Löwy
da68ec56c3
Cocoa: Start using instancetype
...
The first tiny step towards using more modern Objective-C.
ago%!(EXTRA string=8 years)
Camilla Löwy
32e78aeb2e
Add GLFW_TRANSPARENT attribute and documentation
...
This completes support for window framebuffer transparency on Windows,
macOS and X11. Note that the hint/attribute may be renamed before
release to clarify its relationship to GLFW_OPACITY.
Fixes #197 .
Closes #1079 .
Related to #663 .
Related to #715 .
Related to #723 .
Related to #1078 .
ago%!(EXTRA string=8 years)
Bailey Cosier
93e66661d3
Cleanup
...
This is an extract of a commit, minimally edited to ensure it compiles.
Closes #1078 .
Related to #197 .
ago%!(EXTRA string=8 years)
Cem Karan
ac009a5f5c
Cocoa: Implement GLFW_TRANSPARENT
...
This is an extract of a commit, minimally edited to ensure it compiles.
Closes #663 .
Related to #197 .
ago%!(EXTRA string=8 years)
Camilla Löwy
58a247b26d
Cocoa: Fix some characters not repeating
...
Fixes #1010 .
ago%!(EXTRA string=8 years)
Camilla Löwy
ce5e649d3b
Cleanup
...
Move global data to library struct. Simplify semantics. Update
changelog.
Related to #1028 .
ago%!(EXTRA string=8 years)
Sergey Tikhomirov
80e4922b5e
Cocoa: Hide cursor instead of using blank image
...
When cursor isn't in normal mode and should be hidden, use [NSCursor hide]
method instead of setting it to blank image. This should prevent
situations when hidden cursor becomes visible after system notification
was shown.
Fixes #971 .
Closes #1028 .
ago%!(EXTRA string=8 years)
Camilla Löwy
ab2247f8f3
Cocoa: Fix string object being updated incorrectly
...
Fixes #1050 .
ago%!(EXTRA string=8 years)
Camilla Löwy
82284b86eb
Cleanup
...
Thanks to glfwGetKeyScancode we can now pass only a scancode to the
platform layer for glfwGetKeyName.
ago%!(EXTRA string=8 years)
ryogo.yoshimura
4dee58d480
Cocoa: Fix conversion between NSPoint and CGPoint
...
GLFW still supports versions of macOS before these became the same
underlying type.
Closes #1023 .
ago%!(EXTRA string=8 years)
Camilla Löwy
018ae69b33
Cleanup
...
Related to #985 .
ago%!(EXTRA string=8 years)
Konstantin Käfer
d1d08ef99f
Cocoa: Fix EGL support
...
This adds support for using GLFW with EGL backends on macOS. While EGL
isn't available by default on macOS, there are third-party
implementations like SwiftShader.
The addition of MoltenVK support added an override to makeBackingLayer.
In non-Vulkan mode, this means that we are returning nil from that
function. The NSGL implementation creates this layer manually later on,
but other OpenGL backends don't necessarily do that.
Closes #985 .
ago%!(EXTRA string=8 years)
Felipe Ferreira da Silva
412eb6a611
Add glfwRequestWindowAttention
...
Related to #988 .
ago%!(EXTRA string=8 years)
Camilla Berglund
7410346c5c
Cocoa: Allow undecorated windows to become main
ago%!(EXTRA string=8 years)
Camilla Löwy
3d8aa53573
Cocoa: Fix full screen window not being restorable
...
Once a full screen window was iconified, it would appear to restore but
then disappear.
Fixes #848 .
ago%!(EXTRA string=8 years)
Camilla Löwy
7c88c92778
Cocoa: Fix window rect on leaving video mode
...
Fixes #748 .
ago%!(EXTRA string=8 years)
Camilla Löwy
7a8516d296
Cleanup
ago%!(EXTRA string=8 years)
Camilla Löwy
c50aba1335
Cocoa: Add support for MainMenu.nib loading
ago%!(EXTRA string=8 years)
Camilla Löwy
6d9a58bfef
Add glfwInitHint
...
This allows setting hints that control how the library is initialized,
transforming more compile-time options into run-time ones.
ago%!(EXTRA string=8 years)
Camilla Löwy
e9560ef021
Add GLFW_OSMESA_CONTEXT_API
...
This allows the creation of OpenGL contexts via OSMesa on existing
platforms. It does not add a compile- or link-time dependency on
OSMesa.
Fixes #281 .
ago%!(EXTRA string=8 years)
Camilla Löwy
ce8fe645f4
Cleanup
ago%!(EXTRA string=8 years)