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

Method GuiDetectDevice

src/components/GuiDetectDevice.cpp:10–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include <sstream>
9
10GuiDetectDevice::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
25bool GuiDetectDevice::input(InputConfig* config, Input input)
26{

Callers

nothing calls this directly

Calls 6

getNumPlayersMethod · 0.80
getInputManagerMethod · 0.80
setPlayerNumMethod · 0.80
setNumPlayersMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected