hedgewars/SDLh.pas
changeset 14808 9443dc6663ba
parent 14199 3c36a4e66c82
child 14831 64f88108926b
equal deleted inserted replaced
14807:b2beb784e4b5 14808:9443dc6663ba
   107     SDL_BUTTON_MIDDLE    = 2;
   107     SDL_BUTTON_MIDDLE    = 2;
   108     SDL_BUTTON_RIGHT     = 3;
   108     SDL_BUTTON_RIGHT     = 3;
   109     SDL_BUTTON_X1        = 4;
   109     SDL_BUTTON_X1        = 4;
   110     SDL_BUTTON_X2        = 5;
   110     SDL_BUTTON_X2        = 5;
   111 
   111 
       
   112     // SDL_ShowCursor consts
       
   113     SDL_QUERY = -1;
       
   114     SDL_DISABLE = 0;
       
   115     SDL_ENABLE = 1;
   112 
   116 
   113     SDL_TEXTEDITINGEVENT_TEXT_SIZE = 32;
   117     SDL_TEXTEDITINGEVENT_TEXT_SIZE = 32;
   114     SDL_TEXTINPUTEVENT_TEXT_SIZE   = 32;
   118     SDL_TEXTINPUTEVENT_TEXT_SIZE   = 32;
   115 
   119 
   116     // SDL_Event types
   120     // SDL_Event types
   552     TSDL_TouchId  = Int64;
   556     TSDL_TouchId  = Int64;
   553     TSDL_FingerId = Int64;
   557     TSDL_FingerId = Int64;
   554     TSDL_Keycode = LongInt;
   558     TSDL_Keycode = LongInt;
   555     TSDL_Scancode = LongInt;
   559     TSDL_Scancode = LongInt;
   556     TSDL_JoystickID = LongInt;
   560     TSDL_JoystickID = LongInt;
       
   561     TSDL_bool = LongInt;
   557 
   562 
   558     TSDL_eventaction = (SDL_ADDEVENT, SDL_PEEPEVENT, SDL_GETEVENT);
   563     TSDL_eventaction = (SDL_ADDEVENT, SDL_PEEPEVENT, SDL_GETEVENT);
   559 
   564 
   560     PSDL_Rect = ^TSDL_Rect;
   565     PSDL_Rect = ^TSDL_Rect;
   561     TSDL_Rect = record
   566     TSDL_Rect = record
  1105 function  SDL_RenderClear(renderer: PSDL_Renderer): LongInt; cdecl; external SDLLibName;
  1110 function  SDL_RenderClear(renderer: PSDL_Renderer): LongInt; cdecl; external SDLLibName;
  1106 procedure SDL_RenderPresent(renderer: PSDL_Renderer); cdecl; external SDLLibName;
  1111 procedure SDL_RenderPresent(renderer: PSDL_Renderer); cdecl; external SDLLibName;
  1107 function  SDL_RenderReadPixels(renderer: PSDL_Renderer; rect: PSDL_Rect; format: LongInt; pixels: Pointer; pitch: LongInt): LongInt; cdecl; external SDLLibName;
  1112 function  SDL_RenderReadPixels(renderer: PSDL_Renderer; rect: PSDL_Rect; format: LongInt; pixels: Pointer; pitch: LongInt): LongInt; cdecl; external SDLLibName;
  1108 function  SDL_RenderSetViewport(window: PSDL_Window; rect: PSDL_Rect): LongInt; cdecl; external SDLLibName;
  1113 function  SDL_RenderSetViewport(window: PSDL_Window; rect: PSDL_Rect): LongInt; cdecl; external SDLLibName;
  1109 
  1114 
       
  1115 function  SDL_SetRelativeMouseMode(enabled: TSDL_bool): LongInt; cdecl; external SDLLibName;
  1110 function  SDL_GetRelativeMouseState(x, y: PLongInt): Byte; cdecl; external SDLLibName;
  1116 function  SDL_GetRelativeMouseState(x, y: PLongInt): Byte; cdecl; external SDLLibName;
  1111 function  SDL_PixelFormatEnumToMasks(format: TSDL_ArrayByteOrder; bpp: PLongInt; Rmask, Gmask, Bmask, Amask: PLongInt): Boolean; cdecl; external SDLLibName;
  1117 function  SDL_PixelFormatEnumToMasks(format: TSDL_ArrayByteOrder; bpp: PLongInt; Rmask, Gmask, Bmask, Amask: PLongInt): Boolean; cdecl; external SDLLibName;
  1112 
  1118 
  1113 procedure SDL_WarpMouseInWindow(window: PSDL_Window; x, y: LongInt); cdecl; external SDLLibName;
  1119 procedure SDL_WarpMouseInWindow(window: PSDL_Window; x, y: LongInt); cdecl; external SDLLibName;
  1114 function  SDL_SetHint(name, value: PChar): Boolean; cdecl; external SDLLibName;
  1120 function  SDL_SetHint(name, value: PChar): Boolean; cdecl; external SDLLibName;