David Ludwig
cf8a84626b
future-proofing for Microsoft's C++/CX extensions, whereby "generic" is a reserved keyword
2013-04-20 23:05:08 -04: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
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
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
95dcfa4c28
Happy New Year!
2013-02-15 08:47:44 -08:00
Sam Lantinga
34b88dfaae
Added hotplug joystick support and simplified game controller API, courtesy of Alfred Reynolds
2012-11-26 16:37:54 -08:00
Sam Lantinga
995e8dc838
Switch C++ comment to C comment
2012-10-21 22:18:36 -07:00
Sam Lantinga
df0e5d1844
Fixed another gcc <-> Visual C++ ABI issue
2012-10-20 00:49:08 -07:00
Sam Lantinga
5ef4144446
Removed the SDL 1.2 compatibility API... we'll see how painful this is.
2012-01-22 18:11:41 -05:00
Sam Lantinga
028e5dcdbd
Happy New Year!
2011-12-31 09:28:07 -05:00
Sam Lantinga
3a7d58ddf8
Fixed bug 1336 - Added a timestamp on all SDL events
...
Gueniffey 2011-11-23 04:11:31 PST
The attached simple patch adds a timestamp to all SDL events. It is useful to
dismiss old events and add UI responsiveness (my application does some
extensive tasks that creates a delay in the event queue handling. With this
patch, I can deal only with the most recent events.
2011-12-29 05:13:55 -05:00
Sam Lantinga
f52f040b3d
First pass at a simple drag and drop API, allowing you to accept files dropped into your application.
2011-11-20 19:38:18 -05:00
Sam Lantinga
2c5a3ddb62
Fixed a typo in the header.
2011-11-07 02:25:01 -05:00
Sam Lantinga
b0660ba5ff
SDL 1.3 is now under the zlib license.
2011-04-08 13:03:26 -07:00
Sam Lantinga
e5803d148c
Happy 2011! :)
2011-02-11 22:37:15 -08:00
Sam Lantinga
76a24d278d
Sheena pointed out that "scancode" and "keysym" are single words and shouldn't be camel-cased.
2011-02-07 09:37:11 -08:00
Sam Lantinga
52cf8a6451
Added functions to watch events as they go through the event queue.
2011-02-01 19:15:42 -08:00
krogoway
a2f2302255
Renamed SDL_keysym to SDL_KeySym
...
Renamed SDL_scancode to SDL_ScanCode
Added #defines to SDL_compat.h
2011-01-24 13:47:35 -06:00
Sam Lantinga
6654cd07b3
Fixed compiler error
2011-01-17 14:05:14 -08:00
Sam Lantinga
24cfae7d89
Minor documentation consistency cleanup
2011-01-17 09:09:15 -08:00
Sam Lantinga
5152fac7f8
Fixed spacing in comments
2011-01-12 11:55:02 -08:00
Sam Lantinga
a8c8dc3e09
Updated headers to match wiki documentation
2011-01-12 09:47:33 -08:00
Sam Lantinga
238acbd53d
Merged Jim's Google Summer of Code work from SDL-gsoc2010_gesture
2010-08-22 12:07:55 -07:00
Jim Grandpre
794c5cb3ee
Added README.touch and README.gesture. Moved touchtest/gestureSDLTest to test/testgesture
2010-08-15 00:36:28 -04:00
Sam Lantinga
f0de16c63e
Fixed documentation error
2010-08-14 12:28:43 -07:00
Jim Grandpre
bcd4b4df6f
Fixed gestureMulti. Disabled dollar gesture temporarily.
2010-08-04 23:17:30 -04:00
jimtla
39ee818f98
Added SDL_TouchID, SDL_FingerID, SDL_GestureID types. Converted to integer cioordinates (<- not working).
2010-07-31 20:02:54 +04:00
jimtla
c9b9312be3
Upgraded touchId/fingerId to long. Changed position variables to floats.
2010-07-30 23:18:35 +04:00
Sam Lantinga
0e59ffc802
Added support for keyboard repeat (only tested on Windows so far)
2010-07-20 23:25:24 -07:00
Jim Grandpre
987edb15b3
Added alternative finger tracking method. Still prefer IPHONE_TOUCH_EFFICIENT_DANGEROUS.
2010-07-13 18:31:09 -04:00
Sam Lantinga
22a37911dd
Merged changes from the main SDL codebase
...
--HG--
rename : VisualC/SDL/SDL.vcproj => VisualC/SDL/SDL_VS2005.vcproj
rename : VisualC/SDL.sln => VisualC/SDL_VS2005.sln
rename : VisualC/SDLmain/SDLmain.vcproj => VisualC/SDLmain/SDLmain_VS2005.vcproj
2010-07-12 21:09:23 -07:00
Jim Grandpre
99ed0692e1
Added some files I had previosuly missed
2010-07-11 01:15:39 -04:00
Jim Grandpre
746dc79478
Moved $1 Gestures into the SDL Library
2010-07-09 00:50:40 -07:00
Sam Lantinga
ff0ba0afa5
Added an event when the clipboard is updated, triggered after the window gains the keyboard focus.
2010-07-08 22:54:03 -07:00
Jim Grandpre
874300f89c
Moved Multi finger gesture recognition into the library.
2010-07-07 04:13:08 -07:00
Jim Grandpre
3dcae4341c
Added pressure support for touch events.
2010-05-29 02:09:16 -04:00
Jim Grandpre
72c5a40b07
Added reading of event* for touch events.
2010-05-28 01:26:52 -04:00
Jim Grandpre
f806d39746
Added touch event definitions. Heavily modified events/SDL_touch*.
2010-05-27 01:21:37 -04:00
Sam Lantinga
338f95eb06
Removed multi-mouse / multi-keyboard support in anticipation of a real multi-mouse and multi-touch API.
...
Plus, this lets me start implementing cursor support.
2010-05-09 20:47:22 -07:00
Sam Lantinga
fc440f959f
Minor cleanup on Jiang's patch
2010-04-15 22:27:01 -07:00
Sam Lantinga
f9a8341561
changeset: 4433:25667ea797fa
...
tag: tip
user: Jiang Jiang <gzjjgod@gmail.com>
date: Thu Apr 15 12:01:46 2010 +0800
summary: Add windowID to text editing event
2010-04-15 22:14:26 -07:00
Sam Lantinga
1fb2a69487
General improvements for user custom event registration
...
* Switched event type to enum (int32)
* Switched polling by mask to polling by type range
* Added SDL_RegisterEvents() to allow dynamic user event registration
* Spread events out to allow inserting new related events without breaking binary compatibility
* Added padding to event structures so they're the same size regardless of 32-bit compiler structure packing settings
* Split SDL_HasEvent() to SDL_HasEvent() for a single event and SDL_HasEvents() for a range of events
* Added SDL_GetEventState() as a shortcut for SDL_EventState(X, SDL_QUERY)
* Added SDL_FlushEvent() and SDL_FlushEvents() to clear events from the event queue
2010-03-25 01:08:26 -07:00
Sam Lantinga
4d3df8b3e3
Fixed bug #926
...
Updated copyright to LGPL version 2.1 and year 2010
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404453
2010-01-24 21:10:53 +00:00
Sam Lantinga
a0e019f786
Switched from SDL_WindowID and SDL_TextureID to SDL_Window* and SDL_Texture* for code simplicity and improved performance.
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404438
2010-01-21 06:21:52 +00:00
Sam Lantinga
1ca4e2cee3
Fixed bug #642
...
Gerry JJ 2008-11-09 02:11:49 PST
The SDL_MouseMotionEvent struct has a field named "tilt" (currently marked "for
future use"), for tablet stylus tilt information. However, one value is not
enough for this, as tilt is two-dimensional. Reserving only one field for
future use is no good when you're going to need two, so there should be two
fields, tilt_x and tilt_y.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404321
2009-12-16 00:44:53 +00:00
Sam Lantinga
1cbfd5b6e0
Partial fix for bug #859
...
Header file update from Ken for improved doxygen output
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404127
2009-10-19 13:31:58 +00:00