Sam Lantinga
5986bdc50d
Fixed building on Windows with CMake
2014-08-16 15:18:21 -07:00
Ryan C. Gordon
923f894f97
Haptic: Add some missing haptic types to test, and fix wrong array-sizes.
...
Thanks, Elias!
Fixes Bugzilla #2686 .
(along with the last several commits.)
2014-08-16 16:50:10 -04:00
Ryan C. Gordon
a61f94f2a4
Haptic: Fix clamping bugs on Windows, by using the Darwin haptics code.
...
Thanks, Elias!
Partially fixes Bugzilla #2686 .
2014-08-16 16:49:00 -04:00
Ryan C. Gordon
5f4bff4acc
Haptic: Fix the saturation and deadband parameters' available range.
...
There was a misconception that Linux's saturation and deadband parameters -
on which the corresponding SDL parameters were based - use only half of the
possible range.
Thanks, Elias!
Partially fixes Bugzilla #2686 .
2014-08-16 16:47:42 -04:00
Ryan C. Gordon
913d3c0acb
Haptic: Explicitly avoid floating point arithmetic if it's not needed.
...
Thanks, Elias!
Partially fixes Bugzilla #2686 .
2014-08-16 16:42:55 -04:00
Ryan C. Gordon
8ba088f60b
Haptic: DInput's POLAR direction actually matches Linux's direction.
...
Thanks, Elias!
Partially fixes Bugzilla #2686 .
2014-08-16 16:41:25 -04:00
Ryan C. Gordon
a752aefd59
Haptic: Don't interpret a direction of polar 35999 as "unsupported type".
...
(or linux-direction 0xFFFF)
Thanks, Elias!
Partially fixes Bugzilla #2686 .
2014-08-16 16:40:01 -04:00
Philipp Wiesemann
2645949c77
Fixed markdown formatting in READMEs.
2014-08-15 23:39:14 +02:00
Philipp Wiesemann
d1e03360ec
Updated README.
2014-08-15 23:18:57 +02:00
Philipp Wiesemann
c4eaf413a0
Fixed enumeration in README.
2014-08-15 23:13:51 +02:00
Sam Lantinga
a4e7d11272
Take advantage of GL_ARB_texture_non_power_of_two when it's available
2014-08-14 21:31:50 -07:00
Philipp Wiesemann
faed99fae6
Fixed warnings about unused local variables.
2014-08-12 23:37:12 +02:00
Philipp Wiesemann
039f06d731
Fixed warning about implicit boxing to Java Object.
2014-08-12 23:33:16 +02:00
Philipp Wiesemann
3a8de638c1
Fixed doxygen warnings and markdown formatting.
2014-08-12 23:28:45 +02:00
Sam Lantinga
4b39a2f46b
Implemented SDL_GetPrefPath() on Android - it returns the path used by SDL_AndroidGetInternalStoragePath()
2014-08-11 17:25:53 -07:00
Sam Lantinga
7dec2806ea
Added an entry for the new Steam controller XInput emulation mode
2014-08-11 17:24:54 -07:00
Philipp Wiesemann
8f4de21b29
Fixed typo in source comment.
2014-08-11 23:18:35 +02:00
Philipp Wiesemann
50b5d62934
Added javadoc comment for consistency.
2014-08-11 23:16:47 +02:00
Philipp Wiesemann
b473c109cd
Fixed doxygen warning and markdown formatting.
2014-08-11 23:13:20 +02:00
Philipp Wiesemann
f9864b4590
Updated README name in header.
2014-08-11 22:53:03 +02:00
Philipp Wiesemann
4febb40851
Removed 42 from README.
2014-08-11 22:45:08 +02:00
David Ludwig
6651b612a2
WinRT build fix for ARM platforms
...
The _xgetbv intrinsic was being used in ARM builds of SDL/WinRT, which was
leading to linker errors. This commit limits _xgetbv use to the platforms on
which it is available, x86 and x64.
2014-08-10 22:21:21 -04:00
Alex Szpakowski
82844178e0
Added iOS-specific functions to get the window view's current OpenGL Renderbuffer and Framebuffer objects, so they can be more easily rebound when necessary.
...
--HG--
branch : iOS-improvements
2014-08-08 15:14:09 -03:00
Alex Szpakowski
75bb0e9fdd
Fixed opengl context share groups on iOS.
...
--HG--
branch : iOS-improvements
2014-08-07 00:44:16 -03:00
Sam Lantinga
06d9ee1f36
Added NV12 and NV21 texture support for OpenGL and OpenGL ES 2.0 renderers
2014-08-06 11:34:54 -07:00
Alex Szpakowski
6936ec200f
Merged default into iOS-improvements
...
--HG--
branch : iOS-improvements
2014-08-06 13:50:50 -03:00
Sam Lantinga
9cc5f3e935
The OpenGL context returned by the UIKit backend is now an actual OpenGL context instead of the OpenGL view we created.
...
This allows you to use the returned context in functions like CVOpenGLESTextureCacheCreate()
2014-08-06 00:28:02 -07:00
Alex Szpakowski
2bbdea71c1
Merged default into iOS-improvements
...
--HG--
branch : iOS-improvements
2014-08-06 03:32:59 -03:00
Alex Szpakowski
19f09c82c3
Updated the iOS backend code to use Objective-C's automatic reference counting (ARC).
...
--HG--
branch : iOS-improvements
2014-08-06 03:24:16 -03:00
Sam Lantinga
90c885ed9b
Haptics aren't available on iOS, but use the dummy implementation instead of failing init if it's requested.
2014-08-05 21:03:02 -07:00
Alex Szpakowski
363f84f3b7
Minor code update for less verbosity
...
--HG--
branch : iOS-improvements
2014-08-06 00:45:11 -03:00
Alex Szpakowski
c11f89e140
Merged branch default into iOS-improvements
...
--HG--
branch : iOS-improvements
2014-08-04 15:30:53 -03:00
Alfred Reynolds
b14ad43a87
SDL - when raising the window under OSX also force the app to activate. This fixes a fullscreen window on a separate space not coming front when raisewindow is called.
2014-07-31 12:46:23 -07:00
Alex Szpakowski
6a15f46238
Merged 'default' into branch 'iOS-improvements'
...
--HG--
branch : iOS-improvements
2014-07-31 03:14:10 -03:00
Alfred Reynolds
cb63cc9436
SDL - fix re-entrancy into SDL_UpdateFullscreenMode under OSX. During HideWindow we get a RESTORED event which then turns fullscreen back on causing a hang in Cocoa_SetWindowFullscreenSpace waiting for the fullscreen transition to finish.
2014-07-30 17:45:52 -07:00
Ryan C. Gordon
3589da6bd2
Make SDL_SysWMinfo usable on Mac/iOS with ARC enabled (thanks, Alex!).
...
Fixes Bugzilla #2641 .
2014-07-30 14:14:19 -04:00
Ryan C. Gordon
3789e46088
Fixed comment typo.
2014-07-30 14:12:54 -04:00
Ryan C. Gordon
388c3c5853
SDL_GetQueuedAudioSize() shouldn't grab lock when not set up for queueing.
2014-07-30 11:11:48 -04:00
Ryan C. Gordon
f7c29bcb2a
Added a GetPendingBytes method to the audio backend.
...
This will (eventually) make SDL_GetQueuedAudioSize() more accurate, and thus
reduce latency. Right now this isn't implemented anywhere, so we assume data
fed to the audio callback is consumed by the hardware and immediately played
to completion.
2014-07-30 11:08:31 -04:00
Ryan C. Gordon
3049139f10
XAudio2: Use XAUDIO2_VOICE_NOSAMPLESPLAYED when possible.
...
For versions of XAudio2 with an IXAudio2SourceVoice::GetState() that offers a
flags parameter, we can use XAUDIO2_VOICE_NOSAMPLESPLAYED, since we don't
need this information in our current calls. According to MSDN, this makes the
the call about 3x faster.
2014-07-30 09:54:01 -04:00
Sam Lantinga
abc66099f9
Moved documentation to docs, recreated a simple README.txt, fixed build
2014-07-29 08:04:15 -07:00
Gabriel Jacobo
4f3a0f0ff1
Rearrange documentation
...
1) Moves all READMEs to docs/
2) Renames them to *.md, adds some Markdown with the idea to add a lot more
3) Moves the doxyfile config to doc/ and makes it parse the headers at ../include as well as the md files in docs.
4) Skips SDL_opengl*.h headers from the docs
5) Minor fixes to doxyfile
2014-07-29 09:20:12 -03:00
Alex Szpakowski
c5273b470a
Added missing autorelease pool blocks in UIKit backend code. Fixes memory leak issues, especially in SDL_video.
...
--HG--
branch : iOS-improvements
2014-07-29 00:36:12 -03:00
Alex Szpakowski
9236ac4d12
Added support for SDL_SetWindowBordered on iOS. Worked around a bug with rotating the device on iOS 8.
...
--HG--
branch : iOS-improvements
2014-07-29 00:05:48 -03:00
Ryan C. Gordon
d9bca52776
Changed local var names in SDL assert macro.
...
Otherwise, if someone added an assert to a function that has a variable
named "state", the compiler might warn about shadowing a local.
2014-07-28 10:54:25 -04:00
Sam Lantinga
9285ade794
Turned on OmitDefaultLibName for SDL, SDLmain and SDLtest
2014-07-27 19:56:53 -07:00
Ryan C. Gordon
849b3144f4
Remove dependency on C runtime from Windows SDLmain.
2014-07-27 19:52:52 -04:00
Sam Lantinga
b5bb6cf028
Fixed bug 2537 - _allmul in SDL_lib.c is not working properly
2014-07-27 17:44:10 -07:00
Sam Lantinga
c5265de0cd
Fixed uninitialized variable in some cases
2014-07-27 17:43:36 -07:00
Alex Szpakowski
910ce857ee
Fixed SDL_SetWindowFullscreen on iOS causing the window's reported dimensions and supported orientations to go out of sync with what they should be, if the device orientation was different from the screen orientation when the function call was made.
...
--HG--
branch : iOS-improvements
2014-07-24 22:35:25 -03:00