| 57 | } |
| 58 | |
| 59 | void DemoKeeper::notifyButtonPress(ControllerType _type, bool _complite) |
| 60 | { |
| 61 | if (_complite) |
| 62 | { |
| 63 | mIsAnim = false; |
| 64 | return; |
| 65 | } |
| 66 | |
| 67 | if (mType == _type || mIsAnim) |
| 68 | return; |
| 69 | mIsAnim = true; |
| 70 | |
| 71 | if (mType == ControllerType::Inertional) |
| 72 | mMenu1->setVisible(false); |
| 73 | else if (mType == ControllerType::Accelerated) |
| 74 | mMenu2->setVisible(false); |
| 75 | else if (mType == ControllerType::Slowed) |
| 76 | mMenu3->setVisible(false); |
| 77 | else if (mType == ControllerType::Jump) |
| 78 | mMenu4->setVisible(false); |
| 79 | |
| 80 | mType = _type; |
| 81 | |
| 82 | if (mType == ControllerType::Inertional) |
| 83 | mMenu1->setVisible(true); |
| 84 | else if (mType == ControllerType::Accelerated) |
| 85 | mMenu2->setVisible(true); |
| 86 | else if (mType == ControllerType::Slowed) |
| 87 | mMenu3->setVisible(true); |
| 88 | else if (mType == ControllerType::Jump) |
| 89 | mMenu4->setVisible(true); |
| 90 | } |
| 91 | |
| 92 | } // namespace demo |
| 93 |
nothing calls this directly
no test coverage detected