Mercurial > sdl-ios-xcode
annotate touchTest/Iphone Test/touchTestIPhone2/touchTestIPhone/include/SDL_syswm.h @ 4691:73f5c530afac
Fixed hgIgnore to ignore test/gesturetest
author | Jim Grandpre <jim.tla@gmail.com> |
---|---|
date | Thu, 19 Aug 2010 13:49:11 -0400 |
parents | 31607094315c |
children |
rev | line source |
---|---|
4677
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
1 /* |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
2 SDL - Simple DirectMedia Layer |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
3 Copyright (C) 1997-2010 Sam Lantinga |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
4 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
5 This library is free software; you can redistribute it and/or |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
6 modify it under the terms of the GNU Lesser General Public |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
7 License as published by the Free Software Foundation; either |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
8 version 2.1 of the License, or (at your option) any later version. |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
9 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
10 This library is distributed in the hope that it will be useful, |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
13 Lesser General Public License for more details. |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
14 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
15 You should have received a copy of the GNU Lesser General Public |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
16 License along with this library; if not, write to the Free Software |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
18 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
19 Sam Lantinga |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
20 slouken@libsdl.org |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
21 */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
22 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
23 /** |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
24 * \file SDL_syswm.h |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
25 * |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
26 * Include file for SDL custom system window manager hooks. |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
27 */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
28 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
29 #ifndef _SDL_syswm_h |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
30 #define _SDL_syswm_h |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
31 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
32 #include "SDL_stdinc.h" |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
33 #include "SDL_error.h" |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
34 #include "SDL_video.h" |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
35 #include "SDL_version.h" |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
36 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
37 #include "begin_code.h" |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
38 /* Set up for C function definitions, even when using C++ */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
39 #ifdef __cplusplus |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
40 /* *INDENT-OFF* */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
41 extern "C" { |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
42 /* *INDENT-ON* */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
43 #endif |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
44 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
45 /** |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
46 * \file SDL_syswm.h |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
47 * |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
48 * Your application has access to a special type of event ::SDL_SYSWMEVENT, |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
49 * which contains window-manager specific information and arrives whenever |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
50 * an unhandled window event occurs. This event is ignored by default, but |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
51 * you can enable it with SDL_EventState(). |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
52 */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
53 #ifdef SDL_PROTOTYPES_ONLY |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
54 struct SDL_SysWMinfo; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
55 #else |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
56 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
57 /* This is the structure for custom window manager events */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
58 #if defined(SDL_VIDEO_DRIVER_X11) |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
59 #if defined(__APPLE__) && defined(__MACH__) |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
60 /* conflicts with Quickdraw.h */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
61 #define Cursor X11Cursor |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
62 #endif |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
63 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
64 #include <X11/Xlib.h> |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
65 #include <X11/Xatom.h> |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
66 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
67 #if defined(__APPLE__) && defined(__MACH__) |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
68 /* matches the re-define above */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
69 #undef Cursor |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
70 #endif |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
71 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
72 /** |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
73 * These are the various supported subsystems under UNIX. |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
74 */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
75 typedef enum |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
76 { |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
77 SDL_SYSWM_X11 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
78 } SDL_SYSWM_TYPE; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
79 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
80 /** |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
81 * The UNIX custom event structure. |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
82 */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
83 struct SDL_SysWMmsg |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
84 { |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
85 SDL_version version; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
86 SDL_SYSWM_TYPE subsystem; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
87 union |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
88 { |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
89 XEvent xevent; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
90 } event; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
91 }; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
92 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
93 /** |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
94 * The UNIX custom window manager information structure. |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
95 * |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
96 * When this structure is returned, it holds information about which |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
97 * low level system it is using, and will be one of SDL_SYSWM_TYPE. |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
98 */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
99 struct SDL_SysWMinfo |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
100 { |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
101 SDL_version version; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
102 SDL_SYSWM_TYPE subsystem; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
103 union |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
104 { |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
105 struct |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
106 { |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
107 Display *display; /**< The X11 display */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
108 Window window; /**< The X11 display window */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
109 } x11; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
110 } info; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
111 }; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
112 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
113 #elif defined(SDL_VIDEO_DRIVER_WIN32) |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
114 #define WIN32_LEAN_AND_MEAN |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
115 #include <windows.h> |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
116 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
117 /** |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
118 * The windows custom event structure. |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
119 */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
120 struct SDL_SysWMmsg |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
121 { |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
122 SDL_version version; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
123 HWND hwnd; /**< The window for the message */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
124 UINT msg; /**< The type of message */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
125 WPARAM wParam; /**< WORD message parameter */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
126 LPARAM lParam; /**< LONG message parameter */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
127 }; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
128 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
129 /** |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
130 * The windows custom window manager information structure. |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
131 */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
132 struct SDL_SysWMinfo |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
133 { |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
134 SDL_version version; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
135 HWND window; /**< The Win32 display window */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
136 }; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
137 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
138 #elif defined(SDL_VIDEO_DRIVER_RISCOS) |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
139 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
140 /** |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
141 * RISC OS custom event structure. |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
142 */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
143 struct SDL_SysWMmsg |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
144 { |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
145 SDL_version version; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
146 int eventCode; /**< The window for the message */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
147 int pollBlock[64]; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
148 }; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
149 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
150 /** |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
151 * The RISC OS custom window manager information structure. |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
152 */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
153 struct SDL_SysWMinfo |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
154 { |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
155 SDL_version version; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
156 int wimpVersion; /**< Wimp version running under */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
157 int taskHandle; /**< The RISC OS task handle */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
158 int window; /**< The RISC OS display window */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
159 }; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
160 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
161 #elif defined(SDL_VIDEO_DRIVER_PHOTON) || defined(SDL_VIDEO_DRIVER_QNXGF) |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
162 #include <sys/neutrino.h> |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
163 #if defined(SDL_VIDEO_OPENGL_ES) |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
164 #include <gf/gf.h> |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
165 #endif /* SDL_VIDEO_OPENGL_ES */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
166 #include <Ph.h> |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
167 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
168 /** |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
169 * The QNX custom event structure. |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
170 */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
171 struct SDL_SysWMmsg |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
172 { |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
173 SDL_version version; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
174 int data; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
175 }; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
176 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
177 /** |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
178 * The QNX Photon custom window manager information structure. |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
179 */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
180 struct SDL_SysWMinfo |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
181 { |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
182 SDL_version version; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
183 int data; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
184 }; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
185 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
186 #else |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
187 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
188 /** |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
189 * The generic custom event structure. |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
190 */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
191 struct SDL_SysWMmsg |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
192 { |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
193 SDL_version version; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
194 int data; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
195 }; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
196 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
197 /** |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
198 * The generic custom window manager information structure. |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
199 */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
200 struct SDL_SysWMinfo |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
201 { |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
202 SDL_version version; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
203 int data; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
204 }; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
205 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
206 #endif /* video driver type */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
207 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
208 #endif /* SDL_PROTOTYPES_ONLY */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
209 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
210 typedef struct SDL_SysWMinfo SDL_SysWMinfo; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
211 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
212 /* Function prototypes */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
213 /** |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
214 * \brief This function allows access to driver-dependent window information. |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
215 * |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
216 * \param windowID The window about which information is being requested |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
217 * \param info This structure must be initialized with the SDL version, and is |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
218 * then filled in with information about the given window. |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
219 * |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
220 * \return SDL_TRUE if the function is implemented and the version member of |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
221 * the \c info struct is valid, SDL_FALSE otherwise. |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
222 * |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
223 * You typically use this function like this: |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
224 * \code |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
225 * SDL_SysWMInfo info; |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
226 * SDL_VERSION(&info.version); |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
227 * if ( SDL_GetWindowWMInfo(&info) ) { ... } |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
228 * \endcode |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
229 */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
230 extern DECLSPEC SDL_bool SDLCALL SDL_GetWindowWMInfo(SDL_Window * window, |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
231 SDL_SysWMinfo * info); |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
232 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
233 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
234 /* Ends C function definitions when using C++ */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
235 #ifdef __cplusplus |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
236 /* *INDENT-OFF* */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
237 } |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
238 /* *INDENT-ON* */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
239 #endif |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
240 #include "close_code.h" |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
241 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
242 #endif /* _SDL_syswm_h */ |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
243 |
31607094315c
Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff
changeset
|
244 /* vi: set ts=4 sw=4 expandtab: */ |