예제 #1
0
InputFilter::InputFilter()
{
	queuemutex = new RageMutex("InputFilter");

	Reset();
	ResetRepeatRate();
}
예제 #2
0
InputFilter::InputFilter()
{
	queuemutex = new RageMutex("InputFilter");
	memset( m_ButtonState, 0, sizeof(m_ButtonState) );

	Reset();
	ResetRepeatRate();
}
예제 #3
0
InputFilter::InputFilter()
{
    queuemutex = new RageMutex("InputFilter");

    Reset();
    ResetRepeatRate();

    m_MouseCoords.fX = 0;
    m_MouseCoords.fY = 0;
    m_MouseCoords.fZ = 0;

    // Register with Lua.
    {
        Lua *L = LUA->Get();
        lua_pushstring( L, "INPUTFILTER" );
        this->PushSelf( L );
        lua_settable( L, LUA_GLOBALSINDEX );
        LUA->Release( L );
    }
}