hedgewars/SDLh.pas
changeset 2171 8208946331ba
parent 2152 a2811690da1b
child 2191 20c62f787a4d
equal deleted inserted replaced
2170:aa77f2a6b4f1 2171:8208946331ba
   264 function  SDL_RWFromFile(filename, mode: PChar): PSDL_RWops; cdecl; external SDLLibName;
   264 function  SDL_RWFromFile(filename, mode: PChar): PSDL_RWops; cdecl; external SDLLibName;
   265 function  SDL_SaveBMP_RW(surface: PSDL_Surface; dst: PSDL_RWops; freedst: LongInt): LongInt; cdecl; external SDLLibName;
   265 function  SDL_SaveBMP_RW(surface: PSDL_Surface; dst: PSDL_RWops; freedst: LongInt): LongInt; cdecl; external SDLLibName;
   266 
   266 
   267 {$IFDEF SDL13}
   267 {$IFDEF SDL13}
   268 function  SDL_GetKeyboardState(numkeys: PLongInt): PByteArray; cdecl; external SDLLibName;
   268 function  SDL_GetKeyboardState(numkeys: PLongInt): PByteArray; cdecl; external SDLLibName;
       
   269 function  SDL_GetMouseState(index: LongInt; x, y: PInteger): Byte; cdecl; external SDLLibName;
   269 {$ELSE}
   270 {$ELSE}
   270 function  SDL_GetKeyState(numkeys: PLongInt): PByteArray; cdecl; external SDLLibName;
   271 function  SDL_GetKeyState(numkeys: PLongInt): PByteArray; cdecl; external SDLLibName;
   271 {$ENDIF}
       
   272 function  SDL_GetMouseState(x, y: PInteger): Byte; cdecl; external SDLLibName;
   272 function  SDL_GetMouseState(x, y: PInteger): Byte; cdecl; external SDLLibName;
       
   273 {$ENDIF}
   273 function  SDL_GetKeyName(key: Longword): PChar; cdecl; external SDLLibName;
   274 function  SDL_GetKeyName(key: Longword): PChar; cdecl; external SDLLibName;
   274 procedure SDL_WarpMouse(x, y: Word); cdecl; external SDLLibName;
   275 procedure SDL_WarpMouse(x, y: Word); cdecl; external SDLLibName;
   275 
   276 
   276 function  SDL_PollEvent(event: PSDL_Event): LongInt; cdecl; external SDLLibName;
   277 function  SDL_PollEvent(event: PSDL_Event): LongInt; cdecl; external SDLLibName;
   277 
   278