Ryan C. Gordon
e0460846e5
Implement Windows GetAbsoluteMouseState().
2014-06-11 00:12:19 -04:00
Ryan C. Gordon
7412b88af0
This should probably query async button state.
2014-06-11 00:12:06 -04:00
Ryan C. Gordon
0dc198273c
Wired up Windows resize hit testing.
2014-06-05 00:54:43 -04:00
Ryan C. Gordon
efa3e07bc9
Minor tweaks to testhittesting.
2014-06-05 00:49:25 -04:00
Ionut Leonte
3465f8e461
Added SDL_HITTEST_RESIZE_*, and implemented for X11.
2014-06-05 00:45:16 -04:00
Ryan C. Gordon
c076f51669
Implemented SDL_GetAbsoluteMouseState().
...
X11 only for now, but this should be doable on every platform, I think.
2014-06-05 00:03:33 -04:00
Ryan C. Gordon
0c8f5f80b1
Added some (harmlessly) missing braces.
2014-06-05 00:02:42 -04:00
Ryan C. Gordon
5319c669a6
Fixed using SDL_PointInRect() from C++.
2014-05-30 09:50:47 -04:00
Ryan C. Gordon
be872bff15
Fixed up SDL_CaptureMouse() on Windows to work like I expected.
...
This would have been a one-line patch to the documentation (specifying that
captures only work as long as the left mouse button is pressed), but I didn't
like that, so I got a little crazy about this instead.
2014-05-30 01:51:13 -04:00
Ryan C. Gordon
9efc4a5fdd
Fixed hit-testing on Windows.
...
Needed to convert from screen to client coords.
2014-05-30 01:49:26 -04:00
Ryan C. Gordon
9fb513d81f
Patched to compile on Visual Studio.
2014-05-30 01:48:26 -04:00
Ryan C. Gordon
719a77b576
Make some printf() calls into SDL_Log() so I can see them on Windows. :)
2014-05-30 01:48:08 -04:00
Ryan C. Gordon
7cc0821ab0
First shot (not even compiled) at Windows hit-testing support.
...
--HG--
extra : rebase_source : 0563e3a3584a43403b46a8e89477deba4c502430
2014-05-29 13:39:02 -04:00
Ryan C. Gordon
c6b34e9e1e
Tweaked hit-testing documentation.
...
--HG--
extra : rebase_source : df2f9ccdddf408e5aaf7e788a1983ce8fef13d46
2014-05-29 13:38:39 -04:00
Ryan C. Gordon
bcf0b09879
Added a few debug printf() calls.
2014-05-28 01:27:27 -04:00
Ryan C. Gordon
9e98d09104
Changed drag area API to a hit-testing API.
...
There were several good arguments for this: it's how Windows works with
WM_NCHITTEST, SDL doesn't need to manage a list of rects, it allows more
control over the regions (how do you use rects to cleanly surround a circular
button?), the callback can be more optimized than a iterating a list of
rects, and you don't have to send an updated list of rects whenever the
window resizes or layout changes.
--HG--
rename : test/testdragareas.c => test/testhittesting.c
2014-05-28 01:22:47 -04:00
Ryan C. Gordon
51a004c734
Don't hardcode an 8 here.
2014-05-27 15:47:25 -04:00
Ryan C. Gordon
1b809cc896
Some updates for the X11 drag areas work.
2014-05-27 15:40:03 -04:00
Damian Kaczmarek
738e84c26b
Initial work on X11 implementation of SDL_SetWindowDragAreas().
2014-05-27 14:41:16 -04:00
Ryan C. Gordon
cce4ce44d4
First shot at SDL_SetWindowDragAreas().
...
Only Cocoa implemented right now.
--HG--
extra : amend_source : b178ad0ae25b933b284ed1bda89df750ddd27fb3
2014-05-27 01:27:42 -04:00
Ryan C. Gordon
5f9c366fe2
Added SDL_PointInRect().
...
--HG--
extra : amend_source : dda056b2033a9b6b370eefd66ac9653a5050a476
2014-05-27 00:26:47 -04:00
Ryan C. Gordon
6baa90e0ec
Flip this around to do the simpler condition first.
2014-05-24 18:23:56 -04:00
Ryan C. Gordon
88528c10e8
Implement SDL_CaptureMouse() for Mac OS X.
2014-05-24 18:23:39 -04:00
Ryan C. Gordon
67f246e568
Implemented SDL_CaptureMouse().
2014-05-24 01:30:37 -04:00
Ryan C. Gordon
b2ff607db8
Added some FIXMEs.
2014-05-24 01:27:19 -04:00
Ryan C. Gordon
842e912664
Fixed whitespace.
2014-05-24 01:25:27 -04:00
Ryan C. Gordon
7d3359d9c4
Generated dynapi stuff for the new WinRT entry points.
2014-05-24 01:23:57 -04:00
Sam Lantinga
a9a0cf95ec
Fixed crash if the OpenGL library hasn't been loaded yet
1970-01-01 04:04:21 +00:00
Yuri Kunde Schlesner
9483e21015
Align pointer in SDL_memset before doing Uint32 loop
...
Some more recent compilers emit SSE aligned store instructions for the loop,
causing crashes if the destination buffer isn't aligned on a 32-bit boundary.
This would also crash on platforms like ARM that require aligned stores.
This fixes a crash inside SDL_FillRect that happens with the official x64 mingw
build.
--HG--
extra : rebase_source : afd0f856fd814e7345bd0c7d20ddac3ba0422813
2014-05-10 21:48:46 -03:00
Philipp Wiesemann
ed89f98f5b
Changed C++ style comments.
2014-05-18 21:11:30 +02:00
Philipp Wiesemann
8cc5275bde
Fixed typo in header comment.
2014-05-18 21:05:39 +02:00
Philipp Wiesemann
423d8d1a17
Changed C++ style comments to fix pedantic warnings.
2014-05-17 22:02:25 +02:00
Philipp Wiesemann
d2d918c6b2
Removed unused standard library includes from gesture source.
2014-05-17 21:52:05 +02:00
Gabriel Jacobo
2f461036d4
Fixes #2541 , build failure with Wayland enabled, OpenGL ES disabled
...
Also includes an attempt at fixing building SDL on Ubuntu 13.10, which hopefully
won't break 14.04
2014-05-13 19:42:40 -03:00
Sam Lantinga
506e9977d2
Added a binding for the NVIDIA Shield controller
2014-05-13 12:10:37 -07:00
Sam Lantinga
bb480c2b0a
Updated coding style to match the rest of SDL
2014-05-13 11:32:36 -07:00
Philipp Wiesemann
cba5857731
Fixed typo in header comment.
2014-05-11 15:59:22 +02:00
David Ludwig
7268632f00
WinRT: fixed the max-button count for WinPhone 8.1 message boxes
...
Doh.
The max button count on WinPhone 8.1 was set to three, not two. Any more than
two leads to a crash.
2014-05-10 23:39:54 -04:00
David Ludwig
15e4e3c1bd
Added limited message-box support for Windows Phone 8.1
...
The Windows Phone 8.1 'MessageDialog' API only seems to support two buttons,
despite the documentation for such mentioning support for three. Trying to use
three or more buttons leads to an exception being thrown. As such, any attempt
to use more than two buttons via SDL_ShowMessageBox (on Windows Phone 8.1) will
lead to no message box getting shown, and the call returning an error.
The Win32 MessageBox and dialog APIs are not available in WinRT apps, to note.
More extensive message dialog support might be available at some point, if and
when XAML support is more fully fleshed-out. I'm not certain of this, though.
--HG--
extra : rebase_source : 42962c17f0bc3093e67fe9e176fb7c7c4bae722c
2014-05-10 23:28:53 -04:00
Gabriel Jacobo
12f4e7625f
Improve handling of focus behaviour on Android. Patch by Alexey Petruchik
2014-05-10 18:24:39 -03:00
Gabriel Jacobo
7c6e66dad9
Include gl2platform.h in SDL_opengles2.h so we play nice with GLEW.
...
Based on feedback from Sven Bergström
2014-05-10 17:00:37 -03:00
Gabriel Jacobo
efffa3a0c4
Fixes #2512 , handle configuration change messages sent by Wayland. Patch by Bryan Cain.
2014-05-10 16:50:05 -03:00
Sam Lantinga
461ff8bf35
Updated iOS deployment target to iOS 5.1
2014-05-10 12:34:16 -07:00
Gabriel Jacobo
cdc0dfa61c
Fixes #2529 , guard SDL_d3math.* with the proper defines
2014-05-10 16:23:06 -03:00
Gabriel Jacobo
d00ea7e64b
Fixes #2519 , clear error if using the default library path for EGL succeeds.
2014-05-10 16:13:22 -03:00
Gabriel Jacobo
04d8bb1069
A few more ANDROID for __ANDROID__ replacements
2014-05-10 15:57:09 -03:00
Dimitris Zenios
873297a269
__ANDROID__ is the correct macro to check for an android system.ANDROID is only defined in NDK build system (.mk) and not in the standalone NDK.
2014-05-05 22:21:26 +03:00
Dimitris Zenios
006006c460
Export android jni functions even when build with -fvisibility=hidden flag
2014-05-05 22:26:21 +03:00
Dimitris Zenios
989d978ef4
Show android video or android audio if detected in autotools summary.
2014-05-05 22:36:47 +03:00
Sam Lantinga
2e37831d3e
Temporary fix for bug 2494 - Crashes due to the non thread-safe SDL_malloc/SDL_free on Windows
...
We'll define USE_LOCKS as a temporary fix until an alternative like ptmalloc, jemalloc, or nedmalloc can be investigated.
http://www.malloc.de/en/
http://www.canonware.com/jemalloc/
http://www.nedprod.com/programs/portable/nedmalloc/
SDL allocates memory very infrequently, so this is probably a decent fix for a while.
2014-05-10 11:27:43 -07:00