summaryrefslogtreecommitdiff
path: root/src/events/SDL_mouse_c.h
Commit message (Collapse)AuthorAgeFilesLines
* Updated copyright for 2021Sam Lantinga2021-01-021-1/+1
|
* Updated copyright date for 2020Sam Lantinga2020-01-161-1/+1
|
* Fixed bug 4704 - SDL_HINT_ANDROID_SEPERATE_MOUSE_AND_TOUCH on Windows?Sam Lantinga2019-07-151-0/+1
| | | | | | | | superfury I notice that, somehow, when locking the mouse into place(using SDL_SetRelativeMouseMode), somehow at least the movement information gets through to both mouse movement and touch movement events? My app handles both, so when moving a touched finger accross the app(using RDP from an Android device) I see the mouse moving inside the app when it shouldn't(meaning that the touch movement is ignored properly by the app(press-location dependant) but the mouse movement is still performed due to the mouse movement events)?
* Add hint SDL_HINT_MOUSE_TOUCH_EVENTS for mouse events to generate touch eventsSylvain Becker2019-04-041-0/+1
| | | | | controlling whether mouse events should generate synthetic touch events By default SDL will *not* generate touch events for mouse events
* Updated copyright for 2019Sam Lantinga2019-01-041-1/+1
|
* Added hints SDL_HINT_MOUSE_DOUBLE_CLICK_TIME and ↵Sam Lantinga2018-09-141-3/+2
| | | | | | SDL_HINT_MOUSE_DOUBLE_CLICK_RADIUS to allow tuning double-click sensitivity. Also increased the default double-click radius to 32 pixels to be more forgiving for touch interfaces
* Updated copyright for 2018Sam Lantinga2018-01-031-1/+1
|
* Fixed bug 2293 - Precise scrolling eventsSam Lantinga2017-08-141-1/+3
| | | | | | | | | | | | Martijn Courteaux I implemented precise scrolling events. I have been through all the folders in /src/video/[platform] to implement where possible. This works on OS X, but I can't speak for others. Build farm will figure that out, I guess. I think this patch should introduce precise scrolling on OS X, Wayland, Mir, Windows, Android, Nacl, Windows RT. The way I provide precise scrolling events is by adding two float fields to the SDL_MouseWheelScrollEvent datastructure, called "preciseX" and "preciseY". The old integer fields "x" and "y" are still present. The idea is that every platform specific code normalises the scroll amounts and forwards them to the SDL_SendMouseWheel function. It is this function that will now accumulate these (using a static variable, as I have seen how it was implemented in the Windows specific code) and once we hit a unit size, set the traditional integer "x" and "y" fields. I believe this is pretty solid way of doing it, although I'm not the expert here. There is also a fix in the patch for a typo recently introduced, that might need to be taken away by the time anybody merges this in. There is also a file in Nacl which I have stripped a horrible amount of trailing whitespaces. (Leave that part out if you want).
* Fixed bug 2931 - Large relative mouse motion jumps when using touch inputSam Lantinga2017-08-121-0/+1
|
* Added a hint SDL_HINT_TOUCH_MOUSE_EVENTS to control whether touch events ↵Sam Lantinga2017-08-031-0/+1
| | | | generate synthetic mouse events.
* Updated copyright for 2017Sam Lantinga2017-01-011-1/+1
|
* Added SDL_HINT_MOUSE_NORMAL_SPEED_SCALE and ↵Sam Lantinga2016-12-021-0/+4
| | | | | | SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE to scale the speed of the mouse. This currently doesn't affect absolute motion, which would need to be implemented on each windowing system so the cursor matches the reported mouse coordinates.
* Renaming of guard header names to quiet -Wreserved-id-macroSam Lantinga2016-11-201-3/+3
| | | | Patch contributed by Sylvain
* Use OS-provided click counts on macOS and iOS for mouse press and release ↵Alex Szpakowski2016-09-241-0/+3
| | | | events.
* Updated copyright to 2016Sam Lantinga2016-01-021-1/+1
|
* SDL_WarpMouseGlobal() should return non-void.Ryan C. Gordon2015-07-171-1/+1
| | | | | | | | There are platforms it isn't implemented on (and currently can't be implemented on!), and there's currently no way for an app to know this. This shouldn't break ABI on apps that moved to a revision between 2.0.3 and 2.0.4.
* Updated the copyright year to 2015Sam Lantinga2015-05-261-1/+1
|
* add in support for passing down the "natural" (or flipped) scrolling ↵Edward Rudd2014-11-231-1/+1
| | | | direction in the MouseWheelEvent event
* Merged Ryan's SDL-gui-backend branch.Ryan C. Gordon2014-06-251-1/+4
|\ | | | | | | | | | | | | | | Adds three APIs, and implements them on X11, Cocoa, and Windows: - SDL_CaptureMouse() - SDL_GetGlobalMouseState() - SDL_SetWindowHitTest()
| * Added an API function to warp the mouse cursor in global screen space: ↵Sam Lantinga2014-06-041-1/+4
| | | | | | | | SDL_WarpMouseGlobal()
* | Changed SDL_GetAbsoluteMouseState() to SDL_GetGlobalMouseState().Ryan C. Gordon2014-06-251-1/+1
| | | | | | | | | | This matches naming conventions in the main repository, between SDL_GetRelativeMouseState() and SDL_WarpMouseGlobal().
* | Implemented SDL_GetAbsoluteMouseState().Ryan C. Gordon2014-06-051-0/+3
| | | | | | | | X11 only for now, but this should be doable on every platform, I think.
* | Implemented SDL_CaptureMouse().Ryan C. Gordon2014-05-241-0/+3
|/
* Fixed bug 2374 - Update copyright for 2014...Sam Lantinga2014-02-021-1/+1
| | | | Is it that time already??
* Make internal SDL sources include SDL_internal.h instead of SDL_config.hRyan C. Gordon2013-11-241-1/+1
| | | | The new header will include SDL_config.h, but allows for other global stuff.
* Added a relative mouse mode that uses mouse warping instead of raw input.Sam Lantinga2013-12-231-2/+1
| | | | | | To enable this, set the environment variable SDL_MOUSE_RELATIVE_MODE_WARP to "1" When mouse relative mode is disabled, put the cursor back where the application expects it to be, instead of where it was when relative mode was enabled.
* Added support for double-clicks, through a new "clicks" field in the mouse ↵Sam Lantinga2013-12-231-0/+14
| | | | button event.
* File style cleanup for the SDL 2.0 releaseSam Lantinga2013-05-181-1/+1
|
* Mac: Fix relative mode message after gaining focus.J?rgen P. Tjern?2013-04-251-0/+3
| | | | | This fixes a bug where relative mode would give a large jump if the cursor was moved when the app doesn't have focus.
* Added a mouse ID to the mouse events, which set to the special value ↵Sam Lantinga2013-03-021-3/+6
| | | | SDL_TOUCH_MOUSEID for mouse events simulated by touch input.
* Happy New Year!Sam Lantinga2013-02-151-1/+1
|
* Add SDL_CreateSystemCursor for Windows and Linux.Michael Sartain2012-11-191-0/+3
|
* Nobody will EVER use more than 8 buttons. Oh wait... Nobody will EVER use ↵Sam Lantinga2012-11-121-1/+1
| | | | more than 32 buttons...
* Removed executable bit from source filesSam Lantinga2012-09-271-0/+0
|
* Make mouse relative mode save the original co-ordinates to restore themWim Looman2012-02-041-0/+2
| | | | properly.
* Happy New Year!Sam Lantinga2011-12-311-1/+1
|
* SDL 1.3 is now under the zlib license.Sam Lantinga2011-04-081-19/+18
|
* Implemented mouse relative mode on Mac OS X.Sam Lantinga2011-02-271-0/+3
|
* Added a cleaner way to set the default cursor.Sam Lantinga2011-02-271-0/+3
| | | | Added a way to cycle through the default cursor in testcursor.c
* Implemented cursor support and SDL_WarpMouseInWindow() on Mac OS XSam Lantinga2011-02-211-3/+0
|
* Fixed the responder chain for event handling, the listener fully handles ↵Sam Lantinga2011-02-211-0/+39
| | | | | | | | mouse events - even in fullscreen mode. The only reason we need a custom view is to handle right mouse down. Implemented mouse grabbing, although it's kind of clunky right now. I'll be adding a relative mode that will be smoother soon.
* Happy 2011! :)Sam Lantinga2011-02-111-1/+1
|
* Added "mouse" support for the Android touch screenSam Lantinga2011-01-131-1/+1
|
* Cleaned up the mouse window focus handling: you always pass in the relative ↵Sam Lantinga2010-07-051-3/+3
| | | | | | | window when sending a mouse event. Fixed a bug where only mouse wheel up was sent on Mac OS X Fixed a bug where mouse window focus was getting hosed by the fullscreen mouse code on Mac OS X
* Removed multi-mouse / multi-keyboard support in anticipation of a real ↵Sam Lantinga2010-05-091-84/+9
| | | | | | multi-mouse and multi-touch API. Plus, this lets me start implementing cursor support.
* Fixed bug #926Sam Lantinga2010-01-241-1/+1
| | | | Updated copyright to LGPL version 2.1 and year 2010
* Switched from SDL_WindowID and SDL_TextureID to SDL_Window* and SDL_Texture* ↵Sam Lantinga2010-01-211-3/+3
| | | | for code simplicity and improved performance.
* Fixed X11 mouse motion/button events - it's not actually safe to cast mouse ↵Sam Lantinga2009-01-011-7/+2
| | | | | | | events to device events. Fixed building SDL without XInput support Simplified the process of registering a mouse device
* Date: Sun, 07 Dec 2008 13:35:23 +0100Sam Lantinga2008-12-081-0/+1
| | | | | | | | | | | | | | | | From: Couriersud Subject: SDL: Mouse last_x, last_y into SDL_Mouse the attached diff moves the static vars last_x and last_y into SDL_Mouse. These, as far as I understand it, should be tied to the individual mouse. The patch also makes the code check for out of window conditions of mouse->x,y when relative movements are passed to MouseSendMotion. Also attached is the latest DirectFB code (dfb20081208) supporting multiple mice and keyboards. This works quite well with sdlmame now. It however needs more testing with different directfb configurations.
* Updated copyright dateSam Lantinga2008-12-081-1/+1
|