src/events/SDL_mouse_c.h
author Sam Lantinga
Wed, 07 Jun 2006 16:10:28 +0000
branchSDL-1.3
changeset 1670 eef792d31de8
child 1671 89f7510fe17a
permissions -rw-r--r--
Work in progress. :)
slouken@1670
     1
/*
slouken@1670
     2
    SDL - Simple DirectMedia Layer
slouken@1670
     3
    Copyright (C) 1997-2006 Sam Lantinga
slouken@1670
     4
slouken@1670
     5
    This library is free software; you can redistribute it and/or
slouken@1670
     6
    modify it under the terms of the GNU Lesser General Public
slouken@1670
     7
    License as published by the Free Software Foundation; either
slouken@1670
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@1670
     9
slouken@1670
    10
    This library is distributed in the hope that it will be useful,
slouken@1670
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@1670
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1670
    13
    Lesser General Public License for more details.
slouken@1670
    14
slouken@1670
    15
    You should have received a copy of the GNU Lesser General Public
slouken@1670
    16
    License along with this library; if not, write to the Free Software
slouken@1670
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@1670
    18
slouken@1670
    19
    Sam Lantinga
slouken@1670
    20
    slouken@libsdl.org
slouken@1670
    21
*/
slouken@1670
    22
#include "SDL_config.h"
slouken@1670
    23
slouken@1670
    24
#ifndef _SDL_mouse_c_h
slouken@1670
    25
#define _SDL_mouse_c_h
slouken@1670
    26
slouken@1670
    27
typedef struct
slouken@1670
    28
{
slouken@1670
    29
    SDL_WindowID focus;
slouken@1670
    30
    int x;
slouken@1670
    31
    int y;
slouken@1670
    32
    int xdelta;
slouken@1670
    33
    int ydelta;
slouken@1670
    34
    Uint8 buttonstate;
slouken@1670
    35
} SDL_Mouse;
slouken@1670
    36
slouken@1670
    37
extern int SDL_MouseInit(void);
slouken@1670
    38
extern int SDL_AddMouse(SDL_WindowID focus, int x, int y, Uint8 buttonstate);
slouken@1670
    39
extern SDL_Mouse *SDL_GetMouse(int index);
slouken@1670
    40
extern int SDL_SendMouseMotion(int index, SDL_WindowID windowID, int relative,
slouken@1670
    41
                               int x, int y);
slouken@1670
    42
extern int SDL_SendMouseButton(int index, SDL_WindowID windowID, Uint8 state,
slouken@1670
    43
                               Uint8 button);
slouken@1670
    44
extern void SDL_MouseQuit(void);
slouken@1670
    45
slouken@1670
    46
#endif /* _SDL_mouse_c_h */
slouken@1670
    47
slouken@1670
    48
/* vi: set ts=4 sw=4 expandtab: */