Com EventLoop

From ioquake3 wiki

Jump to: navigation, search

Com_EventLoop() repeatedly retrieves a Template:TypeDoc via === (unix link and Windows link) in an infinite loop. For each event returned, it invokes this pseudo-switch statement, based on the type of the event:

switch(event.evType) {
    case SE_NONE:
        return;
    case SE_KEY:
        =;
    case SE_CHAR:
        =;
    case SE_MOUSE:
        =;
    case SE_JOYSTICK_AXIS:
        =;
    case SE_CONSOLE:
        Cbuf_AddText(event.evPtr+"\n");
    case SE_PACKET:
        if(Template:CvarDoc) {
            =;
        } else {
            =;
        }
}
Personal tools