MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / joyNumButtons

Method joyNumButtons

Sources/nCine/Backends/SdlInputManager.cpp:365–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363 }
364
365 int SdlInputManager::joyNumButtons(int joyId) const
366 {
367 int numButtons = -1;
368
369 if (isJoyPresent(joyId))
370 numButtons = SDL_JoystickNumButtons(sdlJoysticks_[joyId]);
371
372 return numButtons;
373 }
374
375 int SdlInputManager::joyNumHats(int joyId) const
376 {

Callers 2

guiInputStateMethod · 0.45
OnDrawMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected