SetJoystick::~SetJoystick() { deleteSticks(); deleteVDpads(); deleteButtons(); deleteAxes(); deleteHats(); }
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); } }