Sam Lantinga
c6ac556871
The table is now a scancode mapping table, not a virtual key mapping table
2013-02-28 21:48:12 -08:00
Sam Lantinga
1b30d1a566
Cleaned up and fixed the Windows keyboard mapping code.
...
Use KP_PERIOD instead of KP_DECIMAL
Don't remap keys which are always keycode named versions of scancodes
2013-02-28 21:40:08 -08:00
Andreas Schiffler
e23532eac2
Add additional input validation to SDL_GetWindowDisplayMode; add tests to video suite
2013-02-28 09:11:04 -08:00
Sam Lantinga
a5e77bb96f
Unload the PulseAudio library if the pulseaudio connection isn't available.
2013-02-26 23:26:00 -08:00
Sam Lantinga
90cde1bd46
Check to make sure we can connect to PulseAudio before we use it.
2013-02-26 16:31:52 -08:00
Sam Lantinga
2204530a1b
Fixed gcc pedantic warnings in public headers
2013-02-26 20:41:28 -08:00
Sam Lantinga
a2dccaee2b
Fixed cygwin compile
2013-02-26 20:32:11 -08:00
Gabriel Jacobo
1984b3b92e
Fixes wrong assignment of SDL_Color "unused" member in DirectFB backend.
2013-02-26 13:53:02 -03:00
Andreas Schiffler
3269062684
Fix cygwin compile
2013-02-26 07:50:42 -08:00
Sam Lantinga
7065167e8c
Fixed bug 1728 - fixed compiler warnings
2013-02-26 03:34:34 -08:00
Jørgen P. Tjernø
e02925eca9
Cleanup of SDL_PrivateShouldInitSubsystem.
...
Also fixes a build error if a module was disabled.
2013-02-25 16:52:54 -08:00
Jørgen P. Tjernø
05631f0599
sdl
...
- fix win32 mapping of alpha-numeric keys after scancode changes
2013-02-25 16:52:52 -08:00
Jørgen P. Tjernø
383deb9a61
sdl2
...
- more scancode goodness, removing now dead wparam translation code
- add scancode for SDL_SCANCODE_NONUSBACKSLASH
- don't translate sdl key values for numeric and grave key
CR: SamL
2013-02-25 16:52:51 -08:00
Jørgen P. Tjernø
ef5e7f5c65
sdl2
...
- fix ref counting on init, make sure you refcount each init calls and not just the first one
2013-02-25 16:52:50 -08:00
Jørgen P. Tjernø
cf58b77360
sdl2
...
- change the windows scancode logic to use the scan code value in lparam rather than VK's to get a stable scancode value across different KB layouts
2013-02-25 16:52:42 -08:00
Sam Lantinga
95adf91d71
Don't crash if we are asked to convert a surface to a NULl buffer.
2013-02-25 00:54:25 -08:00
Ryan C. Gordon
ad1d82cf83
Added SDL_GameControllerUpdate().
2013-02-25 01:51:21 -05:00
Ryan C. Gordon
a5862a96a3
Changed the game controller enum types to match SDL naming conventions.
2013-02-25 00:56:21 -05:00
Ryan C. Gordon
3d19f803d8
Added PS3 game controller config for Linux.
2013-02-25 00:45:25 -05:00
Ryan C. Gordon
6c4a53f561
Fixed a minor typo.
2013-02-24 22:56:35 -05:00
Ryan C. Gordon
2452978990
Added an X360 game controller config for Linux.
2013-02-24 22:56:24 -05:00
Sam Lantinga
c63c6c5103
Removed duplicate include
2013-02-24 12:56:29 -08:00
Sam Lantinga
22f666c86c
Fixed compiling on older Linux systems without libudev
2013-02-24 12:55:51 -08:00
Gabriel Jacobo
5a61cb4234
Fixes Bug 1726 - Memory leak in X11_GetDisplayBounds
2013-02-22 10:44:44 -03:00
Ryan C. Gordon
c02c04cdba
Backed out changeset 9fea506e48ab
...
Sam beat me to this on a different branch, apparently.
2013-02-20 14:49:30 -05:00
Ryan C. Gordon
9269a3af2e
Allow SDL_AUDIODRIVER="pulse" to do the right thing.
...
(We renamed this audio target at some point; the Internet didn't get the memo.)
2013-02-20 13:25:38 -05:00
Sam Lantinga
fed4aded8f
Fixed bug 1474 - OpenGL renderer can't to display YV12 texture.
2013-02-19 07:05:15 -08:00
Sam Lantinga
7da5b83b75
Allow abbreviated strings to be used for driver names.
...
This allows people to use "pulse" with both SDL 1.2 and 2.0
2013-02-18 20:14:24 -08:00
Jørgen P. Tjernø
6e147b2087
Fix SDL_SetWindowSize on certain WMs.
...
Makes SDL_SetWindowSize work on some WMs (like Fluxbox, ion3, Awesome,
WindowMaker), and when running without a WM.
Fixes bug 1513.
CR: saml
2013-02-18 18:28:02 -08:00
Sam Lantinga
72ec6bcbe2
Fixed bug where if X11 is not dynamically loaded, then we think none of the X11 modules are available.
2013-02-18 16:24:33 -08:00
Sam Lantinga
1a4596d798
Fixed bug 1722 - An attempt to release NULL Direct3d surface
...
Evgeny
static void
D3D_DestroyRenderer(SDL_Renderer * renderer)
has a critical problem. It may try to release IDirect3DSurface9 surface pointed
by NULL pointer. That leads to really wierd consequences on my system.
It happens when the previous call to IDirect3D9_CreateDevice() fails leaving
D3D_RenderData::defaultRenderTarget uninitialized.
2013-02-17 23:30:47 -08:00
Sam Lantinga
6e2c0511ee
Added SDL license to Android clipboard implementation
2013-02-16 13:35:28 -08:00
Sam Lantinga
a1b447a13a
Added license to Android power implementation
2013-02-16 13:33:58 -08:00
Sam Lantinga
95dcfa4c28
Happy New Year!
2013-02-15 08:47:44 -08:00
Sam Lantinga
20cad0087c
Missed a few files when switching to the zlib license
2013-02-15 08:27:57 -08:00
Sam Lantinga
963c65929d
Don't crash if we have the extension but couldn't load the XInput shared library.
2013-02-14 15:40:19 -08:00
Michael Sartain
73eaf569f4
Clear relative mouse mode and restore when bringing up sdl message box.
2013-02-14 13:22:05 -08:00
Andreas Schiffler
ea312e87fa
Fix fuzzer random boundary functions; add tests for fuzzer
2013-02-12 22:23:42 -08:00
Jørgen P. Tjernø
e34e953eba
Check bounds in SDL_IsGameController. Switch two functions to SDL_bool.
...
Switches SDL_GameControllerGetAttached and SDL_IsGameController to
return SDL_bool, instead of int.
2013-02-12 17:07:21 -08:00
Jørgen P. Tjernø
564d47f878
Fix build issue on Win/Haiku.
...
This fixes a build issue with C variable declarations in my refcounting
change.
2013-02-12 12:18:46 -08:00
Jørgen P. Tjernø
f85aeb98c7
Don't clobber refcounting in SDL_Init.
...
- Fixes bug 1712 by not overwriting SDL_SubsystemRefCount in SDL_Init.
- Removes the SDL_initialized variable, and makes SDL_SubsystemRefCount
the canonical source of truth for whether or not a subsystem has been
initialized.
- Refactors SDL_InitSubSystem and SDL_QuitSubSystem to use helper
functions to manage refcount.
- Adds automated tests for SDL_Init/Quit*.
- Adds SDL_bits.h which contains SDL_MostSignificantBitIndex.
2013-02-12 11:47:31 -08:00
Jørgen P. Tjernø
781ab3764f
Fix a corruption when you remove first joystick on Linux.
...
Fixes a bug where the joystick subsystem would get corrupted if you unplug the
first of multiple joysticks. Fixes bug 1714.
CR: saml
2013-02-12 11:47:29 -08:00
Gabriel Jacobo
7ecccf3fbd
Bug 1703 - SDL calls a wrong JNI function on Android by Philipp Wiesemann
2013-02-12 13:59:04 -03:00
Sam Lantinga
a1afe6c175
tree 5b46fd5b8c94
...
parent 971b278f0756
author Edward Rudd <urkle@outoforder.cc> 1358022907 18000
committer Edward Rudd <urkle@outoforder.cc> 1358022907 18000
revision 6819
branch default
Remove some redundant assigns
2013-02-11 21:47:13 -08:00
Sam Lantinga
c54822142d
Fixed increasing the size of resizable windows
2013-02-11 21:39:58 -08:00
Sam Lantinga
eb63dcd330
Fixed mouse wheel delta on Windows
2013-02-11 21:29:36 -08:00
Sam Lantinga
5f3f837a42
Fixed bug 1491 - Directx3d Crash on resize
...
Spinduluz
RenderTarget has to be released before a device reset is done. It's a
D3DPOOL_DEFAULT surface (resides in video memory and have to be recreated).
2013-02-11 21:12:14 -08:00
DavidLudwig
9bb95ef16a
converted tabs to spaces in iOS/UIKit PumpEvents code
2013-01-04 16:38:05 -05:00
Sam Lantinga
78b69734b8
Fixed bug 1679 - Error in buffer size setting in Haiku/BeOS audio driver
...
PulkoMandy
Just like in SDL, audio buffer sizes for BeOS and Haiku BSoundPlayer are sized
in bytes, not frames. SDL was feeding the wrong value, leading to buffers
smaller than expected and weird behaviour in some unsuspecting programs
(noticed it in HivelyTracker but others are likely affected as well. The fix is
fortunately very simple
2013-02-11 20:56:34 -08:00
Sam Lantinga
b836001559
Hopefully fixed the last of the C variable declaration problems which caused compile failures with Visual Studio.
2013-02-11 18:28:05 -08:00