Philipp Wiesemann
3aa449351d
Mac: Fixed whitespace around function return type.
2016-09-21 23:06:49 +02:00
Philipp Wiesemann
9335a5b22f
Fixed compiling of three test programs with C++.
2016-09-21 23:06:38 +02:00
Philipp Wiesemann
c64f23e6f2
Android: Fixed two warnings about unused variables.
2016-09-21 23:06:26 +02:00
Alex Szpakowski
d110ed4c25
Handle audio interruptions on iOS/tvOS. Fixes bugs 2569 and 2960.
2016-09-18 19:22:09 -03:00
Ryan C. Gordon
697293b2f8
Xcode/mac: fix building standalone static and shared libraries.
2016-09-18 18:19:32 -04:00
Ryan C. Gordon
552284d619
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
c39979a377
Recommended settings from Xcode 7.3.0
2016-09-16 22:28:12 -07:00
Sam Lantinga
35c3349008
Fixed warning with Xcode 7.3.0
2016-09-16 22:27:58 -07:00
Alex Szpakowski
976586611c
Updated URL in a comment
2016-09-17 01:36:29 -03:00
Alex Szpakowski
cc31dca617
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
643a6b2ac2
tvOS: Add drop-file support
2016-09-15 21:49:29 -03:00
Sam Lantinga
8c0571126b
Fixed set of libraries needed to build on Mac OS X
2016-09-15 08:57:56 -07:00
Sam Lantinga
dba2da8a9c
Hopefully fixed the cmake build on Mac OS X
2016-09-15 08:46:14 -07:00
Sam Lantinga
aaebec9063
Fixed building new coreaudio driver on Mac OS X
2016-09-15 08:29:20 -07:00
Alex Szpakowski
c4da538ddb
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
b828bd1058
Fixed building for both iOS and tvOS on Xcode 8
2016-09-14 08:45:35 -07:00
Sam Lantinga
72494063a9
Fixed including OpenGL ES on iOS without any other SDL headers
2016-09-14 08:20:24 -07:00
Sam Lantinga
dff28c0f37
Allow targeting tvOS
2016-09-14 07:09:35 -07:00
Sam Lantinga
1be135c3ef
Fixed spacing
2016-09-13 18:44:28 -07:00
Sam Lantinga
217f7cab99
Fixed accidental call to SDL_PrivateJoystickHat()
2016-09-13 18:43:55 -07:00
Alex Szpakowski
a714cf6d15
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
f7cdca5b0d
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
5e63affced
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
937207056b
Add mapping for media keys
2016-09-13 00:04:00 -07:00
Alon Zakai
31fd8a9e0e
use Module.createContext for 2D rendering in emscripten
2016-09-13 00:03:59 -07:00
Alon Zakai
f873443b21
add some detail to fullscreen workaround comment; version 6
...
Conflicts:
version.txt
2016-09-13 00:03:58 -07:00
Charlie Birks
afdd5e100b
only unset fullscreen flags if fullscreen failed
2016-09-13 00:03:56 -07:00
Charlie Birks
d9a88b96e8
use screen resolution instead of canvas size
2016-09-13 00:03:55 -07:00
Boris Gjenero
9d00142f75
Fix full screen mode in Firefox, which was broken by 9d4beb2
2016-09-13 00:03:54 -07:00
Boris Gjenero
ef19ecbc56
Support SDL_SetWindowTitle() via Module['setWindowTitle']()
2016-09-13 00:03:53 -07:00
Jukka Jylänki
ba527c7f6a
Remove unused variable warning from Emscripten build in Emscripten_HandleFullscreenChange().
2016-09-13 00:03:51 -07:00
Jukka Jylänki
672196b15d
Fix CMake CMAKE_REQUIRED_FLAGS handling to preserve existing CMake flags required by Emscripten toolchain.
2016-09-13 00:03:50 -07:00
Boris Gjenero
3744534cff
Unpress all keys on blur to avoid stuck keys
2016-09-13 00:03:49 -07:00
Boris Gjenero
8f49012235
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
9308054353
Mouse events use CSS coordinates, so don't scale by pixel_ratio
2016-09-13 00:03:46 -07:00
Boris Gjenero
b4510f7c47
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
42ddc908b4
Fix of mouse events in browser without pointer locks
2016-09-13 00:03:44 -07:00
Alon Zakai
4f4c2f37a5
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
df8e7e4267
optimize a getValue
2016-09-13 00:03:41 -07:00
Charlie Birks
698b903e3b
Include timers when using cmake ( #29 )
2016-09-13 00:03:40 -07:00
Charlie Birks
eb7c4d30bc
send mouse move on enter/leave
2016-09-13 00:03:39 -07:00
Charlie Birks
0fedce3a2b
listen for mouse up on document (fixes mouseup outside canvas)
2016-09-13 00:03:37 -07:00
Charlie Birks
14f0448296
use SDL_SetMouseFocus
2016-09-13 00:03:36 -07:00
Sam Lantinga
739d3be315
simplify fullscreen handling using new fullscreen_strategy api, patch contributed by Charlie Birks
2016-09-13 00:03:28 -07:00
Charlie Birks
e5511d4d55
use css size for touch normalisation
2016-09-12 23:58:08 -07:00
Sam Lantinga
e730ada35f
Reverted previous commit which breaks game controller input processing.
2016-09-09 15:12:09 -07:00
Sam Lantinga
9b546b9b7c
Suggestion from Apple: use kCFRunLoopCommonModes which does more complete event processing
2016-09-08 20:38:23 -07:00
Ryan C. Gordon
1aa7cd0d3b
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
59c168b631
emscripten-buildbot.sh: exit with an error if configure/make fail.
2016-09-06 12:18:52 -04:00
Ryan C. Gordon
f3b798f722
mac: Patched to compile with CMake project.
2016-09-04 01:42:46 -04:00