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

Method getButtonCountByDevice

src/InputManager.cpp:225–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223
224int InputManager::getNumJoysticks() { return mNumJoysticks; }
225int InputManager::getButtonCountByDevice(int id)
226{
227 if(id == DEVICE_KEYBOARD)
228 return 120; //it's a lot, okay.
229 else
230 return SDL_JoystickNumButtons(mJoysticks[id]);
231}
232
233int InputManager::getNumPlayers() { return mNumPlayers; }
234void InputManager::setNumPlayers(int num) { mNumPlayers = num; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected