MCPcopy Create free account
hub / github.com/Aloshi/EmulationStation / getInputConfigByPlayer

Method getInputConfigByPlayer

src/InputManager.cpp:244–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244InputConfig* 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
259bool InputManager::parseEvent(const SDL_Event& ev)
260{

Callers 3

GuiDetectDeviceMethod · 0.80
doneMethod · 0.80
inputMethod · 0.80

Calls 1

getPlayerNumMethod · 0.80

Tested by

no test coverage detected