| 242 | } |
| 243 | |
| 244 | InputConfig* InputManager::getInputConfigByPlayer(int player) |
| 245 | { |
| 246 | if(mKeyboardInputConfig->getPlayerNum() == player) |
| 247 | return mKeyboardInputConfig; |
| 248 | |
| 249 | for(int i = 0; i < mNumJoysticks; i++) |
| 250 | { |
| 251 | if(mInputConfigs[i]->getPlayerNum() == player) |
| 252 | return mInputConfigs[i]; |
| 253 | } |
| 254 | |
| 255 | LOG(LogError) << "Could not find input config for player number " << player << "!"; |
| 256 | return NULL; |
| 257 | } |
| 258 | |
| 259 | bool InputManager::parseEvent(const SDL_Event& ev) |
| 260 | { |
no test coverage detected