hedgewars/SDLh.pas
changeset 2590 e7e87e3c67db
parent 2586 204e6b2885bc
child 2591 c6597b65caea
equal deleted inserted replaced
2589:4329597c85c8 2590:e7e87e3c67db
   102 	SDL_VIDEORESIZE = 16; // TODO: outdated? no longer in SDL 1.3?
   102 	SDL_VIDEORESIZE = 16; // TODO: outdated? no longer in SDL 1.3?
   103 
   103 
   104 {$IFDEF SDL13}
   104 {$IFDEF SDL13}
   105         SDL_WINDOWEVENT = 1;
   105         SDL_WINDOWEVENT = 1;
   106         SDL_TEXTINPUT = 4;
   106         SDL_TEXTINPUT = 4;
   107 	SDL_MOUSEMOTION  = 5;
   107         SDL_TEXTEDITING = 5;
   108         SDL_MOUSEBUTTONDOWN = 6;
   108 	SDL_MOUSEMOTION  = 6;
   109 	SDL_MOUSEBUTTONUP   = 7;
   109         SDL_MOUSEBUTTONDOWN = 7;
   110         SDL_MOUSEWHEEL = 8;  //different handling, should create SDL_MouseWheelEvent type
   110 	SDL_MOUSEBUTTONUP   = 8;
       
   111         SDL_MOUSEWHEEL = 9;  //different handling, should create SDL_MouseWheelEvent type
   111 	SDL_JOYAXIS = 10;
   112 	SDL_JOYAXIS = 10;
   112 	SDL_JOYHAT = 12;
   113 	SDL_JOYHAT = 12;
   113 	SDL_JOYBUTTONDOWN = 13;
   114 	SDL_JOYBUTTONDOWN = 13;
   114 	SDL_JOYBUTTONUP = 14;
   115 	SDL_JOYBUTTONUP = 14;
   115 	SDL_QUITEV = 15;
   116 	SDL_QUITEV = 15;
   424 function  SDL_GetKeyName(key: Longword): PChar; cdecl; external SDLLibName;
   425 function  SDL_GetKeyName(key: Longword): PChar; cdecl; external SDLLibName;
   425 procedure SDL_WarpMouse(x, y: Word); cdecl; external SDLLibName;
   426 procedure SDL_WarpMouse(x, y: Word); cdecl; external SDLLibName;
   426 
   427 
   427 procedure SDL_PumpEvents; cdecl; external SDLLibName;
   428 procedure SDL_PumpEvents; cdecl; external SDLLibName;
   428 function  SDL_PollEvent(event: PSDL_Event): LongInt; cdecl; external SDLLibName;
   429 function  SDL_PollEvent(event: PSDL_Event): LongInt; cdecl; external SDLLibName;
       
   430 function  SDL_WaitEvent(event: PSDL_Event): LongInt; cdecl; external SDLLibName;
   429 
   431 
   430 function  SDL_ShowCursor(toggle: LongInt): LongInt; cdecl; external SDLLibName;
   432 function  SDL_ShowCursor(toggle: LongInt): LongInt; cdecl; external SDLLibName;
   431 
   433 
   432 procedure SDL_WM_SetCaption(title: PChar; icon: PChar); cdecl; external SDLLibName;
   434 procedure SDL_WM_SetCaption(title: PChar; icon: PChar); cdecl; external SDLLibName;
   433 
   435