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