Ethan Lee
4d0dd1384b
hidapi: Add GCN L/R buttons, just in case someone wants them...
2019-03-17 12:36:40 -04:00
Sylvain Becker
7a8bcac27b
Android: when event loop is not blocking in pause, backup EGL context (Bug 4578)
...
Backup the EGL context when SDL_APP_DIDENTERBACKGROUND has been removed from the
event queue.
2019-04-12 23:15:26 +02:00
Alex Szpakowski
d82ed4186e
Fix disabling OpenGL vsync on macOS 10.14.4+ (bug #4575 ).
2019-04-10 22:30:58 -03:00
Sylvain Becker
60832b7b71
Fixed bug 4581 - generate synthetic mouse events at window boundaries
...
when real touch events are actually outside the window.
2019-04-10 10:59:53 +02:00
Sylvain Becker
98eeaf9bc5
Fixed bug 4581 - mouse events with SDL_TOUCH_MOUSEID make window lost focus
...
Virtual mouse events should never leave the window or change focus for single window applications.
2019-04-08 21:27:24 +02:00
Sylvain Becker
9e9ef0bf36
Fixed bug 4582 - Maximize/Resize not working on Windows 10
...
When viewport is set, projectionAndView changes, but ID3D11DeviceContext_UpdateSubresource was not called.
2019-04-08 13:43:48 +02:00
Sylvain Becker
ad0b1b7b34
SDL_HINT_MOUSE_TOUCH_EVENTS: move tracking appart in case of 'window' is null
2019-04-06 21:52:51 +02:00
Sylvain Becker
7e59dbabda
Bug 4581: move tracking appart so it doesn't require the window to have focus
2019-04-06 21:43:16 +02:00
Sam Lantinga
173b3a5113
Fixed bug 4579 - SDL_android.c s_active not being atomic
...
Isaias Brunet
This bug cause a false assert due to multiple threads modifying the same variable without any atomic operation.
2019-04-05 08:15:01 -07:00
Sam Lantinga
973c06f2a5
Set SDL_HINT_MOUSE_TOUCH_EVENTS for iPhone and iPad as well
2019-04-05 08:10:12 -07:00
Sam Lantinga
c9a297db4f
https://bugzilla.libsdl.org/show_bug.cgi?id=4577
...
SDL_GetWindowDisplayMode was returning an incorrect result on iPhone Plus devices (tested on iOS 12.1/12.2). The problem was that the value returned by UIScreenMode was assumed to be the physical pixels on the display, rather than the scaled retina pixels. The fix is to use the scale returned by UIScreen.scale rather than the nativeScale.
2019-04-05 07:51:11 -07:00
Sylvain Becker
102108aea3
Android: add hint SDL_HINT_ANDROID_BLOCK_ON_PAUSE
...
to set whether the event loop will block itself when the app is paused.
2019-04-05 09:16:30 +02:00
Sylvain Becker
cbc5a31a9f
Android: default SDL_HINT_MOUSE_TOUCH_EVENTS to 1 as previous behaviour
2019-04-05 08:36:31 +02:00
Sylvain Becker
a86fca805f
Update WhatsNew.txt
2019-04-04 20:24:22 +02:00
Sylvain Becker
b8d46cbace
Update WhatsNew.txt
2019-04-04 20:10:55 +02:00
Sylvain Becker
e20e39b3d9
Android: remove SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH
...
java layer runs as if separate mouse and touch was 1,
Use SDL_HINT_MOUSE_TOUCH_EVENTS and SDL_HINT_TOUCH_MOUSE_EVENTS
for generating synthetic touch/mouse events
2019-04-04 17:01:02 +02:00
Sylvain Becker
1d1eceb6ab
Add hint SDL_HINT_MOUSE_TOUCH_EVENTS for mouse events to generate touch events
...
controlling whether mouse events should generate synthetic touch events
By default SDL will *not* generate touch events for mouse events
2019-04-04 16:51:50 +02:00
Sylvain Becker
d16648f8ce
Bug 4576: track both FingerId and TrackId
2019-04-04 15:19:00 +02:00
Sylvain Becker
066a2112b3
Bug 4576: fix wrong scaling
2019-04-03 10:14:42 +02:00
Sylvain Becker
46212a1fa2
Bug 4576: one more warning
2019-04-02 18:07:27 +02:00
Sylvain Becker
9fc58c044c
Bug 4576: fix warning and compile
2019-04-02 17:57:27 +02:00
Sylvain Becker
489c8573c2
Bug 4576: remove touch/mouse duplication for Android
2019-04-02 17:23:55 +02:00
Sylvain Becker
fb49e85bf6
Bug 4576: remove touch/mouse duplication for IOS
2019-04-02 17:18:47 +02:00
Sylvain Becker
d29be58504
Bug 4576: remove touch/mouse duplication for WinRT
2019-04-02 17:13:22 +02:00
Sylvain Becker
9e69244d5d
Bug 4576: remove touch/mouse duplication for Emscripten
2019-04-02 17:10:29 +02:00
Sylvain Becker
e8431d6d53
Bug 4576: remove touch/mouse duplication for Wayland
2019-04-02 17:07:54 +02:00
Sylvain Becker
a25d2bcfc5
Bug 4576: remove touch/mouse duplication for linux/EVDEV
2019-04-02 17:03:58 +02:00
Sylvain Becker
2c8b5f513a
Bug 4576: remove touch/mouse duplication for Windows
2019-04-02 16:58:11 +02:00
Sylvain Becker
fb5d1a1602
Bug 4576: handle mapping of TouchEvents to MouseEvents at higher level
2019-04-02 16:46:17 +02:00
Sam Lantinga
0b8f778883
configure.in: Rename configure.ac to fix an 'aclocal' warning
...
--HG--
rename : test/configure.in => test/configure.ac
2019-04-02 05:31:08 -07:00
Hugh McMaster
acdce30bc5
docs: Replace references to configure.in with configure.ac
2019-03-27 20:58:33 +11:00
Hugh McMaster
f386148e47
configure.in: Rename to configure.ac to fix an 'aclocal' warning
...
Also rename references in related files.
2019-03-25 23:01:32 +11:00
Sam Lantinga
98db267344
Handle potentially calling SDL_JoystickUpdate() and SDL_JoystickQuit() at the same time.
2019-03-27 08:17:05 -07:00
Ryan C. Gordon
cc94b3330b
coreaudio: Set audio callback thread priority.
...
Fixes Bugzilla #4155 .
2019-03-25 12:59:30 -04:00
Ryan C. Gordon
5f18108aec
Backed out changeset ffd52bb02bcc
...
This was meant to migrate CoreAudio onto the same SDL_RunAudio() path that
most other audio drivers are on, but it introduced a bug because it doesn't
deal with dropped audio buffers...and fixing that properly just introduces
latency.
I might revisit this later, perhaps by reworking SDL_RunAudio to allow for
this sort of API better, or redesigning the whole subsystem or something, I
don't know. I'm not super-thrilled that this has to exist outside of the usual
codepaths, though.
Fixes Bugzilla #4481 .
2019-03-25 12:24:38 -04:00
Ryan C. Gordon
abdc48613d
opengles2: Fix static analysis warning.
...
Not clear if this could ever dereference NULL in real life, but better safe
than sorry!
2019-03-21 10:39:49 -04:00
Sam Lantinga
b1b373cac7
Hopefully fixed the mingw32 build
2019-03-19 17:20:54 -07:00
Sam Lantinga
3fdd9cc679
Fixed Visual Studio build
2019-03-19 17:05:22 -07:00
Sam Lantinga
3d95e53a1d
Didn't need to add SDL_windows.h include, that was already included
2019-03-19 16:53:55 -07:00
Sam Lantinga
2085fa0bd7
Fixed Windows RT build
2019-03-19 16:52:09 -07:00
Sam Lantinga
1012683362
Fixed archiving the SDL dynamic library on iOS and tvOS
2019-03-19 11:02:43 -07:00
Sam Lantinga
0a821ec9ae
Fixed building with C++
2019-03-19 10:59:41 -07:00
Sam Lantinga
25398bff28
Fixed building with C++
2019-03-19 10:56:46 -07:00
Sam Lantinga
eb84b8f20c
Fixed declaration of SDL_main_func for C++
2019-03-19 08:29:34 -07:00
Sam Lantinga
77b8382c1f
Added support for building SDL as a dynamic library on tvOS
2019-03-19 07:53:39 -07:00
Sam Lantinga
597d8d450b
Added support for building SDL as a dynamic library on iOS
2019-03-19 07:53:33 -07:00
Ryan C. Gordon
7da64b962d
testgesture: Make the background gray.
...
This is so you can see it on systems that have a minimal window manager and
a black background.
2019-03-17 12:45:19 -04:00
Sam Lantinga
993d589b2d
Fixed Visual Studio build
2019-03-16 19:46:37 -07:00
Sam Lantinga
d078f4d1aa
Fixed iOS build
2019-03-16 19:46:27 -07:00
Sam Lantinga
0e6e04a833
Fixed Mac OS X build
2019-03-16 19:44:04 -07:00