ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


cursor_library

This is an old revision of the document!


Cursor library

The ACSUtils cursor library allows mods to easily add mouse cursor support.

Basic usage

script "Menu" (void) CLIENTSIDE
{
    while (true)
    {
        UpdateCursor();
        // Draw cursor at CursorX(), CursorY()
        Delay(1);
    }
}

UpdateCursor reads player input and moves the cursor. CursorX and CursorY return the current position of the cursor on the screen in HUD coordinate system.

cursor_library.1500056239.txt.gz · Last modified: 2017/07/14 21:17 by korshun