Alex Szpakowski
d7781e2eff
Renamed SDL_iPhoneGetViewFramebuffer/Renderbuffer to SDL_iOSGetViewFramebuffer/Renderbuffer. Added #defines for SDL_iOSSetAnimationCallback and SDL_iOSSetEventPump, which point to SDL_iPhoneSetAnimationCallback and SDL_iPhoneSetEventPump.
...
--HG--
branch : iOS-improvements
2015-04-08 15:59:29 -03:00
Alex Szpakowski
f699d4bf09
Generated dynapi prototypes for the new iPhone functions.
...
--HG--
branch : iOS-improvements
2015-04-08 15:44:07 -03:00
Alex Szpakowski
2e1e6ca72a
Merged default into iOS-improvements
...
--HG--
branch : iOS-improvements
2015-04-08 15:35:07 -03:00
Ryan C. Gordon
fcc02ce4eb
Removed unused variable.
2015-04-08 02:42:29 -04:00
Ryan C. Gordon
669dc26987
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
2ea17952a1
Patched to compile on Windows.
2015-04-08 02:24:17 -04:00
Ryan C. Gordon
0392357711
Wayland: Patched to compile.
2015-04-08 02:22:28 -04:00
Ryan C. Gordon
67034e77b6
DirectInput: ignore everything but joysticks and gamepads (thanks, Justin!).
...
Fixes Bugzilla #2460 .
--HG--
extra : rebase_source : db50b42eeefe76084e477dc521fcd8f86fe9d1b0
2015-04-08 02:14:59 -04:00
Ryan C. Gordon
e7b13cff94
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
14d69c7f05
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
f4d6bf7c5e
Patched to compile on C89 compilers.
2015-04-08 01:40:01 -04:00
Ryan C. Gordon
b344c3f2ed
Log Android hardware at startup (thanks, rettichschnidi!).
...
Fixes Bugzilla #2653 .
2015-04-08 01:37:17 -04:00
Ryan C. Gordon
806c03c496
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
96c35e69fb
Wayland: changed a few "SetError(); return -1;" to "return SetError()".
2015-04-07 22:49:56 -04:00
Alex Szpakowski
0bacddf42e
Merged default into iOS-improvements
...
--HG--
branch : iOS-improvements
2015-04-06 15:26:37 -03:00
Ryan C. Gordon
a47b4d648c
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
51fdbabb56
This function can be static.
2015-04-06 00:10:54 -04:00
Ryan C. Gordon
a5fff20ab1
Make loading/saving dollar gesture templates endian clean (thanks, Martin!).
...
Fixes Bugzilla #2674 .
2015-04-05 18:59:52 -04:00
Ryan C. Gordon
f7e517a061
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
dd2a173a33
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
d18f975b1b
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
ddad0a1315
Cast the result of calling getButtonState to an Integer
2015-04-02 00:55:45 +02:00
Sam Lantinga
9549f560ba
Added a game controller entry for the NVIDIA Controller
2015-04-01 18:22:42 -07:00
Edward Rudd
9e9a67f64e
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
7ccd2d26a9
Patched to compile on Android (I hope).
2015-04-01 14:45:09 -04:00
Ryan C. Gordon
bedac6b53a
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!
--HG--
extra : amend_source : 7748c650f37edd47c721e4e7e96cf5995f5ac459
2015-04-01 12:14:56 -04:00
Sam Lantinga
ba8fa2b18a
Fixed relative mouse motion moving farther and farther off screen.
2015-03-30 11:31:53 -07:00
Emmanuel Gil Peyrot
8dba903d57
Wayland: Specify the output we want to put our window on.
...
Fixes Bugzilla #2803 .
--HG--
extra : histedit_source : 34f21203939ff8993648acdbe02eb1b5cab0f2e2
2015-03-28 19:43:46 +01:00
Ryan C. Gordon
d6ffb03a60
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.
--HG--
extra : rebase_source : c99570ccdaeb40c13fb0b00236fc77669705a189
extra : amend_source : 40993aa08816ef218bc10aa5d3a2aaa84f284240
2015-03-28 00:48:03 -04:00
Joseba García Etxebarria
1163b6da1c
Renamed SDLGenericMotionListener back to SDLGenericMotionListener_API12
2015-03-27 18:09:51 -04:00
Philipp Wiesemann
bc4a24e207
Removed not needed call to SDL_free().
2015-03-25 22:48:57 +01:00
Philipp Wiesemann
8f0ea4bcf7
Android: Removed outdated comment from source.
2015-03-25 22:47:22 +01:00
Ryan C. Gordon
adc62e29fb
Make the Dynamic API master switch more clear.
2015-03-25 11:18:54 -04:00
Ryan C. Gordon
d9f45dce57
Add a hint watch callback for SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH.
2015-03-25 10:59:10 -04:00
Ryan C. Gordon
b335d1a182
Removed unnecessary SDL_log.h include.
2015-03-25 10:48:59 -04:00
Joseba García Etxebarria
e997a4144d
* More Android patch work
2015-03-24 21:02:28 +01:00
Joseba García Etxebarria
3dcf5c743f
* Improve mouse support in Android. These changes require Android API v12 to compile
2015-03-24 20:45:29 +01:00
Ryan C. Gordon
9c0de60160
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
79ca08bb25
Patched to compile on C89 compilers.
2015-03-24 14:40:31 -04:00
Ryan C. Gordon
77d434ab89
Make the signal handler hint more generic.
2015-03-24 14:36:36 -04:00
Ryan C. Gordon
d9474bba87
Added a hint to prevent SDL from installing signal handlers.
...
Fixes Bugzilla #2431 .
2015-03-24 14:29:25 -04:00
Ryan C. Gordon
3ff618a9c7
Cleanups in the joystick code.
...
Removed some redundant state and other confusions.
Fixes Bugzilla #2738 .
--HG--
extra : rebase_source : 35dd561553379e00eb8d169ce12ecc99393b2f84
2015-03-24 13:52:01 -04:00
Ryan C. Gordon
e03d7a79a9
Mac: patched to compile with haptic subsystem disabled (thanks, Rodrigo!).
...
Fixes Bugzilla #2717 .
2015-03-24 03:24:57 -04:00
Ryan C. Gordon
2b9c893e8b
Better fixes for CMake subsystem enabling (thanks, Sebastian!).
...
Fixes Bugzilla #2875 .
2015-03-24 03:21:57 -04:00
Ryan C. Gordon
1816bcb659
Make SDL error string formatting deal with nasty corner cases.
...
We continued looping while maxlen > 0, but maxlen was unsigned, so an overflow
would make it a large number instead of negative. Fixed.
Some snprintf() implementations might return a negative value if there isn't
enough space, and we now check for that.
Don't overrun the SDL error message buffer, if snprintf() returned the number
of chars it wanted to write instead of the number it did.
snprintf is a portability mess, we should just never use the C runtime for it.
Fixes Bugzilla #2049 .
--HG--
extra : histedit_source : 4c21dac5eefc6070bc54a5a83be523d28d484844%2C790b58948a82e2a4322d9ddd1e298bc873d44d4a
2015-03-24 03:12:35 -04:00
Ryan C. Gordon
9da4b2b5b8
Ran hardcoded game controller database through sort_controllers.py.
2015-03-24 02:48:16 -04:00
Ryan C. Gordon
c3c8b8335a
Added Logitect RumblePad 2 controller mapping for Linux (thanks, Nicholas!).
...
Fixes Bugzilla #2091 .
2015-03-24 02:47:25 -04:00
Ryan C. Gordon
8dacecf1c6
winmm: Let audio callback buffer size be less than 1/4 second (thanks, Jon!).
...
Maybe this was here for Win9x? There's no reason to insert this much latency
by default.
Fixes Bugzilla #2835 .
2015-03-24 02:13:25 -04:00
Ryan C. Gordon
c01c90ce0c
configure script: fix recursive mutex test on Linux systems (thanks, Ozkan!).
2015-03-23 20:07:24 -04:00
Ryan C. Gordon
8b5daef277
X11: Reenabled setlocale() and fork() for message boxes.
...
Fixes Bugzilla #1658 .
2015-03-23 19:54:33 -04:00