Changeset View
Changeset View
Standalone View
Standalone View
input.cpp
Show First 20 Lines • Show All 1773 Lines • ▼ Show 20 Line(s) | 1773 | [this] () { | |||
---|---|---|---|---|---|
1774 | m_touch->cancel(); | 1774 | m_touch->cancel(); | ||
1775 | } | 1775 | } | ||
1776 | ); | 1776 | ); | ||
1777 | connect(device, &FakeInputDevice::touchFrameRequested, this, | 1777 | connect(device, &FakeInputDevice::touchFrameRequested, this, | ||
1778 | [this] () { | 1778 | [this] () { | ||
1779 | m_touch->frame(); | 1779 | m_touch->frame(); | ||
1780 | } | 1780 | } | ||
1781 | ); | 1781 | ); | ||
1782 | connect(device, &FakeInputDevice::keyboardKeyPressRequested, this, | ||||
1783 | [this] (quint32 button) { | ||||
1784 | // TODO: Fix time | ||||
1785 | m_keyboard->processKey(button, InputRedirection::KeyboardKeyPressed, 0); | ||||
1786 | waylandServer()->simulateUserActivity(); | ||||
1787 | } | ||||
1788 | ); | ||||
1789 | connect(device, &FakeInputDevice::keyboardKeyReleaseRequested, this, | ||||
1790 | [this] (quint32 button) { | ||||
1791 | // TODO: Fix time | ||||
1792 | m_keyboard->processKey(button, InputRedirection::KeyboardKeyReleased, 0); | ||||
1793 | waylandServer()->simulateUserActivity(); | ||||
1794 | } | ||||
1795 | ); | ||||
1782 | } | 1796 | } | ||
1783 | ); | 1797 | ); | ||
1784 | connect(workspace(), &Workspace::configChanged, this, &InputRedirection::reconfigure); | 1798 | connect(workspace(), &Workspace::configChanged, this, &InputRedirection::reconfigure); | ||
1785 | 1799 | | |||
1786 | m_keyboard->init(); | 1800 | m_keyboard->init(); | ||
1787 | m_pointer->init(); | 1801 | m_pointer->init(); | ||
1788 | m_touch->init(); | 1802 | m_touch->init(); | ||
1789 | } | 1803 | } | ||
▲ Show 20 Lines • Show All 637 Lines • Show Last 20 Lines |