Sam Lantinga
b0c5e201f8
Added support for Razer Serval Bluetooth mode
2015-05-25 14:52:41 -07:00
Victor Luchits
afc97cbd5d
Fix duplicate raw mouse events with XInput2
...
Make XGrabPointer calls in X11_SetWindowGrab and X11_CaptureMouse
consistent by passing False to owner_mask along with proper event_mask.
2015-05-14 14:40:56 +03:00
Sam Lantinga
447194987c
Sign any subframeworks - not needed for SDL proper, but included for consistency with other projects
2015-05-23 09:33:20 -07:00
Philipp Wiesemann
1968ff0471
Android: Fixed touch pressure being out of range.
...
According to the documentation of Android's MotionEvent, the getPressure() may
return values higher than 1 on some devices. To prevent passing such values into
SDL they are now corrected to 1 in Java before the JNI call (where it is assumed
to be correct).
Currently SDL only sends SDL_FINGERMOTION events if the touch state (position or
pressure) changed. By correcting pressure down to 1 some events may get dropped
in the rare case that only the pressure was changed but was out of range and the
position did not change.
2015-05-22 22:34:08 +02:00
Philipp Wiesemann
4f00dda95d
Removed redundant NULL check in test program.
2015-05-21 21:27:53 +02:00
Philipp Wiesemann
b00214c3d6
Changed clean-up order in test program.
2015-05-21 21:25:32 +02:00
Philipp Wiesemann
39d27a6380
Fixed undefined key access in test program.
2015-05-21 21:25:14 +02:00
Sam Lantinga
6365381422
Added game controller support for the Razer Serval
2015-05-20 16:28:21 -07:00
Philipp Wiesemann
2c4ad51d44
Added missing loop cancel for Emscripten in test programs.
2015-05-18 21:21:14 +02:00
Philipp Wiesemann
ac10a2f29d
Fixed compiling test program with Emscripten.
2015-05-18 21:17:13 +02:00
Philipp Wiesemann
1ed86d2211
Fixed handling only one event per frame in test program.
2015-05-18 21:12:16 +02:00
Alex Szpakowski
fcee3e734d
Code style cleanup in the GLES and GLES2 render backends.
2015-05-16 17:35:36 -03:00
Alex Szpakowski
240a3fbffe
iOS: Added support for SDL_DisableScreenSaver and SDL_EnableScreenSaver.
2015-05-16 16:55:56 -03:00
Philipp Wiesemann
f7ac02010f
Android: Replaced logging tag strings with constant.
2015-05-16 21:15:59 +02:00
Philipp Wiesemann
a54d038b64
Emscripten: Fixed wrong source comment and updated web link.
2015-05-16 21:15:27 +02:00
Alex Szpakowski
d57b973518
Mac: Use CoreFoundation headers instead of Carbon headers, in GetPowerInfo code.
2015-05-16 12:05:42 -03:00
Sam Lantinga
1c6ea0f226
Added a userdata parameter to SDL_SetWindowsMessageHook()
2015-05-13 22:39:32 -07:00
Sam Lantinga
b2be9253e3
Fixed Mac and Linux builds
2015-05-13 22:39:27 -07:00
Sam Lantinga
7de242e72c
Added SDL_SetWindowsMessageHook() to facilitate full IME support on Windows
2015-05-13 22:39:20 -07:00
Sam Lantinga
094c4a160f
Added generic xinput fallback for XBox compatible controllers on Linux
2015-05-13 22:37:26 -07:00
Alex Szpakowski
f1a7c00d06
Refactored SDL_EGL_CreateContext: It now supports context flags and OpenGL ES 3+ contexts, and its behavior more closely matches the GLX and WGL context creation code.
...
Improved the code style consistency of SDL_egl.c.
Fixes bugzilla #2865 .
2015-05-11 21:03:36 -03:00
Philipp Wiesemann
5919a859b4
Android: Fixed empty parameter list in signatures of internal functions.
2015-05-09 22:42:23 +02:00
Philipp Wiesemann
6e4e9ceb44
Fixed SDL_TouchFingerEvent documentation in header file.
2015-05-08 21:53:02 +02:00
Philipp Wiesemann
8f4bcc7274
Android: Replaced spaces with tab in Android.mk file.
2015-05-06 21:11:06 +02:00
Philipp Wiesemann
3f51758ec5
Emscripten: Fixed touch coordinates not being normalized.
2015-05-06 21:10:48 +02:00
Philipp Wiesemann
5715097a0c
Fixed implicit function declaration in test program.
2015-05-06 21:09:33 +02:00
Alex Szpakowski
ac27b511bf
Fixed SDL_GL_GetAttribute queries for framebuffer component sizes in Core Profile OpenGL contexts.
...
Fixes bugzilla #2060 .
2015-05-06 12:54:51 -03:00
Alex Szpakowski
c4fe8c80c8
Fixed building the iOS Demo files in debug mode
2015-05-06 12:42:14 -03:00
Alex Szpakowski
4fc4026660
Replaced all remaining uses of NSAutoreleasePool with @autoreleasepool blocks (bugzilla #2680.)
2015-05-05 19:01:55 -03:00
Alex Szpakowski
6c20b68257
Fixed a warning when SDL_syswm.h is included in code compiled for iOS with clang.
2015-05-05 16:24:05 -03:00
Alex Szpakowski
d1372bb92c
Fixed the window offset on iOS when resuming an app with a borderless or fullscreen window that has the on-screen keyboard visible.
2015-05-05 16:20:11 -03:00
Alex Szpakowski
d603bb30e6
Fixed a crash on iOS when none of the orientations in Info.plist match the SDL window's actual orientation.
...
Fixes bug #2967 .
2015-05-05 16:16:10 -03:00
Sam Lantinga
74d83ead35
Fixed bug 2976 - Fix RGBA<->RGBA blit that was broken with the optimization from Bug 11
...
id.zeta
The optimization from Bug 11 added a code branch on cases where the source RGB masks match the destination RGB masks and a optimized blit function Blit4to4MaskAlpha that always overrides the source alpha info would be chosen. Unfortunately, the branch also errorneously took over the RGBA<->RGBA blitting cases where the source alpha info should be copied, while they would instead get overriden in Blit4to4MaskAlpha.
The attached patch fixes that by handling the RGBA<->RGBA cases correctly in that branch with the original BlitNtoNCopyAlpha as well as uses an optimized Blit4to4CopyAlpha along the same vein.
2015-05-04 21:47:40 -07:00
Ryan C. Gordon
589c46dd65
X11: send keypress events before textinput events.
2015-05-01 01:20:28 -04:00
Ryan C. Gordon
0045e2e622
checkkeys: report SDL_TEXTEDITING events.
2015-05-01 01:19:00 -04:00
Ryan C. Gordon
423262789b
checkkeys: Readded the KEYUP event test.
2015-05-01 01:12:48 -04:00
Philipp Wiesemann
9979bab20b
Android: Deactivated debug log messages on joystick device events.
2015-04-30 21:45:29 +02:00
Dimitris Zenios
d9d1a1b980
X11: Use our own cut-buffer for intermediate clipboard storage.
...
XA_CUTBUFFER0 is not defined for holding UTF8 strings.
2015-04-26 13:53:46 +03:00
Sam Lantinga
93bd476de9
Moved code signature step to after the framework build step is complete, and don't hardcode the codesign identity
2015-04-26 20:46:07 -07:00
Sam Lantinga
931f6e4ee5
Turn off code signing by default
...
Code signature can be added after build with the following command line:
codesign --force --sign 76BB5ACAC44CA5EFA5F879434D157B81DA842CFB SDL2.framework/Versions/A
2015-04-26 20:21:06 -07:00
Sam Lantinga
43692a0021
Updated project and added code signing for release builds
2015-04-26 15:47:40 -07:00
Ryan C. Gordon
5c09bf73b2
Only check for Linux-specific input APIs on Linux targets (thanks, Marcus!).
...
This is only for the configure script. The CMake project files already make
this Linux-exclusive.
Fixes Bugzilla #2659 .
2015-04-25 20:49:26 -04:00
Reto Schneider
e5f9c347ef
Remove trailing spaces in Android source code.
2015-04-08 12:14:36 +02:00
Ryan C. Gordon
77ccc412f5
CMake: Minor cleanup up on the new SDL_*_ENABLED_BY_DEFAULT vars.
2014-12-13 02:40:52 -05:00
Ryan C. Gordon
fe40a17224
Initial merge of Emscripten port!
...
With this commit, you can compile SDL2 with Emscripten
( http://emscripten.org/ ), and make your SDL-based C/C++ program
into a web app.
This port was due to the efforts of several people, including: Charlie Birks,
Sathyanarayanan Gunasekaran, Jukka Jyl?nki, Alon Zakai, Edward Rudd,
Bruce Mitchener, and Martin Gerhardy. (Thanks, everyone!)
2014-12-18 00:19:52 -05:00
Ryan C. Gordon
a228b67d88
CMake: Replace "else(condition)" with "else()", etc.
...
Bumped required CMake version to 2.8.
Thanks to the SDL/Emscripten porting team for this cleanup.
2014-12-13 02:33:52 -05:00
Sam Lantinga
708a43f50e
Treat any key device as a keyboard
...
This matches commit d325f1bbbab4 for when udev is not running
2014-12-13 13:20:19 -08:00
Philipp Wiesemann
b9707732e3
Removed unused includes and functions from test program.
2014-12-12 21:51:30 +01:00
Philipp Wiesemann
269c2476b6
Replaced sqrt() with SDL_sqrt() in test program.
2014-12-12 21:02:46 +01:00
Philipp Wiesemann
701c97074f
Removed global variable from test program.
...
On Android starting the application after a previous quit did not always work.
Android keeps VM processes for a faster restart and therefore the loaded *.so.
2014-12-12 21:00:25 +01:00