Ryan C. Gordon
bd9fdb8099
Changed SDL_INIT_EVERYTHING to only request currently-known subsystems.
2013-03-08 11:38:08 -05:00
Sam Lantinga
7f2340dc6a
Don't re-read the hints when opening the game controller. Instead use SDL_GameControllerAddMapping() to add hints after initialization.
2013-03-08 10:09:51 -08:00
Sam Lantinga
1494812f7c
Put the real SDL_AtomicCAS() and SDL_AtomicCASPtr() symbols into the library.
2013-03-07 20:42:55 -08:00
Sam Lantinga
c6388c87c1
Changed the name of SDL_mutexP() SDL_mutexV()
2013-03-07 20:12:40 -08:00
Sam Lantinga
69b8182419
The joystick events contain a joystick instance ID, which is a signed value, with -1 being invalid.
2013-03-06 11:59:21 -08:00
Sam Lantinga
85d6d00788
Removed multi-input events, since we removed the unimplemented API recently.
2013-03-06 11:59:15 -08:00
Edward Rudd
ac51aff110
Add SDL_TryLockMutex and implementations for all platforms
2013-03-05 18:54:55 -05:00
Edward Rudd
191718be44
add hint to allow disabling the use of Xinput.
2013-03-05 18:01:59 -05:00
Edward Rudd
5fd98b3297
add new gamecontroller APIs
...
- add mappings after init (or even before w/o using the hint)
- get string for axis
- get string for button
- get mapping string for controller or for GUID
- new event to notify when a controller is remapped. (e.g. mapping was changed via the AddMapping method)
2013-03-05 17:59:36 -05:00
Sam Lantinga
bb0752e573
Updated touch API
...
* Normalized touch coordinates as floats in the 0...1 range
* Removed unused touchpad concepts from the API
* Added API functions to get active touch devices and current finger state
2013-03-03 01:01:33 -08:00
Sam Lantinga
71ea3033fa
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
c02018f852
Fixed the joystick id usage in the joystick and game controller events.
2013-03-02 17:51:32 -08:00
Sam Lantinga
43f89a9836
Updated the link to the USB usage page document
2013-02-28 20:01:17 -08:00
Sam Lantinga
2204530a1b
Fixed gcc pedantic warnings in public headers
2013-02-26 20:41:28 -08:00
Jørgen P. Tjernø
a3482e3ac0
sdl2
...
- fix atomic header to compile happily under msvc 6.0
2013-02-25 16:52:48 -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
Ryan C. Gordon
ad1d82cf83
Added SDL_GameControllerUpdate().
2013-02-25 01:51:21 -05:00
Ryan C. Gordon
4de257c5d2
Added SDL_haptic.h to SDL.h.
2013-02-25 01:50:59 -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
Sam Lantinga
70132c66ae
The input API was never implemented, so removing it before release.
2013-02-19 05:39:19 -08:00
Sam Lantinga
95dcfa4c28
Happy New Year!
2013-02-15 08:47:44 -08:00
Sam Lantinga
909068989c
Updated documentation with info about the wiki
...
We're no longer under construction, baby!
2013-02-14 15:56:33 -08:00
Andreas Schiffler
edbd20ec34
Add tests to SDLtest suite
2013-02-13 23:10:29 -08:00
Jørgen P. Tjernø
6fee8913ec
New SDL_MSBIndex, updated VS projects, cleanup gamecontroller.
...
- Updated Visual Studio 2010 project with SDL 2.0 library names
- Don't use a 256 byte LUT, but rather <32 bytes of data on the stack.
- Cleanups in SDL_gamecontroller.h
--HG--
extra : amend_source : e7d1b224d1356c5be7a89df7b82a7f5e1141c167
2013-02-13 17:19:21 -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ø
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
Sam Lantinga
831e12e08b
Fixed building SDL under Xcode
2013-02-11 11:09:55 -08:00
Sam Lantinga
4809ef4290
Fixed typo in documentation
2013-01-27 15:53:24 -08:00
Tim Angus
bd462555d7
Fix warning in SDL_keyboard.h
2013-01-17 11:54:14 +00:00
Andreas Schiffler
b4a190fb6f
Update SDL_InvalidParamError to take param name; add additional fuzzer function; add new tests to keyboard test suite; improve surface test suite
2013-01-12 22:58:12 -08:00
Andreas Schiffler
a20096403e
Add new internal error message for invalid parameters; add validation of input rect in SDL_SetTextInputRect; add test cases for SDL_SetTextInputRect to keyboard suite
2013-01-11 20:36:39 -08:00
Gabriel Jacobo
678523ea7c
Android: Access APK files using AssetFileDescriptor
2013-01-08 09:30:53 -03:00
Sam Lantinga
290bbdda14
Fixed bug 1653 - comma at the end of enum
...
Martin Gerhardy 2012-11-30 03:07:14 PST
SDL_gamecontroller.h:61:29: warning: comma at end of enumerator list [-pedantic]
2012-12-31 16:29:01 -08:00
Sam Lantinga
1a92f18381
Added SDL_SetWindowMaximumSize() and SDL_GetWindowMaximumSize()
...
Also fixed Cocoa implementation so that it affects client area, not the whole window area.
2012-12-31 12:15:25 -08:00
Sam Lantinga
ce28a79602
Added SDL_GetDisplayName(), with implementation for Mac OS X
2012-12-31 11:07:46 -08:00
Sam Lantinga
5e519b21ed
Renamed SDL_GetWindowDisplay() to SDL_GetWindowDisplayIndex()
2012-12-31 10:29:17 -08:00
Sam Lantinga
f4294fd806
Improvements from Alfred:
...
- Added new SDL_HINT_ALLOW_TOPMOST hint, when set to "0" then never set the topmost bit on a window. Useful when debugging fullscreen issues.
- fixed crash in windows joystick scanning if we failed to load the xinput dll
- added support for SDL_WINDOW_FULLSCREEN_DESKTOP under windows
- synthesize relative mouse movements if directinput fails to send relative moves, happens under virtual box.
2012-12-31 09:30:15 -08:00
Ryan C. Gordon
da7983235f
Better compiler warning fix for gcc2.
2012-12-28 20:01:41 -05:00
Ryan C. Gordon
cfbe53d1df
Fixing buildbot on Haiku.
...
Damn you, gcc2.
2012-12-28 18:15:02 -05:00
Ryan C. Gordon
fc98164d8d
Replaced Gnome screensaver hack with D-Bus messages to org.gnome.ScreenSaver.
2012-12-28 03:46:55 -05:00
Andreas Schiffler
9ddb1f459d
Add surface test suite; minor improvements to render suite; refactor image saving into test lib compare function; fix for Haiku build
2012-12-26 22:26:44 -08:00
Andreas Schiffler
d9a9083464
Added audio test suite; minor code cleanups in test lib
2012-12-24 14:43:57 -08:00
Sam Lantinga
b11f967898
Fixed const correctness in the test harness
2012-12-22 17:24:14 -08:00
Sam Lantinga
f1d2b88a2f
Merged Andreas' changes
2012-12-22 16:52:00 -08:00
Andreas Schiffler
81eb615d45
Test lib updates: updated harness to support filtering, added surface comparer, updated interface to test images; added Render test suite from GSOC project
2012-12-22 16:06:55 -08:00
Sam Lantinga
062602b52b
The latest version of MinGW-w64 has the necessary headers and libraries: http://mingw-w64.sourceforge.net/
2012-12-22 11:23:18 -08:00
Andreas Schiffler
f5af517cd2
Add image data definitions (for render tests) to test lib
2012-12-20 08:50:36 -08:00
Ryan C. Gordon
02c860852a
Patched to compile when SDL_ASSERT_LEVEL is zero.
...
--HG--
extra : rebase_source : a8a29d66692b1bba00003c017c1e3785ce008780
2012-12-18 06:35:49 -05:00
Andreas Schiffler
a6185d6ad9
Refactor/fix test lib harness, assert and log component; add harness driver; port platform suite from GSOC code
2012-12-14 23:05:34 -08:00