Remove unused variable

This commit is contained in:
David Rowe 2018-12-19 17:21:48 +13:00
parent 40e6f1cad5
commit 4aa26715c0
2 changed files with 0 additions and 4 deletions

View file

@ -81,7 +81,6 @@ void KeyboardMouseDevice::mousePressEvent(QMouseEvent* event) {
}
_lastCursor = event->pos();
_mousePressTime = usecTimestampNow();
_mouseMoved = false;
_mousePressPos = event->pos();
_clickDeadspotActive = true;
@ -116,8 +115,6 @@ void KeyboardMouseDevice::mouseMoveEvent(QMouseEvent* event) {
// of the application window.
_lastCursor = currentPos;
_mouseMoved = true;
const int CLICK_EVENT_DEADSPOT = 6; // pixels
if (_clickDeadspotActive && (_mousePressPos - currentPos).manhattanLength() > CLICK_EVENT_DEADSPOT) {
_clickDeadspotActive = false;

View file

@ -121,7 +121,6 @@ protected:
QPoint _previousCursor;
QPoint _mousePressPos;
quint64 _mousePressTime;
bool _mouseMoved;
bool _clickDeadspotActive;
glm::vec2 _lastTouch;
std::shared_ptr<InputDevice> _inputDevice { std::make_shared<InputDevice>() };