Commit Graph

5521 Commits

Author SHA1 Message Date
Sam Lantinga
a2aa3983b3 Added a mouse ID to the mouse events, which set to the special value SDL_TOUCH_MOUSEID for mouse events simulated by touch input. 2013-03-02 20:44:16 -08:00
Sam Lantinga
db3cba4095 Fixed the joystick id usage in the joystick and game controller events. 2013-03-02 17:51:32 -08:00
Sam Lantinga
cd0042d2ef Remove XSync from X11_GL_MakeCurrent() function 2013-03-01 11:27:01 -08:00
Sam Lantinga
1b7bc167b1 Merged 2013-03-01 11:18:35 -08:00
Sam Lantinga
ca2f5aafe1 Merged changes 2013-03-01 11:15:50 -08:00
Gabriel Jacobo
25e56a6f4a Use XFree to release X11 allocated data 2013-03-01 13:28:07 -03:00
Sam Lantinga
f0cedf0cae Fixed bug 1736 - Memory leak in X11_InitModes
tomaszewski.p

XRRListOutputProperties allocates Atom* array, which is not freed.
XRRGetOutputProperty allocates 'unsigned char *prop' array, which is not freed.
2013-02-28 22:20:25 -08:00
Sam Lantinga
fe026212bb The table is now a scancode mapping table, not a virtual key mapping table 2013-02-28 21:48:12 -08:00
Sam Lantinga
fff359a46f 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
Sam Lantinga
834cbe125f Updated the link to the USB usage page document 2013-02-28 20:01:17 -08:00
Andreas Schiffler
0d61aa360d Add additional input validation to SDL_GetWindowDisplayMode; add tests to video suite 2013-02-28 09:11:04 -08:00
Sam Lantinga
4c9cac762a sdl - check for both the up and down flags being set in the raw input calls. Also use WM_ACTIVE to resync mouse buttons on activate 2013-02-27 11:39:43 -08:00
Sam Lantinga
3a073a0562 sdl - don't use the RAWMOUSE struct to get button press information, it lies badly to you, just use the usual windows message path 2013-02-27 11:39:41 -08:00
Sam Lantinga
f440366e62 sdl - use the wParam and rawinput data for mouse state rather than just the message type, fixes missing mouse up events when alt-tabing out of the window
CR: SamL
2013-02-27 11:39:39 -08:00
Sam Lantinga
ca94467587 Generate debug info for all configurations on all platforms
Turned off C++ exception handling for all configurations and all platforms
Turned on comdat folding and optimized references for all optimized builds

CR: Bruce Dawson
2013-02-27 11:39:38 -08:00
Sam Lantinga
dcda50dd51 Unload the PulseAudio library if the pulseaudio connection isn't available. 2013-02-26 23:26:00 -08:00
Sam Lantinga
6bb6decd41 Check to make sure we can connect to PulseAudio before we use it. 2013-02-26 16:31:52 -08:00
Sam Lantinga
f0bf08280b Fixed gcc pedantic warnings in public headers 2013-02-26 20:41:28 -08:00
Sam Lantinga
d50ed81ef8 Fixed cygwin compile 2013-02-26 20:32:11 -08:00
Gabriel Jacobo
fa687ecfd4 Fixes wrong assignment of SDL_Color "unused" member in DirectFB backend. 2013-02-26 13:53:02 -03:00
Andreas Schiffler
d7872e4502 Fix cygwin compile 2013-02-26 07:50:42 -08:00
Sam Lantinga
d76c7254dd Fixed bug 1728 - fixed compiler warnings 2013-02-26 03:34:34 -08:00
Jørgen P. Tjernø
f8dba952a1 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ø
09f084b4bc sdl
- fix win32 mapping of alpha-numeric keys after scancode changes
2013-02-25 16:52:52 -08:00
Jørgen P. Tjernø
415a479a56 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ø
2b21da6971 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ø
a387ff7086 sdl2
- fix atomic header to compile happily under msvc 6.0
2013-02-25 16:52:48 -08:00
Jørgen P. Tjernø
e2b192f98d 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
Andreas Schiffler
83e6f01e05 Add tests to video suite 2013-02-25 08:05:26 -08:00
Sam Lantinga
bb183a5c79 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
3104ca4190 Added SDL_GameControllerUpdate(). 2013-02-25 01:51:21 -05:00
Ryan C. Gordon
ad75661c46 Added SDL_haptic.h to SDL.h. 2013-02-25 01:50:59 -05:00
Ryan C. Gordon
b7b7f889c5 Changed the game controller enum types to match SDL naming conventions. 2013-02-25 00:56:21 -05:00
Ryan C. Gordon
1da268a909 Minor cleanup. 2013-02-25 00:47:47 -05:00
Ryan C. Gordon
1e8adff29f Added PS3 game controller config for Linux. 2013-02-25 00:45:25 -05:00
Ryan C. Gordon
efb6ccb1ee Made testgamecontroller minimally more useful. 2013-02-24 22:57:25 -05:00
Ryan C. Gordon
a73c1eef79 Fixed a minor typo. 2013-02-24 22:56:35 -05:00
Ryan C. Gordon
e8d1e6c534 Added an X360 game controller config for Linux. 2013-02-24 22:56:24 -05:00
Sam Lantinga
3484299fd7 Removed duplicate include 2013-02-24 12:56:29 -08:00
Sam Lantinga
96fd614309 Fixed compiling on older Linux systems without libudev 2013-02-24 12:55:51 -08:00
Sam Lantinga
a65e5a3850 Removed local.properties from android-project folder
Alexey Petruchik

Please remove local.properties from android-project folder and add it to hgignore
According to the local.properties:
# This file must *NOT* be checked in Version Control Systems,
2013-02-23 02:25:34 -08:00
Gabriel Jacobo
4c20da2bdc Fixes Bug 1726 - Memory leak in X11_GetDisplayBounds 2013-02-22 10:44:44 -03:00
Ryan C. Gordon
5c01139fce 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
dbf83c45a4 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
509366e2ca Fixed bug 1474 - OpenGL renderer can't to display YV12 texture. 2013-02-19 07:05:15 -08:00
Sam Lantinga
69e2715258 Removed SDL_input.h from various projects 2013-02-19 05:46:51 -08:00
Sam Lantinga
d486363049 The input API was never implemented, so removing it before release. 2013-02-19 05:39:19 -08:00
Sam Lantinga
b5744978af 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ø
da448f5b13 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
03c2ba497f 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