| 8 | #include <sstream> |
| 9 | |
| 10 | GuiDetectDevice::GuiDetectDevice(Window* window) : GuiComponent(window) |
| 11 | { |
| 12 | //clear any player information from the InputManager |
| 13 | for(int i = 0; i < mWindow->getInputManager()->getNumPlayers(); i++) |
| 14 | { |
| 15 | InputConfig* cfg = mWindow->getInputManager()->getInputConfigByPlayer(i); |
| 16 | cfg->setPlayerNum(-1); |
| 17 | cfg->clear(); |
| 18 | } |
| 19 | mWindow->getInputManager()->setNumPlayers(0); |
| 20 | |
| 21 | mCurrentPlayer = 0; |
| 22 | mHoldingFinish = false; |
| 23 | } |
| 24 | |
| 25 | bool GuiDetectDevice::input(InputConfig* config, Input input) |
| 26 | { |
nothing calls this directly
no test coverage detected