hedgewars/SDLh.pas
branchhedgeroid
changeset 6338 633af6fec34f
parent 6336 cf4c65f9cbbe
child 6341 ccc0a58e123d
equal deleted inserted replaced
6336:cf4c65f9cbbe 6338:633af6fec34f
   863 procedure SDL_WarpMouseInWindow(window: PSDL_Window; x, y: LongInt); cdecl; external SDLLibName;
   863 procedure SDL_WarpMouseInWindow(window: PSDL_Window; x, y: LongInt); cdecl; external SDLLibName;
   864 function  SDL_SetHint(name, value: PChar): Boolean; cdecl; external SDLLibName;
   864 function  SDL_SetHint(name, value: PChar): Boolean; cdecl; external SDLLibName;
   865 procedure SDL_StartTextInput; cdecl; external SDLLibName;
   865 procedure SDL_StartTextInput; cdecl; external SDLLibName;
   866 
   866 
   867 function  SDL_PeepEvents(event: PSDL_Event; numevents: LongInt; action: SDL_eventaction; minType, maxType: LongWord): LongInt; cdecl; external SDLLibName;
   867 function  SDL_PeepEvents(event: PSDL_Event; numevents: LongInt; action: SDL_eventaction; minType, maxType: LongWord): LongInt; cdecl; external SDLLibName;
   868 {$ELSE}
   868 function  SDL_CreateThread(fn: pointer; name: PChar; data: pointer): PSDL_Thread; cdecl; external SDLLibName;
       
   869 {$ELSE}
       
   870 function  SDL_CreateThread(fn: pointer; data: pointer): PSDL_Thread; cdecl; external SDLLibName;
   869 function  SDL_PeepEvents(event: PSDL_Event; numevents: LongInt; action: SDL_eventaction; mask: LongWord): LongInt; cdecl; external SDLLibName;
   871 function  SDL_PeepEvents(event: PSDL_Event; numevents: LongInt; action: SDL_eventaction; mask: LongWord): LongInt; cdecl; external SDLLibName;
   870 {$ENDIF}
   872 {$ENDIF}
   871 
   873 
   872 function  SDL_GetMouseState(x, y: PLongInt): Byte; cdecl; external SDLLibName;
   874 function  SDL_GetMouseState(x, y: PLongInt): Byte; cdecl; external SDLLibName;
   873 function  SDL_GetKeyName(key: LongWord): PChar; cdecl; external SDLLibName;
   875 function  SDL_GetKeyName(key: LongWord): PChar; cdecl; external SDLLibName;
   881 
   883 
   882 procedure SDL_WM_SetIcon(icon: PSDL_Surface; mask : Byte); cdecl; external SDLLibName;
   884 procedure SDL_WM_SetIcon(icon: PSDL_Surface; mask : Byte); cdecl; external SDLLibName;
   883 procedure SDL_WM_SetCaption(title: PChar; icon: PChar); cdecl; external SDLLibName;
   885 procedure SDL_WM_SetCaption(title: PChar; icon: PChar); cdecl; external SDLLibName;
   884 function  SDL_WM_ToggleFullScreen(surface: PSDL_Surface): LongInt; cdecl; external SDLLibName;
   886 function  SDL_WM_ToggleFullScreen(surface: PSDL_Surface): LongInt; cdecl; external SDLLibName;
   885 
   887 
   886 function  SDL_CreateThread(fn: pointer; name: PChar; data: pointer): PSDL_Thread; cdecl; external SDLLibName;
       
   887 procedure SDL_WaitThread(thread: PSDL_Thread; status: PLongInt); cdecl; external SDLLibName;
   888 procedure SDL_WaitThread(thread: PSDL_Thread; status: PLongInt); cdecl; external SDLLibName;
   888 function  SDL_CreateMutex: PSDL_mutex; cdecl; external SDLLibName;
   889 function  SDL_CreateMutex: PSDL_mutex; cdecl; external SDLLibName;
   889 procedure SDL_DestroyMutex(mutex: PSDL_mutex); cdecl; external SDLLibName;
   890 procedure SDL_DestroyMutex(mutex: PSDL_mutex); cdecl; external SDLLibName;
   890 function  SDL_LockMutex(mutex: PSDL_mutex): LongInt; cdecl; external SDLLibName name 'SDL_mutexP';
   891 function  SDL_LockMutex(mutex: PSDL_mutex): LongInt; cdecl; external SDLLibName name 'SDL_mutexP';
   891 function  SDL_UnlockMutex(mutex: PSDL_mutex): LongInt; cdecl; external SDLLibName name 'SDL_mutexV';
   892 function  SDL_UnlockMutex(mutex: PSDL_mutex): LongInt; cdecl; external SDLLibName name 'SDL_mutexV';