8#include "dtkdevice_global.h"
15#include <QSharedPointer>
17using DInputKeyAction = DTK_DEVICE_NAMESPACE::KeyAction;
18using DInputKey = DTK_DEVICE_NAMESPACE::Key;
19DDEVICE_BEGIN_NAMESPACE
20using DCORE_NAMESPACE::DExpected;
21using DCORE_NAMESPACE::DObject;
23class DInputDeviceSettingPrivate;
27 Q_PROPERTY(
bool disableTouchPadWhileMouse READ disableTouchPadWhileMouse WRITE setDisableTouchPadWhileMouse NOTIFY
28 disableTouchPadWhileMouseChanged)
30 quint32 doubleClickInterval READ doubleClickInterval WRITE setDoubleClickInterval NOTIFY doubleClickIntervalChanged)
31 Q_PROPERTY(quint32 dragThreshold READ dragThreshold WRITE setDragThreshold NOTIFY dragThresholdChanged)
32 Q_PROPERTY(
bool repeatEnabled READ repeatEnabled WRITE setRepeatEnabled NOTIFY repeatEnabledChanged)
33 Q_PROPERTY(quint32 repeatDelay READ repeatDelay WRITE setRepeatDelay NOTIFY repeatDelayChanged)
34 Q_PROPERTY(quint32 repeatInterval READ repeatInterval WRITE setRepeatInterval NOTIFY repeatIntervalChanged)
35 Q_PROPERTY(qint32 cursorBlinkInterval READ cursorBlinkInterval WRITE setCursorBlinkInterval NOTIFY cursorBlinkIntervalChanged)
36 Q_PROPERTY(quint32 wheelSpeed READ wheelSpeed WRITE setWheelSpeed NOTIFY wheelSpeedChanged)
39 using Ptr = QSharedPointer<DInputDeviceSetting>;
84 DExpected<DInputKeyAction>
keymap(quint32
id, DInputKey key);
85 DExpected<void>
setKeymap(quint32
id, DInputKey key, DInputKeyAction action);