annotate src/events/SDL_mouse_c.h @ 1670:eef792d31de8 SDL-1.3

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