| 12 | } |
| 13 | |
| 14 | bool SwitchComponent::input(InputConfig* config, Input input) |
| 15 | { |
| 16 | if(config->isMappedTo("a", input) && input.value) |
| 17 | { |
| 18 | mState = !mState; |
| 19 | return true; |
| 20 | } |
| 21 | |
| 22 | return false; |
| 23 | } |
| 24 | |
| 25 | void SwitchComponent::render(const Eigen::Affine3f& parentTrans) |
| 26 | { |
nothing calls this directly
no test coverage detected