src/events/SDL_mouse_c.h
author Andreas Schiffler <aschiffler@ferzkopp.net>
Mon, 23 Aug 2010 23:44:28 -0700
changeset 4865 fff50e86c891
parent 4484 9322f7db8603
child 5001 77df56570442
permissions -rw-r--r--
Update VS2010 project to add new files; update new files so code builds on Win32/Win64
     1 /*
     2     SDL - Simple DirectMedia Layer
     3     Copyright (C) 1997-2010 Sam Lantinga
     4 
     5     This library is free software; you can redistribute it and/or
     6     modify it under the terms of the GNU Lesser General Public
     7     License as published by the Free Software Foundation; either
     8     version 2.1 of the License, or (at your option) any later version.
     9 
    10     This library is distributed in the hope that it will be useful,
    11     but WITHOUT ANY WARRANTY; without even the implied warranty of
    12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    13     Lesser General Public License for more details.
    14 
    15     You should have received a copy of the GNU Lesser General Public
    16     License along with this library; if not, write to the Free Software
    17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    18 
    19     Sam Lantinga
    20     slouken@libsdl.org
    21 */
    22 #include "SDL_config.h"
    23 
    24 #ifndef _SDL_mouse_c_h
    25 #define _SDL_mouse_c_h
    26 
    27 struct SDL_Cursor
    28 {
    29     SDL_Cursor *next;
    30     void *driverdata;
    31 };
    32 
    33 /* Initialize the mouse subsystem */
    34 extern int SDL_MouseInit(void);
    35 
    36 /* Clear the mouse state */
    37 extern void SDL_ResetMouse(void);
    38 
    39 /* Set the mouse focus window */
    40 extern void SDL_SetMouseFocus(SDL_Window * window);
    41 
    42 /* Send a mouse motion event */
    43 extern int SDL_SendMouseMotion(SDL_Window * window, int relative, int x, int y);
    44 
    45 /* Send a mouse button event */
    46 extern int SDL_SendMouseButton(SDL_Window * window, Uint8 state, Uint8 button);
    47 
    48 /* Send a mouse wheel event */
    49 extern int SDL_SendMouseWheel(SDL_Window * window, int x, int y);
    50 
    51 /* Shutdown the mouse subsystem */
    52 extern void SDL_MouseQuit(void);
    53 
    54 #endif /* _SDL_mouse_c_h */
    55 
    56 /* vi: set ts=4 sw=4 expandtab: */