Philipp Wiesemann
74bc344ce7
Wayland: Fixed accessing not fully initialized window if no memory available.
...
The CreateWindow() implementation returned 0 on no more memory instead of -1.
2015-04-09 21:11:43 +02:00
Philipp Wiesemann
98aaddbdde
Android: Fixed calling a getter method twice.
2015-04-08 22:24:33 +02:00
Philipp Wiesemann
e75f9079db
Android: Fixed creating mouse coordinates which are not needed if hint is set.
2015-04-08 22:18:10 +02:00
Philipp Wiesemann
7ff481fc41
Android: Fixed not resetting mouse pointer state if hint was changed at runtime.
2015-04-08 22:15:25 +02:00
Ryan C. Gordon
46f961f5ef
Removed unused variable.
2015-04-08 02:42:29 -04:00
Ryan C. Gordon
90963b9523
X11: Removed code to set "icon" title, since it was never used.
...
(Leftover from SDL 1.2, which let you specify this?)
2015-04-08 02:31:54 -04:00
Ryan C. Gordon
16f1f63e4e
Patched to compile on Windows.
2015-04-08 02:24:17 -04:00
Ryan C. Gordon
2b15e4d1f0
Wayland: Patched to compile.
2015-04-08 02:22:28 -04:00
Ryan C. Gordon
9c4e5d8133
DirectInput: ignore everything but joysticks and gamepads (thanks, Justin!).
...
Fixes Bugzilla #2460 .
2015-04-08 02:14:59 -04:00
Ryan C. Gordon
06e0d9d6b3
SDL_SetWindowTitle() should never set a NULL pointer for the title string.
...
Various backends reacted differently (or not at all) in the presence of a
NULL pointer. This simplifies things.
Fixes Bugzilla #2902 .
2015-04-08 02:00:14 -04:00
Ryan C. Gordon
a19e127cda
Make SDL_stdinc.h work when compiling with -Wundef (thanks, Ben!).
...
Fixes Bugzilla #2664 .
2015-04-08 01:42:47 -04:00
Ryan C. Gordon
af26888c2f
Patched to compile on C89 compilers.
2015-04-08 01:40:01 -04:00
Ryan C. Gordon
b0ad5c3e78
Log Android hardware at startup (thanks, rettichschnidi!).
...
Fixes Bugzilla #2653 .
2015-04-08 01:37:17 -04:00
Ryan C. Gordon
7c14914a5b
Do the "fix" for asserts with MSVC's /W4 warnings only on MSVC.
...
Naturally, this way generates a warning on GCC and Clang instead. :)
2015-04-07 23:40:01 -04:00
Ryan C. Gordon
34e27edf6c
Wayland: changed a few "SetError(); return -1;" to "return SetError()".
2015-04-07 22:49:56 -04:00
Emmanuel Gil Peyrot
027e2472ec
Wayland: Specify the output we want to put our window on.
...
Fixes Bugzilla #2803 .
2015-03-28 19:43:46 +01:00
Emmanuel Gil Peyrot
eff9d04664
Wayland: Properly discover displays and their modes.
...
Fixes Bugzilla #2913 .
2015-03-18 01:14:45 +01:00
Ryan C. Gordon
8a7dc40174
CMake: Dependency variable for FUSIONSOUND_SHARED was wrong (thanks, Kaleb!).
...
Fixes Bugzilla #2055 .
2015-04-07 21:52:22 -04:00
Ryan C. Gordon
298c74cee2
CMake: fix CHECK_OBJC_SOURCE_COMPILES to work with GCC (thanks, Ivan!).
...
Apparently -ObjC works with Clang, but -x objective-c works with both.
Fixes Bugzilla #2392 .
2015-04-07 20:01:43 -04:00
Philipp Wiesemann
1286d5f6ed
Fixed typo in gesture README.
2015-04-07 23:00:56 +02:00
Ryan C. Gordon
19347bf564
Another attempt to make MSVC's /W4 warning level cooperate with SDL_assert.
...
Fixes Bugzilla #2733 .
2015-04-07 00:39:16 -04:00
Alex Baines
9d7f5e9ae6
Fix DBus error message if IBus couldn't be initialized.
2015-03-20 19:47:03 +00:00
Ryan C. Gordon
1f289ec220
Refuse to make a window that's too large. Some systems (x11) freak out at this.
...
Fixes Bugzilla #2255 .
2015-04-06 18:26:13 -04:00
Edward Rudd
8731123738
the last parameter of XChangeProperty is the number of elements.. and when the element format is 32.. the element is "long" so we have 5 long elements here.
...
Yes this seems confusing as on mac+linux Long is either 32 or 64bits depending on the architecture, but this is how the X11 protocol is defined. Thus 5 is the correct value for the nelts here. Not 5 or 10 depending on the architecture.
More info on the confusion https://bugs.freedesktop.org/show_bug.cgi?id=16802
2015-04-06 16:48:24 -04:00
Ryan C. Gordon
f72cfa3696
X11: Always specify "True" if setting GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB.
...
Fixes Bugzilla #2897 .
2015-04-06 00:11:58 -04:00
Ryan C. Gordon
ea72cde0e2
This function can be static.
2015-04-06 00:10:54 -04:00
Ryan C. Gordon
be4c21fb36
Make loading/saving dollar gesture templates endian clean (thanks, Martin!).
...
Fixes Bugzilla #2674 .
2015-04-05 18:59:52 -04:00
Ryan C. Gordon
89f2975b53
Add some SDL_SetError() calls to the dollar gesture code (thanks, Martin!).
...
Fixes Bugzilla #2673 .
2015-04-05 18:44:24 -04:00
Ryan C. Gordon
e0409417c1
Patched to compile on Android when audio subsystem is disabled (thanks, Jonas!)
...
Fixes Bugzilla #2797 .
2015-04-05 15:52:37 -04:00
Sam Lantinga
acb5492583
Fixed detecting the NVIDIA controller which shows up as both a mouse and a game controller
2015-04-01 19:18:56 -07:00
Joseba García Etxebarria
a00125c9be
Cast the result of calling getButtonState to an Integer
2015-04-02 00:55:45 +02:00
Sam Lantinga
a3336de9e1
Added a game controller entry for the NVIDIA Controller
2015-04-01 18:22:42 -07:00
Edward Rudd
555eff59b7
handle the case where the ibus address can't be found. (prevents nasty crash)
2015-04-01 16:11:37 -04:00
Ryan C. Gordon
6c0c8cef5b
Patched to compile on Android (I hope).
2015-04-01 14:45:09 -04:00
Ryan C. Gordon
244550f0d7
Android: more separate-mouse-and-touch work.
...
This avoids a hint lookup for each mouse event we get by setting a static Java
variable from native code during our hint watcher callback.
Also attempts to do the right thing with mouse buttons if you happen to be
on an API14 (Ice Cream Sandwich, Android 4.0) or later device. We still
target API12 (Honeycomb MR1, Android 3.1) for SDL 2.0.4 though.
This isn't tested, so I'm pushing to see what the Android buildbot says. Stand
back, I'm a professional!
2015-04-01 12:14:56 -04:00
Sam Lantinga
97094ebd2b
Fixed relative mouse motion moving farther and farther off screen.
2015-03-30 11:31:53 -07:00
Ryan C. Gordon
8873c00053
Minor input grab clarifications.
...
Clarify that grabbing the mouse only works with one window at a time; this was
always true at the system level, though SDL could previously get confused
by multiple simultaneous grabs, so now we explicitly break any existing
grab before starting a new one and document it as such.
Also track the window that is currently grabbed, and provide an API to query
for that window. This makes it easy to automate mouse ungrabbing at
breakpoints with gdb7's scripting, since the scripts can now know which window
to ungrab.
In 2.1, we should probably change this API to SDL_GrabInput(win) and
SDL_UngrabInput(void), or something.
2015-03-28 00:48:03 -04:00
Joseba García Etxebarria
fe4155e517
Renamed SDLGenericMotionListener back to SDLGenericMotionListener_API12
2015-03-27 18:09:51 -04:00
Philipp Wiesemann
3279a4dd4b
Removed not needed call to SDL_free().
2015-03-25 22:48:57 +01:00
Philipp Wiesemann
728db68685
Android: Removed outdated comment from source.
2015-03-25 22:47:22 +01:00
Ryan C. Gordon
96771b8c31
Make the Dynamic API master switch more clear.
2015-03-25 11:18:54 -04:00
Ryan C. Gordon
82001dbbfb
Add a hint watch callback for SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH.
2015-03-25 10:59:10 -04:00
Ryan C. Gordon
e30892135b
Removed unnecessary SDL_log.h include.
2015-03-25 10:48:59 -04:00
Joseba García Etxebarria
648ac3e582
* More Android patch work
2015-03-24 21:02:28 +01:00
Joseba García Etxebarria
b1c3794e4b
* Improve mouse support in Android. These changes require Android API v12 to compile
2015-03-24 20:45:29 +01:00
Ryan C. Gordon
c691d4b44a
Keep track of maximum number of events in-flight in the SDL queue at once.
2015-03-25 10:19:10 -04:00
Ryan C. Gordon
de7c61b314
Patched to compile on C89 compilers.
2015-03-24 14:40:31 -04:00
Ryan C. Gordon
effac13a3f
Make the signal handler hint more generic.
2015-03-24 14:36:36 -04:00
Ryan C. Gordon
e2b33306a0
Added a hint to prevent SDL from installing signal handlers.
...
Fixes Bugzilla #2431 .
2015-03-24 14:29:25 -04:00
Ryan C. Gordon
44708540f3
Cleanups in the joystick code.
...
Removed some redundant state and other confusions.
Fixes Bugzilla #2738 .
2015-03-24 13:52:01 -04:00