Write timestamp into PositionInputdata

presentation
Ulrich Huber 7 years ago
parent 39f85fdebe
commit c9093b7488
  1. 1
      src/gui/inputdevices/AbstractInputHandler.cpp
  2. 1
      src/gui/inputdevices/old/PositionInputData.h

@ -84,6 +84,7 @@ PositionInputData AbstractInputHandler::getInputDataRelativeToCurrentPage(XojPag
}
pos.state = this->inputContext->getModifierState();
pos.timestamp = gdk_event_get_time(event);
return pos;
}

@ -24,6 +24,7 @@ public:
double x;
double y;
double pressure;
guint32 timestamp;
/**
* State flags from GDKevent (Shift down etc.)

Loading…
Cancel
Save