Sam Lantinga
8731286cb4
We already link SDL2_test by default now.
2013-06-05 21:14:26 -07:00
Jørgen P. Tjernø
e1e1fa3d61
Joystick: Only send joy events when focused.
...
This changes makes it so that you only receive joystick (and implicitly
gamecontroller) input events when your application has keyboard focus.
If you'd like to still receive events when your application is in the
background, set the SDL_JOYSTICK_ALLOW_BACKGROUND_EVENTS hint to "1".
This fixes http://bugzilla.libsdl.org/show_bug.cgi?id=1892
2013-06-05 15:11:38 -07:00
Philipp Wiesemann
c2d84dbad6
Fixed doxygen warnings and corrected documentation in header files.
2013-06-05 23:33:15 +02:00
Jørgen P. Tjernø
24fc22545b
Mac: Fix invalid PS3 controller mapping.
...
PS3 controller had swapped D-Pad down & left buttons, as well as X & Y buttons.
Thanks to Alex Szpakowski for the bug report and fix.
Fixes http://bugzilla.libsdl.org/show_bug.cgi?id=1891
2013-06-05 12:48:44 -07:00
Jørgen P. Tjernø
df3b1a6ed1
Win32: Fix issue with SetCapture & negative values.
...
This fixes an issue where we were using the wrong macros to extract the position from WM_MOUSEMOVE, so negative values were behaving incorrectly.
These would be generated in multimon situations, or if you use SetCapture.
Fixes http://bugzilla.libsdl.org/show_bug.cgi?id=1175
2013-06-05 12:00:18 -07:00
Jørgen P. Tjernø
c6dd828f1e
Win32: Ignore WM_MOUSELEAVE in relative mode.
...
We get an WM_MOUSELEAVE when we switch to relative mode, even though the cursor is still in the window.
Ignoring this event to not end up with a NULL mouse focus.
This fixes http://bugzilla.libsdl.org/show_bug.cgi?id=1861
2013-06-05 12:00:15 -07:00
Andreas Schiffler
6c06aefaf2
Update SDL_LogOutput for WIN32 so it writes to the console
2013-06-05 07:22:45 -07:00
Sam Lantinga
e569ac658f
Updated configure with Ryan's cygwin workaround
2013-06-04 22:13:06 -07:00
Ryan C. Gordon
bc5b08c0fd
Fixed build on newer Cygwin installs.
2013-06-05 00:42:39 -04:00
Jørgen P. Tjernø
f1fc414daa
Mac: Fix incorrect relative jump on focus / start.
...
We should no longer send huge jumps on relative mode focus changes if
the cursor was moved around, or on initial start.
Fixes http://bugzilla.libsdl.org/show_bug.cgi?id=1836
2013-06-04 14:54:49 -07:00
Jørgen P. Tjernø
95cf57b19f
Mac: Hide cursor in relative mode.
...
This hides the cursor when you SDL_SetRelativeMouseMode, as intended.
Fixes http://bugzilla.libsdl.org/show_bug.cgi?id=1860
2013-06-04 13:53:55 -07:00
Jørgen P. Tjernø
449d63452e
- fix misleading hint about minimising on focus loss
2013-06-04 13:47:51 -07:00
Andreas Schiffler
5a7d3757f5
Add missing VS2012 test projects; update VS2010 and VS2012 solutions; update keybord suite for VS compiler warnings
2013-06-03 19:24:18 -07:00
Andreas Schiffler
3426ac11ad
Remove deprecated/deleted VS test projects
2013-06-03 07:28:55 -07:00
Azamat H. Hackimov
1732f61b81
Fix compilation with libX11 >= 1.5.99.902.
...
These changes fixes bug #1769 for SDL2
(http://bugzilla.libsdl.org/show_bug.cgi?id=1769 ).
2013-06-02 20:20:18 +06:00
Sam Lantinga
86b3564df2
Hopefully fixed mingw32 build
2013-06-02 08:48:52 -07:00
Philipp Wiesemann
579a0da656
Changed documentation in header because LocalReferenceHolder not public API.
2013-06-02 14:27:54 +02:00
Philipp Wiesemann
5966837f4a
Changed haptic test program to use announced effect type.
2013-06-02 14:18:26 +02:00
Philipp Wiesemann
663e2c37ae
Fixed implicit function declaration for SDL_AndroidGetInternalStoragePath().
2013-06-02 14:13:21 +02:00
Philipp Wiesemann
64f1ac9002
Fixed implicit function declaration and warning for SDL_Log().
2013-06-02 14:11:04 +02:00
Sam Lantinga
cd88135edc
Gyrations to get the code to compile with the latest version of mingw-w64 as well as Visual Studio.
...
I think in this case mingw-w64 is incorrect in defining the GUID instead of declaring it like Visual Studio and the older mingw32 compilers.
2013-06-02 01:35:38 -07:00
Sam Lantinga
d2a0d0fb58
Fixed bug 1881 - SDL will not compile with "SDL_THREADS" disabled.
...
MakoEnergy02
I am attempting to compile SDL on WindowsXP 32-bit, using MinGW. The problem I am having is when I attempt to compile, when it gets to "SDL_systhread.c" it errors:
C:\Repos\Mezzanine\Mezzanine\libincludes\common\sdlsrc\SDL\src\thread\generic\SDL_systhread.c|29|error: conflicting types for 'SDL_SYS_CreateThread'
C:\Repos\Mezzanine\Mezzanine\libincludes\common\sdlsrc\SDL\src\thread\generic\..\SDL_systhread.h|35|note: previous declaration of 'SDL_SYS_CreateThread' was here
I do have SDL_THREADS disabled in my cmake configuration as I do not want or need SDL making threads for me, I have another thread provider. It seems the generic "dummy" implementation does not account for the two extra parameters needed for the "SDL_SYS_CreateThread" method when "SDL_PASSED_BEGINTHREAD_ENDTHREAD" is defined.
2013-06-02 01:12:29 -07:00
Sam Lantinga
cb62e2540a
Fixed bug 1882 - SDL_GetKeyboardState should return const.
...
Yuri K. Schlesner
The array returned by SDL_GetKeyboardState is also used internally by SDL to keep track of pressed/released keys and must not be modified, lest weird behaviour occurs. Because of this I believe it's return type should be changed to return a const pointer, which will provide a code indication of that fact.
2013-06-02 01:09:12 -07:00
Sam Lantinga
a54ea6ce9f
Fixed testnative on Mac OS X, which no longer ships X11 by default.
2013-06-02 01:08:14 -07:00
Sam Lantinga
658c25666a
Merged changes
2013-06-01 12:53:32 -07:00
Sam Lantinga
226679f4bb
The standard fat gcc scripts work well with SDL 2.0
2013-06-01 12:53:06 -07:00
Philipp Wiesemann
3472d792a9
Fixed implicit function declarations and their warnings.
...
For the SDL_SetMouseFocus() and SDL_SetKeyboardFocus().
2013-06-01 21:17:43 +02:00
Philipp Wiesemann
6096e60a4b
Removed debug output.
2013-06-01 21:11:52 +02:00
Philipp Wiesemann
17fab0296b
Corrected indentation of license.
2013-06-01 21:09:36 +02:00
Sam Lantinga
8792a8d88a
Default the minimum required version to 2.0.0
2013-06-01 08:57:17 -07:00
Yuri K. Schlesner
5480cdd85c
Re-apply texture filter when resetting direct3d renderer.
2013-05-29 06:31:48 -05:00
Andreas Schiffler
5d3e05c2c4
Fix bug 1492: Visual Studio builds sdl.lib and sdl.dll for version 2.0 (contributed by Jan Reitz); update SDL_bool handling in test_common to fix VS compiler warnings
2013-05-30 20:03:56 -07:00
Edward Rudd
acb14cfc03
Add trigger value adjustment code to the SDL_GameControllerGetAxis code as well.
...
- fixes Trigger values when polling instead of using event driven
2013-05-30 22:14:24 -04:00
Edward Rudd
3d874237bc
add in Controller configs for Logitech F510 for OS X / Linux
...
--HG--
extra : rebase_source : 68a7469d9e85d5f090d0299abed42f8ed577499a
2013-05-30 10:42:52 -04:00
Philipp Wiesemann
9afcdd0a14
Moved prototype for static function out of header file to prevent warnings.
2013-05-30 23:25:03 +02:00
Philipp Wiesemann
f2763e240d
Changed line comments in header file.
2013-05-30 23:08:35 +02:00
Edward Rudd
c30228737b
Add an OS X Shared library target
...
--HG--
extra : rebase_source : 766ce377779ecfb4ab2717ffeb803932d7c905e5
2013-05-30 10:02:26 -04:00
Edward Rudd
89b36c9f21
Fixups to the main Xcode project due to renamed README files and long since removed test files.
...
--HG--
extra : rebase_source : d8aa77e63cfe38bdcb228587db612f5d4696e13c
2013-05-28 16:26:44 -04:00
Philipp Wiesemann
8fc42c451c
Added deactivated loading of SDL2_net to Java file.
2013-05-30 12:23:36 +02:00
Philipp Wiesemann
689a31a050
Fixed recently deleted Ms in READMEs.
2013-05-30 12:15:00 +02:00
Sam Lantinga
20c5cf1e8b
When the window is resized, the viewport is automatically reset.
...
This resolves lots of confusion around resizable windows. Most people don't expect a viewport to be implicitly set when the renderer is created and then not to be reset to the window size if the window is resized.
Added common test command line parameters --logical WxH and --scale N to test the render logical size and scaling APIs.
2013-05-29 03:22:19 -07:00
Sam Lantinga
c55f53aa40
Fixed bug 1622 - SDL_RenderSetViewport with empty SDL_Rect raises wrong error for OpenGL rendering backend
...
It's now legal to set an empty viewport rect - it will prevent any rendering.
Also added an API to query the output size: SDL_GetRendererOutputSize()
2013-05-29 03:07:55 -07:00
Sam Lantinga
b337b40e33
Credits were truncated in a previous commit.
2013-05-27 21:44:16 -07:00
Sam Lantinga
78b22c119d
Updated supported platforms
2013-05-27 20:53:19 -07:00
Sam Lantinga
b3ec1b660b
Fixed crash with movaps instruction in SDL_memcpy(), due to unaligned Uint32* cast and -O3 vectorization optimizations with gcc 4.9.0
2013-05-27 16:18:11 -07:00
Sam Lantinga
21512a77b7
Better mingw32-x64 linker flag fix, which doesn't require libtool patch
2013-05-26 22:16:42 -07:00
Sam Lantinga
1990b00614
Removed dependency on libgcc_s_sjlj-1.dll when building with mingw64
2013-05-26 16:29:57 -07:00
Sam Lantinga
d944115cb1
Added a comment to say why C runtime is off by default
2013-05-26 16:08:15 -07:00
Sam Lantinga
10fbebcc51
Need to generate aclocal.m4 when rebuilding configure, but we don't need to check it in.
2013-05-26 16:01:40 -07:00
Sam Lantinga
b3d555764f
Don't use the C runtime library on Windows, to avoid C runtime dependencies and manifest issues.
2013-05-26 15:50:20 -07:00