Logo Search packages:      
Sourcecode: synaptiks version File versions  Download package

void Touchpad::setFingerButtons ( const QByteArray &  buttons ) [slot]

Set the mouse buttons triggered by tapping the touchpad.

The list of buttons must have at least three elements, less elements cause an error, more elements are silently ignored.

buttonsthe list of buttons
true, if successful, false otherwise.
See also:

Definition at line 363 of file touchpad.cpp.

    Q_ASSERT(buttons.size() >= 3);
    QList<uchar> values = d->device->property<uchar>(TAP_ACTION);
    std::copy(buttons.begin(), buttons.begin()+3, values.begin()+4);
    return d->device->setProperty(TAP_ACTION, values);

Generated by  Doxygen 1.6.0   Back to index