Alex Szpakowski
562473c1f4
macOS: Address more compiler warnings when building with a recent deployment target.
2017-07-13 23:09:37 -03:00
Alex Szpakowski
bc3ede1ed0
macOS: Replace uses of deprecated Cocoa enum names with modern/consistent equivalents.
2017-07-13 22:59:02 -03:00
Philipp Wiesemann
90ed3daa3e
Changed messages about not recognized keys to include discourse link.
2017-05-26 22:45:52 +02:00
Ryan C. Gordon
ce2998b8b9
cocoa: Don't crash on messagebox keypress without a successful SDL_Init().
2017-05-02 21:46:28 -04:00
Sam Lantinga
45b774e3f7
Updated copyright for 2017
2017-01-01 18:33:28 -08:00
Sam Lantinga
6d67c98e70
Fixed crash on Mac OS X 10.10 and earlier
2016-10-19 20:39:12 -07:00
Sam Lantinga
267207ffca
Worked around a crash on Mac OS X 10.10 and earlier, thanks to Eric Wasylishen.
2016-10-18 23:12:45 -07:00
Sam Lantinga
3a77b42de7
Fixed build warning
2016-10-12 18:45:56 -07:00
Sam Lantinga
351adf156a
Fixed bug 2157 - Caps Lock key produces key down & key up events while key is still pressed.
...
Tim McDaniel
Using checkkeys test app:
* Press and hold Caps Lock key.
* checkkeys reports a CapsLock key pressed event and a CapsLock key released event.
* Release Caps Lock key.
* checkkeys reports no further events.
This patch fixes OSX Caps Lock up/down event detection by installing a HID callback.
2016-10-04 02:11:52 -07:00
Alex Szpakowski
86708c3cd8
Enable more compiler warnings in the Xcode projects (based on Xcode 8's suggestion), made some integer downcasts explicit.
2016-09-13 19:51:10 -03:00
Alex Szpakowski
0a4085a048
Mac: Fix a crash when SDL is compiled with SDL_MAC_NO_SANDBOX enabled, by increasing the stack size of the mouse tap thread back to OS X' default of 512 KB.
2016-05-21 12:09:23 -03:00
Alex Szpakowski
4a468739f8
Removed Mac OS 10.5 support (bug #3137 ). Also fixed a warning about deprecated Carbon code when using SDL_audio (bug #3127 , thanks Dominik!)
2016-05-21 00:20:52 -03:00
Sam Lantinga
42065e785d
Updated copyright to 2016
2016-01-02 10:10:34 -08:00
Ryan C. Gordon
51c1d69d13
Mac: Whoops, lost legit Caps lock keypress events. Fixed.
2015-12-28 13:30:58 -05:00
Ryan C. Gordon
257b7af247
Sync up the caps/numlock state properly without sending key events.
...
Partially fixes Bugzilla #2736 and #3125 .
2015-12-28 13:07:44 -05:00
Ryan C. Gordon
faed05850e
Mac: make sure SDL keyboard state reflects system capslock state at startup.
2015-12-27 16:46:12 -05:00
Alex Szpakowski
a2235d7b29
Cocoa: Use NSTextInputClient instead of NSTextInput for text input handling. The latter was deprecated in OS X 10.6.
2015-12-10 22:17:22 -04:00
Alex Szpakowski
998a54f9c5
Mac: Fix a warning about implicit declaration of SDL_SendKeymapChangedEvent (bug #3167.)
2015-11-14 04:24:39 -04:00
Sam Lantinga
2b0140a91f
Add a new SDL_KEYMAPCHANGED SDL event to abstract notification of keyboard layout or input language changes.
2015-10-27 11:17:32 -07:00
Philipp Wiesemann
0e45984fa0
Fixed crash if initialization of EGL failed but was tried again later.
...
The internal function SDL_EGL_LoadLibrary() did not delete and remove a mostly
uninitialized data structure if loading the library first failed. A later try to
use EGL then skipped initialization and assumed it was previously successful
because the data structure now already existed. This led to at least one crash
in the internal function SDL_EGL_ChooseConfig() because a NULL pointer was
dereferenced to make a call to eglBindAPI().
2015-06-21 17:33:46 +02:00