void DriverStation::addJoystick (int axes, int buttons, int povHats) { if (m_manager->isValid()) { m_manager->addJoystick (axes, buttons, povHats); emit joystickCountChanged(); } }
/** * Registers a new joystick with the Driver Station * * \param axes the number of axes of the new joystick * \param hats the number of hats/povs of the new joystick * \param buttons the number of buttons of the new joystick */ void DriverStation::addJoystick (int axes, int hats, int buttons) { DS_JoysticksAdd (axes, hats, buttons); LOG << "Registered new joystick with" << axes << "axes," << hats << "hats and" << buttons << "buttons"; emit joystickCountChanged(); }
void DriverStation::resetJoysticks() { m_manager->resetJoysticks(); emit joystickCountChanged(); }
/** * Removes all the registered joysticks from the Driver Station */ void DriverStation::resetJoysticks() { LOG << "Resetting joysticks..."; DS_JoysticksReset(); emit joystickCountChanged(); }