225 SDL_NOEVENT: (type_: byte); |
241 SDL_NOEVENT: (type_: byte); |
226 SDL_ACTIVEEVENT: (active: TSDL_ActiveEvent); |
242 SDL_ACTIVEEVENT: (active: TSDL_ActiveEvent); |
227 SDL_KEYDOWN, SDL_KEYUP: (key: TSDL_KeyboardEvent); |
243 SDL_KEYDOWN, SDL_KEYUP: (key: TSDL_KeyboardEvent); |
228 SDL_QUITEV: (quit: TSDL_QuitEvent); |
244 SDL_QUITEV: (quit: TSDL_QuitEvent); |
229 SDL_VIDEORESIZE: (resize: TSDL_ResizeEvent); |
245 SDL_VIDEORESIZE: (resize: TSDL_ResizeEvent); |
230 end; |
246 {$IFDEF SDL13} |
|
247 SDL_MOUSEMOTION: (motion: TSDL_MouseMotionEvent); |
|
248 {$ENDIF} |
|
249 end; |
231 |
250 |
232 PByteArray = ^TByteArray; |
251 PByteArray = ^TByteArray; |
233 TByteArray = array[0..65535] of Byte; |
252 TByteArray = array[0..65535] of Byte; |
234 PLongWordArray = ^TLongWordArray; |
253 PLongWordArray = ^TLongWordArray; |
235 TLongWordArray = array[0..16383] of LongWord; |
254 TLongWordArray = array[0..16383] of LongWord; |
272 function SDL_RWFromFile(filename, mode: PChar): PSDL_RWops; cdecl; external SDLLibName; |
291 function SDL_RWFromFile(filename, mode: PChar): PSDL_RWops; cdecl; external SDLLibName; |
273 function SDL_SaveBMP_RW(surface: PSDL_Surface; dst: PSDL_RWops; freedst: LongInt): LongInt; cdecl; external SDLLibName; |
292 function SDL_SaveBMP_RW(surface: PSDL_Surface; dst: PSDL_RWops; freedst: LongInt): LongInt; cdecl; external SDLLibName; |
274 |
293 |
275 {$IFDEF SDL13} |
294 {$IFDEF SDL13} |
276 function SDL_GetKeyboardState(numkeys: PLongInt): PByteArray; cdecl; external SDLLibName; |
295 function SDL_GetKeyboardState(numkeys: PLongInt): PByteArray; cdecl; external SDLLibName; |
277 function SDL_GetMouseState(index: LongInt; x, y: PInteger): Byte; cdecl; external SDLLibName; |
296 function SDL_GetMouseState(index: LongInt; x, y: PLongInt): Byte; cdecl; external SDLLibName; |
|
297 function SDL_SelectMouse(index: LongInt): LongInt; cdecl; external SDLLibName; |
|
298 function SDL_GetRelativeMouseState(index: LongInt; x, y: PLongInt): Byte; cdecl; external SDLLibName; |
|
299 function SDL_GetNumMice : LongInt; cdecl; external SDLLibName; |
278 {$ELSE} |
300 {$ELSE} |
279 function SDL_GetKeyState(numkeys: PLongInt): PByteArray; cdecl; external SDLLibName; |
301 function SDL_GetKeyState(numkeys: PLongInt): PByteArray; cdecl; external SDLLibName; |
280 function SDL_GetMouseState(x, y: PInteger): Byte; cdecl; external SDLLibName; |
302 function SDL_GetMouseState(x, y: PLongInt): Byte; cdecl; external SDLLibName; |
281 {$ENDIF} |
303 {$ENDIF} |
282 function SDL_GetKeyName(key: Longword): PChar; cdecl; external SDLLibName; |
304 function SDL_GetKeyName(key: Longword): PChar; cdecl; external SDLLibName; |
283 procedure SDL_WarpMouse(x, y: Word); cdecl; external SDLLibName; |
305 procedure SDL_WarpMouse(x, y: Word); cdecl; external SDLLibName; |
284 |
306 |
285 function SDL_PollEvent(event: PSDL_Event): LongInt; cdecl; external SDLLibName; |
307 function SDL_PollEvent(event: PSDL_Event): LongInt; cdecl; external SDLLibName; |