void IN_Frame(void)
{
    static int prev_state = -1;
    static int state = -1;
    processMotionEvents();
    processTrackballEvents();

    state = ((clc.state == CA_ACTIVE) && (Key_GetCatcher() == 0)) << 1;

    if (state != prev_state)
    {
        setState(state);
        prev_state = state;
    }
}
Пример #2
0
void IN_Frame(void)
{
    static int prev_state = -1;
    int state = -1;
    processMotionEvents();
    processTrackballEvents();

    /* We are in game and neither console/ui is active */
    if (cls.state == CA_ACTIVE && Key_GetCatcher() == 0)
        state = 1;
    else
        state = 0;

    if (state != prev_state)
    {
        setMenuState(state);
        prev_state = state;
    }
}