コード例 #1
0
void DriverStation::addJoystick (int axes, int buttons, int povHats)
{
    if (m_manager->isValid())
        {
            m_manager->addJoystick (axes, buttons, povHats);
            emit joystickCountChanged();
        }
}
コード例 #2
0
ファイル: DriverStation.cpp プロジェクト: AHerridge/LibDS
/**
 * 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();
}
コード例 #3
0
void DriverStation::resetJoysticks()
{
    m_manager->resetJoysticks();
    emit joystickCountChanged();
}
コード例 #4
0
ファイル: DriverStation.cpp プロジェクト: AHerridge/LibDS
/**
 * Removes all the registered joysticks from the Driver Station
 */
void DriverStation::resetJoysticks()
{
    LOG << "Resetting joysticks...";
    DS_JoysticksReset();
    emit joystickCountChanged();
}