Commit Graph

16 Commits

Author SHA1 Message Date
Gabriel Jacobo 476580576e [Android] Better fix for #2480, pause/resume audio 2014-09-18 11:03:34 -03:00
Ryan C. Gordon 5f9ea7edeb Haptic: Deal with negative periodic magnitudes (thanks, Elias!).
A negative periodic magnitude doesn't exist in Windows' and MacOS' FF APIs

The periodic magnitude parameter of the SDL Haptic API is based on the Linux
 FF API, so it means they are not directly compatible:
    'dwMagnitude' is a 'DWORD', which is unsigned.

Fixes Bugzilla #2701.
2014-09-17 14:49:36 -04:00
Ryan C. Gordon 266c0023da Fixed haptic documentation typos (thanks, Elias!).
Partially fixes Bugzilla #2701.
2014-09-17 14:47:42 -04:00
Gabriel Jacobo 4544343b3e [Android] Fixes #2480, music does not pause when process backgrounded
This modifies SDL_PauseAudio behavior to pause all audio devices instead of
just the default one (required on Android, at least for testmultiaudio on my
Nexus 4 which reported 2 audio devices).
It also changes SDL_PauseAudioDevice to retain the device lock from pause until
resume in order to save battery in mobile devices.
2014-09-17 11:41:12 -03:00
Gabriel Jacobo e7f2f85c3d [Android] Fixes #2679 - Crash resuming from screen off
Before destroying the static Java-side data, wait for the SDL native thread,
*and* the listener thread that waits on it to trigger a clean up.
2014-09-17 08:59:43 -03:00
Philipp Wiesemann 60df813042 Fixed doxygen warning and markdown formatting.
Three backticks for blocks are not supported by doxygen.
2014-09-16 23:09:32 +02:00
Philipp Wiesemann 0fbd904af8 Fixed key down closing messagebox dialog instead of key up on Android.
This fixed sending key up event to SDL a dialog closed by down did not consume.
2014-09-14 19:44:53 +02:00
David Ludwig df37d1d550 WinRT: made README note that Win 8.0 targeting via MSVC 2013 Express is not possible 2014-09-14 13:10:21 -04:00
David Ludwig 75d0396eb3 WinRT: expanded and updated the README section on MSVC requirements 2014-09-14 12:57:26 -04:00
David Ludwig 0903aa3f8d WinRT: added manual, app-setup instructions to the README
A number of other parts of the WinRT README were edited, either for clarity, or to help with Markdown rendering.
2014-09-14 11:36:24 -04:00
David Ludwig 11d865b8fc WinRT: added a note to README regarding need for a MS account 2014-09-14 10:31:18 -04:00
David Ludwig 4eef8bbc11 WinRT: cleaned up section headers 2014-09-14 10:29:54 -04:00
Ryo Munakata 7798b4d62a video: waylandmouse: handle mmap error properly
Signed-off-by: Ryo Munakata <ryomnktml@gmail.com>
2014-09-09 17:26:16 +09:00
Sam Lantinga 5f39ea89c9 Fixed bug 2415 - Message Boxes aren't implemented on Android
Philipp Wiesemann

I attached a patch for an incomplete implementation of the messagebox parts.

It was not tested on lots of devices yet and features a very fragile workaround to block the calling SDL thread while the dialog is handled on Android's UI thread. Although it works for testmessage.c I assume there are lot of situations were it may fail (standby, device rotation and other changes). Also not all flags and colors are implemented.

On the other hand most uses of the messagebox are to show an error on start and fragility (or working at all) may not matter there.
2014-09-13 02:15:18 -07:00
Sam Lantinga 2bfb3c3e82 Fixed using uninitialized display data in iMX6 initialization 2014-09-12 15:09:33 -07:00
Pierre-Loup A. Griffais 24c86b5501 [X11] Reconcile logical keyboard state with physical state on FocusIn
since the window system doesn't do it for us like other platforms.

This prevents sticky keys and missed keys when going in and out
of focus, for example Alt would appear to stick if switching away
from an SDL app with Alt-Tab and had to be pressed again.

CR: Sam
2014-09-11 19:24:42 -07:00