This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
functions:updatecursor [2017/06/13 17:10] – created korshun | functions:updatecursor [2017/06/13 17:15] (current) – korshun | ||
---|---|---|---|
Line 11: | Line 11: | ||
* '' | * '' | ||
+ | This function needs to be called in a loop. To minimize input lag, the following sequence needs to be followed: | ||
+ | |||
+ | - '' | ||
+ | - handle player input | ||
+ | - redraw cursor | ||
+ | - '' | ||
+ | |||
+ | ===== Examples ===== | ||
+ | < | ||
+ | while (true) | ||
+ | { | ||
+ | UpdateCursor(); | ||
+ | DrawCursor(CursorX(), | ||
+ | Delay(1); | ||
+ | } | ||
+ | </ |