Esempio n. 1
0
SetJoystick::~SetJoystick()
{
    deleteSticks();
    deleteVDpads();
    deleteButtons();
    deleteAxes();
    deleteHats();
}
Esempio n. 2
0
void SetJoystick::refreshHats()
{
    deleteHats();

    for (int i=0; i < device->getNumberRawHats(); i++)
    {
        JoyDPad *dpad = new JoyDPad(i, index, this, this);
        hats.insert(i, dpad);
        enableHatConnections(dpad);
    }
}