hedgewars/SDLh.pas
changeset 6693 b6a69c0bc541
parent 6663 2c4151afad0c
child 6700 e04da46ee43c
equal deleted inserted replaced
6692:029c27660dd2 6693:b6a69c0bc541
   305 {$IFDEF SDL13}
   305 {$IFDEF SDL13}
   306     PSDL_Window   = Pointer;
   306     PSDL_Window   = Pointer;
   307     PSDL_Renderer = Pointer;
   307     PSDL_Renderer = Pointer;
   308     PSDL_Texture  = Pointer;
   308     PSDL_Texture  = Pointer;
   309     PSDL_GLContext= Pointer;
   309     PSDL_GLContext= Pointer;
       
   310     TSDL_FingerId = Int64;
       
   311     TSDL_TouchId  = Int64;
   310 {$ENDIF}
   312 {$ENDIF}
   311 
   313 
   312     PSDL_Rect = ^TSDL_Rect;
   314     PSDL_Rect = ^TSDL_Rect;
   313     TSDL_Rect = record
   315     TSDL_Rect = record
   314 {$IFDEF SDL13}
   316 {$IFDEF SDL13}
   470 
   472 
   471     TSDL_TouchFingerEvent = record
   473     TSDL_TouchFingerEvent = record
   472         type_: LongWord;
   474         type_: LongWord;
   473         timestamp: LongWord;
   475         timestamp: LongWord;
   474         windowId: LongWord;
   476         windowId: LongWord;
   475         touchId: Int64;
   477         touchId: TSDL_TouchId;
   476         fingerId: Int64;
   478         fingerId: TSDL_FingerId;
   477         state, padding1, padding2, padding3: Byte;
   479         state, padding1, padding2, padding3: Byte;
   478         x, y: Word;
   480         x, y: Word;
   479         dx, dy: SmallInt;
   481         dx, dy: SmallInt;
   480         pressure: Word;
   482         pressure: Word;
   481         end;
   483         end;
   482 
   484 
   483     TSDL_TouchButtonEvent = record
   485     TSDL_TouchButtonEvent = record
   484         type_: LongWord;
   486         type_: LongWord;
   485         timestamp: LongWord;
   487         timestamp: LongWord;
   486         windowId: LongWord;
   488         windowId: LongWord;
   487         touchId: Int64;
   489         touchId: TSDL_TouchId;
   488         state, button, padding1, padding2: Byte;
   490         state, button, padding1, padding2: Byte;
   489         end;
   491         end;
   490 
   492 
   491     TSDL_MultiGestureEvent = record
   493     TSDL_MultiGestureEvent = record
   492         type_: LongWord;
   494         type_: LongWord;
   493         timestamp: LongWord;
   495         timestamp: LongWord;
   494         windowId: LongWord;
   496         windowId: LongWord;
   495         touchId: Int64;
   497         touchId: TSDL_TouchId;
   496         dTheta, dDist, x, y: Single;
   498         dTheta, dDist, x, y: Single;
   497         numFingers, padding: Word;
   499         numFingers, padding: Word;
   498         end;
   500         end;
   499 
   501 
   500     TSDL_DollarGestureEvent = record
   502     TSDL_DollarGestureEvent = record