MCPcopy Create free account
hub / github.com/SFML/imgui-sfml / SetJoystickMapping

Function SetJoystickMapping

imgui-SFML.cpp:703–710  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

701}
702
703void SetJoystickMapping(int key, unsigned int joystickButton)
704{
705 assert(s_currWindowCtx);
706 assert(key >= ImGuiKey_NamedKey_BEGIN);
707 assert(key < ImGuiKey_NamedKey_END);
708 assert(joystickButton < sf::Joystick::ButtonCount);
709 s_currWindowCtx->joystickMapping[joystickButton] = static_cast<ImGuiKey>(key);
710}
711
712void SetDPadXAxis(sf::Joystick::Axis dPadXAxis, bool inverted)
713{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected