David Ludwig
f34ae4e23f
WinRT: more "Windows RT" to "WinRT" renaming
2013-08-27 12:20:35 -04:00
David Ludwig
23334b06c1
WinRT: took out a deprecated TODO-comment
2013-08-27 12:16:42 -04:00
David Ludwig
e2a0f9890c
WinRT: moved the WinRT SDL_VideoDevice out of SDL_WinRTApp
...
This was done to help pave the way for XAML support.
2013-08-27 12:13:45 -04:00
David Ludwig
2ebd518380
WinRT: moved the pointer to the global SDL_Window to a separate variable
...
This is a cleanup that is being done to help with WIP XAML support. It may be reverted in the future.
2013-08-27 11:51:17 -04:00
David Ludwig
669aa12b7e
WinRT: renamed SDL_SYSWM_WINDOWSRT to SDL_SYSWM_WINRT
...
This is part of an overall effort to use the name, "WinRT", rather than "WindowsRT" (or "Windows RT"), as the shorthand name often seems to mean something different than the longhand name. (WinRT is an API, Windows RT is a product name)
2013-08-27 11:44:43 -04:00
David Ludwig
38bbbc27f9
WinRT: Windows Phone build fix
2013-08-27 11:40:06 -04:00
David Ludwig
558566d117
WinRT: misc code cleanups
2013-08-27 11:39:44 -04:00
David Ludwig
48fbe6839c
WinRT: removed more hack-code that attempted to help have non-standard window sizes
...
"Non-standard" is defined here as any window size that differs from that provided by WinRT's CoreWindow.
2013-08-27 11:00:52 -04:00
David Ludwig
7e217f79c6
WinRT: minor function and variable name cleanup
2013-08-27 10:57:55 -04:00
David Ludwig
15ca970fc2
WinRT: made all SDL_Windows get sized to the WinRT-defined window size
...
This change removes some code that attempted to allow non-standard window sizes, the idea of which was to do display scaling, and a hackish one at that. If display scaling is needed, use SDL_Renderer as appropriate.
2013-08-27 10:56:10 -04:00
David Ludwig
ccbeaad484
WinRT: removed a deprecated hack regarding window resizing and Direct3D viewports
2013-08-27 09:53:58 -04:00
David Ludwig
d74acd5aaa
WinRT: moved most platform-specific keyboard and mouse code to shared locations
2013-08-26 17:17:53 -04:00
David Ludwig
2fda2633de
WinRT: removed some old debugging code from SDL_mutexP and SDL_mutexV
2013-08-20 22:18:48 -04:00
David Ludwig
5187b903b9
WinRT: made a note that WinRT doesn't appear to support modifying a thread's priority
2013-08-20 22:16:09 -04:00
David Ludwig
772a538b7f
WinRT: made SDL_ThreadID() return the native thread ID, rather than a fake one
2013-08-20 22:04:09 -04:00
David Ludwig
e27f29bfa9
WinRT: made testthread log output via SDL_Log
...
- this will allow output to be read via Visual C++'s Output pane
2013-08-20 21:55:13 -04:00
David Ludwig
6dbbcb0aab
WinRT: made the C++11-based threading backend only try to catch exceptions that it knows it (the threading APIs) might throw, rather than all exceptions
2013-08-20 21:54:34 -04:00
David Ludwig
b59c3af461
WinRT: file naming and placement cleanup
...
- moved SDL_WinRTApp.* from src/video/windowsrt/ to src/core/winrt/, and renamed them to SDL_winrtapp.* (to mimick case-sensitivity used elsewhere in SDL)
- renamed all "windowsrt" directories (in src) to "winrt", as the shorthand name is used more often (and, IMO, "WinRT" != "Windows RT", not entirely at least)
2013-08-20 21:22:32 -04:00
David Ludwig
51cd30d786
WinRT: added a stub implementation of UpdateClipRect to the D3D 11.1 renderer
2013-08-13 20:33:15 -04:00
David Ludwig
9cce55ebfa
WinRT: fixed a crash in some display orientation hint code
2013-08-13 20:28:48 -04:00
David Ludwig
3f511d900f
WinRT: made sure SDL_main gets used in the latest SDL 2.0.0 based code
2013-08-13 20:28:10 -04:00
David Ludwig
4e6ccce30f
WinRT: Windows Phone 8 build fixes
2013-08-13 20:11:51 -04:00
David Ludwig
1ae5d8dea3
WinRT: build fixes and additional WinRT-related integrations with SDL 2.0.0
2013-08-13 20:09:52 -04:00
David Ludwig
373ffd0dac
WinRT: merged with SDL 2.0.0 codebase (aka. SDL hg rev d6a8fa507a45)
2013-08-12 22:29:55 -04:00
Sam Lantinga
34710c77de
Fixed bug 2027 - Full-screen appears to be broken - hang in SDL_DestroyWindow()
...
Rainer Deyke
I'm running Linux Mint 15 with the Cinnamon window manager. SDL_DestroyWindow consistently locks up for me when the window if fullscreen.
2013-08-11 19:56:43 -07:00
Philipp Wiesemann
9c07454d41
Added missing call to SDL_stack_free().
...
On Windows this is needed because SDL_stack_alloc() wraps SDL_malloc().
2013-08-10 23:21:06 +02:00
Philipp Wiesemann
07d62e2d9c
Removed SDL_HAPTIC_SQUARE from comments in header to prevent doxygen confusion.
2013-08-10 23:14:20 +02:00
Philipp Wiesemann
37516af4c1
Corrected comment in test program.
2013-08-10 23:07:28 +02:00
Sam Lantinga
ab4156e1ac
Fixed bug 1925 - SDL_GetPerformanceFrequency returns incorrect value on iOS
...
PoopiSan
Currently on OSX and iOS simulator the values:
mach_base_info.denom = 1
mach_base_info.numer = 1
but on the real iOS device
mach_base_info.denom = 3
mach_base_info.numer = 125
The calculation is made using following formula
mach_base_info.denom / mach_base_info.numer * 1000000
but all values are int32 and the result is casted to int64.
This solves the problem:
return 1.0 * mach_base_info.denom / mach_base_info.numer * 1000000;
2013-08-10 11:19:30 -07:00
Sam Lantinga
3d37f9ab7b
Fixed whitespace
2013-08-10 10:57:54 -07:00
Sam Lantinga
ea2abfa241
Fixed bug 2024 - Update OSX Joystick code to fully support Saitek p2500 gamepad
...
Patrick Maloney
Saitek p2500 (Cyborg Rumble Force Pad) has a D-pad, two analog sticks, and numerous buttons. SDL 2.x on OSX detected everything except the right-side analog stick. The right-side stick is considered a 'simulation device' with the axes mapped to throttle and rudder.
The patch adds support for throttle and rudder on the HID simulation page.
2013-08-10 10:55:12 -07:00
Sam Lantinga
53a86d45bd
Check the return value of glGenTextures()
2013-08-10 10:49:26 -07:00
Ryan C. Gordon
03c58caaaa
Haptic: Let XInput update effects while they're still running.
2013-08-10 13:46:19 -04:00
Ryan C. Gordon
7f43d9ff8b
Removed no-longer-necessary comment.
2013-08-10 13:40:08 -04:00
Ryan C. Gordon
2fbbecf909
Replaced SDL_HAPTIC_SQUARE with SDL_HAPTIC_LEFTRIGHT.
...
We needed a bit, so we're hoping no one needs this effect, especially when
it's fairly close to SDL_HAPTIC_SINE, we hope.
SDL_HAPTIC_LEFTRIGHT maps to XInput's functionality, so this removes the SINE
code for the XInput driver to keep things clean.
This also makes the simplified Rumble API use SDL_HAPTIC_LEFTRIGHT if
SDL_HAPTIC_SINE isn't available, to keep XInput working.
When we break the ABI, and can extend the supported capabilities field from
a Uint16, we'll add SDL_HAPTIC_SQUARE back in.
This patch is based on work by Ethan Lee.
2013-08-10 13:38:09 -04:00
Ryan C. Gordon
67a0b6551b
Fixed some typos in the headers.
2013-08-10 13:20:45 -04:00
Sam Lantinga
0663c26353
Added the Google Summer of Code students from 2010
2013-08-09 23:58:33 -07:00
Sam Lantinga
ed4c2a6946
Updated the credits for SDL 2.0. Thank you everyone!
2013-08-09 23:43:14 -07:00
Sam Lantinga
f19fef3eb6
Fixed bug 2007 - SDL_SetWindowMinimumSize() not implemented on X11 (thanks Rainer!)
2013-08-09 23:13:52 -07:00
Sam Lantinga
da8571affc
Better wording suggested by the community
2013-08-09 21:09:49 -07:00
Andreas Schiffler
2bf318cac0
Update video_getSetWindowSize for windows
2013-08-08 22:10:00 -07:00
Andreas Schiffler
ea498a599d
Fix Bug 2021: Win32: Stack overflow due to recursive SDL_LogOutput on SDL_LogError without console; fix off-by-one error in SDLtest test suite
2013-08-08 21:29:30 -07:00
Sam Lantinga
35d8faed5d
Removed unneeded Android audio code
2013-08-08 21:16:29 -07:00
Gabriel Jacobo
d0ac9f02aa
Start Android Audio Thread after audio buffer and AudioTrack are ready.
...
Also, it starts the Audio Thread from the native side, putting the code in line
with other backends.
2013-08-08 21:25:09 -03:00
Ryan C. Gordon
0e5d2125a5
SDL_RegisterEvents() now rejects requests for numevents <= 0.
2013-08-08 15:04:30 -07:00
Jørgen P. Tjernø
072168c65a
Mac: Fix mouse tap on 10.5.
...
There's no Block support in the runtime on 10.5, so the old code
wouldn't work.
2013-08-08 13:29:44 -07:00
Ryan C. Gordon
3425e6a209
Backed out changeset 3f487d7d2d1d
...
This breaks applications.
2013-08-08 13:22:21 -07:00
Ryan C. Gordon
7bc19eeddf
Send the SDL_QUIT when last window is destroyed, not during its close event.
2013-08-08 12:49:29 -07:00
Jørgen P. Tjernø
6cffb5553f
Mac: Don't enable SDL_MAC_NO_SANDBOX by default.
...
To get this functionality, you need to use -DSDL_MAC_NO_SANDBOX=1 in
your CFLAGS.
2013-08-08 12:48:37 -07:00
Sam Lantinga
e66f593a02
Fixed crash if SDL_GetThreadName() is passed a NULL thread.
2013-08-08 12:21:26 -07:00