Alex Szpakowski
f31c7086d8
Enable SDL_LoadObject on iOS 8+ and tvOS.
2016-09-25 15:02:06 -03:00
Alex Szpakowski
77bacfd72d
tvOS launch images are now properly supported.
2016-09-25 11:46:25 -03:00
Alex Szpakowski
40ecac8e60
Don't try to load a launch storyboard on tvOS (it doesn't use them).
2016-09-25 00:21:12 -03:00
Alex Szpakowski
666d3fecc8
iOS/tvOS: Try to load the launch screen as a storyboard. Xcode 8 compiles it as a storyboard instead of a nib.
2016-09-24 23:33:49 -03:00
Alex Szpakowski
9165ba7ebd
iOS/tvOS: Always send SDL_WINDOWEVENT_FOCUS_GAINED when a window is created on the main screen (fixes bug #3395 ).
2016-09-24 20:12:57 -03:00
Alex Szpakowski
450fa8cdf9
Use OS-provided click counts on macOS and iOS for mouse press and release events.
2016-09-24 18:46:34 -03:00
Alex Szpakowski
bac5394127
Fix mouse wheel events on macOS 10.12 (thanks Eric Wasylishen!)
...
Fixes bug #3432
2016-09-24 13:28:40 -03:00
Brandon Schaefer
89c538a4e3
Mir: Add gamma support set/get. Still need one more function to complete the set
2016-09-21 18:23:59 -07:00
Brandon Schaefer
a729c4f97a
Mir: Add fixme (waiting for a public api to be added)
2016-09-21 16:28:23 -07:00
Brandon Schaefer
705ecf78f5
[Mir] Move to the new MirDisplayConfig API
2016-09-21 15:57:15 -07:00
Philipp Wiesemann
8e88f08150
Mac: Fixed whitespace around function return type.
2016-09-21 23:06:49 +02:00
Philipp Wiesemann
85588ea040
Android: Fixed two warnings about unused variables.
2016-09-21 23:06:26 +02:00
Alex Szpakowski
f0fca2880f
Handle audio interruptions on iOS/tvOS. Fixes bugs 2569 and 2960.
2016-09-18 19:22:09 -03:00
Ryan C. Gordon
06700a905b
emscripten: get even more aggressive about audio device closing.
...
I still get exceptions thrown sometimes on shutdown without this.
2016-09-18 18:07:47 -04:00
Sam Lantinga
29214826ec
Fixed warning with Xcode 7.3.0
2016-09-16 22:27:58 -07:00
Alex Szpakowski
a96b6f2104
Added a new hint SDL_HINT_APPLE_TV_REMOTE_ALLOW_ROTATION.
...
When set to "1", the orientation of the Apple TV remote affects the axes of the corresponding SDL joystick. It is "0" (disabled) by default.
2016-09-17 01:31:07 -03:00
Alex Szpakowski
4bcce330d1
tvOS: Add drop-file support
2016-09-15 21:49:29 -03:00
Alex Szpakowski
4209a1fd4c
CoreAudio iOS/tvOS: Use AVFoundation instead of AudioSession. Fixes audio on tvOS.
...
Note that linking with AVFoundation is now required if you don't disable SDL_audio compilation on iOS and tvOS.
2016-09-15 19:59:57 -03:00
Sam Lantinga
86d4b09914
Fixed spacing
2016-09-13 18:44:28 -07:00
Sam Lantinga
925859aaa6
Fixed accidental call to SDL_PrivateJoystickHat()
2016-09-13 18:43:55 -07:00
Alex Szpakowski
f050576665
Initial Apple TV / tvOS support.
...
The Apple TV remote is currently exposed as a joystick with its touch surface treated as two axes. Key presses are also generated when its buttons and touch surface are used.
A new hint has been added to help deal with deciding whether to background the app when the remote's menu button is pressed: SDL_HINT_APPLE_TV_CONTROLLER_UI_EVENTS.
2016-09-13 22:18:06 -03: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
Sam Lantinga
00791f3a87
Only prevent the default browser event handling when the specific event types aren't disabled by the user, patch contributed by Jonas Platte
2016-09-13 00:09:21 -07:00
Charlie Birks
993dd83510
Add mapping for media keys
2016-09-13 00:04:00 -07:00
Alon Zakai
1b6565fcb7
use Module.createContext for 2D rendering in emscripten
2016-09-13 00:03:59 -07:00
Alon Zakai
bec5573476
add some detail to fullscreen workaround comment; version 6
...
Conflicts:
version.txt
2016-09-13 00:03:58 -07:00
Charlie Birks
405d64b207
only unset fullscreen flags if fullscreen failed
2016-09-13 00:03:56 -07:00
Charlie Birks
c68cac89df
use screen resolution instead of canvas size
2016-09-13 00:03:55 -07:00
Boris Gjenero
791b946a42
Fix full screen mode in Firefox, which was broken by 9d4beb2
2016-09-13 00:03:54 -07:00
Boris Gjenero
b71208d452
Support SDL_SetWindowTitle() via Module['setWindowTitle']()
2016-09-13 00:03:53 -07:00
Jukka Jyl?nki
7cf44f1b4a
Remove unused variable warning from Emscripten build in Emscripten_HandleFullscreenChange().
2016-09-13 00:03:51 -07:00
Boris Gjenero
b54eb82c67
Unpress all keys on blur to avoid stuck keys
2016-09-13 00:03:49 -07:00
Boris Gjenero
a0a75f384f
Listen for blur and focus events on window instead of canvas
...
Blur and focus events were not arriving for the canvas in
Firefox 35 and Chrome 40.
2016-09-13 00:03:48 -07:00
Boris Gjenero
3e5c4cec94
Mouse events use CSS coordinates, so don't scale by pixel_ratio
2016-09-13 00:03:46 -07:00
Boris Gjenero
a20c40c494
Accumulate subpixel mouse motion so motion is not lost.
...
Previously when the canvas was scaled up and the pointer was locked,
motion corresponding to less than one pixel was lost. Therefore,
slow mouse motion resulted in no motion. This fixes that.
2016-09-13 00:03:45 -07:00
TelpeNight
443998ff33
Fix of mouse events in browser without pointer locks
2016-09-13 00:03:44 -07:00
Alon Zakai
2b367cb6b0
optimize Emscripten_UpdateWindowFramebuffer
...
- avoid creating contexts and images all the time
- use set and then fix alpha directly
2016-09-13 00:03:43 -07:00
Alon Zakai
63200ea395
optimize a getValue
2016-09-13 00:03:41 -07:00
Charlie Birks
98ec844388
send mouse move on enter/leave
2016-09-13 00:03:39 -07:00
Charlie Birks
a2ef0db8a8
listen for mouse up on document (fixes mouseup outside canvas)
2016-09-13 00:03:37 -07:00
Charlie Birks
cd05184f9b
use SDL_SetMouseFocus
2016-09-13 00:03:36 -07:00
Sam Lantinga
bdca510fd6
simplify fullscreen handling using new fullscreen_strategy api, patch contributed by Charlie Birks
2016-09-13 00:03:28 -07:00
Charlie Birks
be08cc61f9
use css size for touch normalisation
2016-09-12 23:58:08 -07:00
Sam Lantinga
1096f32309
Reverted previous commit which breaks game controller input processing.
2016-09-09 15:12:09 -07:00
Sam Lantinga
61c0f2cf64
Suggestion from Apple: use kCFRunLoopCommonModes which does more complete event processing
2016-09-08 20:38:23 -07:00
Ryan C. Gordon
da1e3d6938
emscripten: special case to make SDL_ShowSimpleMessageBox() work.
...
Browsers don't have the functionality to fully support the generic
SDL_ShowMessageBox(), but this handles the likely most-common case.
Without this, you'd return immediately with a proper error result and no UI,
but probably no one checks that for SDL_ShowSimpleMessageBox. And if they
did: what would they do to handle this anyhow?
We'd need to lobby for an HTML spec of some sort that allows customizable
message boxes--that block!--to properly support SDL message boxes on
Emscripten, but this is probably Good Enough for now.
2016-09-06 13:13:03 -04:00
Ryan C. Gordon
0265d3af9b
coreaudio: Move from AudioUnits to AudioQueues.
...
AudioQueues are available in Mac OS X 10.5 and later (and iOS 2.0 and later).
Their API is much more clear (and if you don't mind the threading tapdance
to get its own CFRunLoop) much easier to use in general for our purposes.
As an added benefit: they seemlessly deal with format conversion in ways
AudioUnits don't: for example, my MacBook Pro's built-in microphone won't
capture at 8000Hz and the AudioUnit version wouldn't resample to hide this
fact; the AudioQueue version, however, can handle this.
2016-09-04 01:23:55 -04:00
Ryan C. Gordon
3b53304a94
coreaudio: capture devices should let the system allocate the render buffer.
2016-09-03 00:13:41 -04:00
Ryan C. Gordon
fda7a3d158
coreaudio: Replaced an int with an SDL_bool.
2016-09-02 13:12:21 -04:00
Ryan C. Gordon
f9d9708f6b
coreaudio: Move some variable declarations to the top of the scope.
2016-09-02 13:11:28 -04:00