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
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
Ryan C. Gordon
d05ae1941c
emscripten: send fake mouse events for touches, like other targets do.
...
(This really should be handled at the higher level and not in the individual
targets, but this fixes the immediate bug.)
2016-08-12 19:59:00 -04:00
Philipp Wiesemann
19f18558ac
Emscripten: Deactivated custom cursor support because it created system cursors.
2016-03-11 22:10:35 +01:00
Sam Lantinga
42065e785d
Updated copyright to 2016
2016-01-02 10:10:34 -08: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