Index       Keyboard

trap_Key_GetCatcher

Description

In the Q3 source it is used twice - once on level load and in G_Spawn where it is called whenever an entity is created.

Prototype

    int trap_Key_GetCatcher( void );

Parameters

This function has no parameters.

Remarks

Return value

Returns a bitmask representing active key catchers.

Bitmask values are:
To check if CGAME key-catching is active:
    if (trap_Key_GetCatcher() & KEYCATCH_UI) {
        /* happy happy */
    }

See also

trap_Key_SetCatcher

Author(s)

PhaethonH


QuakeIII trap calls reference