void TextureLayerStandard::unbind() const { if (active()) { Texture_->unbind(LayerIndex_); setupDefault(); } }
ButtonChannel::ButtonChannel(InputAction inputAction) : ActionChannel( inputAction ) { _smoothMode = false; _amplitude = 0.0f; _ascendingVel = 0.0f; _descendingVel = 0.0f; setupDefault(); }
ButtonChannel::ButtonChannel(InputAction inputAction, float ascendingVel, float descendingVel) : ActionChannel( inputAction ) { _inputAction = inputAction; _smoothMode = true; _amplitude = 0.0f; _ascendingVel = ascendingVel; _descendingVel = descendingVel; setupDefault(); }
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"); } }
MouseChannel::MouseChannel(InputAction inputAction) : ActionChannel( inputAction ) { _amplitude = 0.0f; setupDefault(); }