X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fstub%2Fg_system.pas;h=6202cb43dc1c95636fd242e62da2ea71c6feb0bb;hb=83221a8d1b958465bd68e3c79575f4a94c8ffa42;hp=4e4f42377e3da2e59abb09b1967ce97add6ad01f;hpb=d0936017ccb8a078d1b03f55478af284bb015bbc;p=d2df-sdl.git diff --git a/src/game/stub/g_system.pas b/src/game/stub/g_system.pas index 4e4f423..6202cb4 100644 --- a/src/game/stub/g_system.pas +++ b/src/game/stub/g_system.pas @@ -19,10 +19,6 @@ interface uses Utils; - (* --- Utils --- *) - function sys_GetTicks (): Int64; - procedure sys_Delay (ms: Integer); - (* --- Graphics --- *) function sys_GetDisplayModes (bpp: Integer): SSArray; function sys_SetDisplayMode (w, h, bpp: Integer; fullscreen, maximized: Boolean): Boolean; @@ -33,29 +29,23 @@ interface function sys_HandleInput (): Boolean; procedure sys_RequestQuit; +{$IFDEF ENABLE_TOUCH} + function sys_IsTextInputActive (): Boolean; + procedure sys_ShowKeyboard (yes: Boolean); +{$ENDIF} + (* --- Init --- *) procedure sys_Init; procedure sys_Final; var (* hooks *) sys_CharPress: procedure (ch: AnsiChar) = nil; + sys_ScreenResize: procedure (w, h: Integer) = nil; implementation uses SysUtils; - (* --------- Utils --------- *) - - function sys_GetTicks (): Int64; - begin - Result := Round(TimeStampToMSecs(DateTimeToTimeStamp(Now()))) - end; - - procedure sys_Delay (ms: Integer); - begin - Sleep(ms) - end; - (* --------- Graphics --------- *) procedure sys_Repaint; @@ -78,6 +68,17 @@ implementation (* --------- Input --------- *) +{$IFDEF ENABLE_TOUCH} + function sys_IsTextInputActive (): Boolean; + begin + Result := false + end; + + procedure sys_ShowKeyboard (yes: Boolean); + begin + end; +{$ENDIF} + function sys_HandleInput (): Boolean; begin result := false