예제 #1
0
void HID::closeInput(quint32 input)
{
    HIDDevice* dev = device(input);
    if (dev != NULL)
    {
        dev->closeInput();
        disconnect(dev, SIGNAL(valueChanged(quint32,quint32,uchar)),
                   this, SIGNAL(valueChanged(quint32,quint32,uchar)));
    }
    else
        qDebug() << name() << "has no input number:" << input;
}
예제 #2
0
void HIDPlugin::closeInput(quint32 input, quint32 universe)
{
    HIDDevice* dev = device(input);
    if (dev != NULL)
    {
        removeFromMap(input, universe, Input);
        dev->closeInput();
        disconnect(dev, SIGNAL(valueChanged(quint32,quint32,quint32,uchar)),
                   this, SIGNAL(valueChanged(quint32,quint32,quint32,uchar)));
    }
    else
        qDebug() << name() << "has no input number:" << input;
}