void TextureLayerStandard::unbind() const
{
    if (active())
    {
        Texture_->unbind(LayerIndex_);
        setupDefault();
    }
}
Пример #2
0
ButtonChannel::ButtonChannel(InputAction inputAction) : ActionChannel( inputAction )
{
    _smoothMode    = false;
    _amplitude     = 0.0f;
    _ascendingVel  = 0.0f;
    _descendingVel = 0.0f;    
    setupDefault();
}
Пример #3
0
ButtonChannel::ButtonChannel(InputAction inputAction, float ascendingVel, float descendingVel) : ActionChannel( inputAction )
{
    _inputAction   = inputAction;
    _smoothMode    = true;
    _amplitude     = 0.0f;
    _ascendingVel  = ascendingVel;
    _descendingVel = descendingVel;
    setupDefault();
}
Пример #4
0
int main()
{
	setupDefault();

	while(1)
	{
//		if(eepromReadByte(0x03, 0x10))
//		{
//			usartSendString(" Received:");
//			usartSend(i2c_received_byte);
//			blinkDbgLed(DBG_LED1);
//		}
//		else
//		{
//			blinkDbgLed(DBG_LED3);
//			i2cRecover();
//		}
		if(eepromReadPage(0x03))
		{
			uint8_t itr = 0;
			while(itr != 0xff)
			{
				usartSend(eeprom_page[itr]);
				itr++;
			}

			blinkDbgLed(DBG_LED1);
		}
		else
		{
			blinkDbgLed(DBG_LED3);
			i2cRecover();
		}

		usartSendString(" XXXXXX");
	}
}
Пример #5
0
MouseChannel::MouseChannel(InputAction inputAction) : ActionChannel( inputAction )
{
    _amplitude   = 0.0f;
    setupDefault();
}