|
|
|
|
@ -7,6 +7,7 @@ |
|
|
|
|
#include "gui/XournalppCursor.h" |
|
|
|
|
|
|
|
|
|
#include "InputContext.h" |
|
|
|
|
#include <cmath> |
|
|
|
|
|
|
|
|
|
AbstractInputHandler::AbstractInputHandler(InputContext* inputContext) { this->inputContext = inputContext; } |
|
|
|
|
|
|
|
|
|
@ -75,7 +76,7 @@ auto AbstractInputHandler::getInputDataRelativeToCurrentPage(XojPageView* page, |
|
|
|
|
pos.pressure = Point::NO_PRESSURE; |
|
|
|
|
|
|
|
|
|
if (this->inputContext->getSettings()->isPressureSensitivity()) { |
|
|
|
|
pos.pressure = event.pressure; |
|
|
|
|
pos.pressure = 1-exp(- event.pressure/0.2); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
pos.state = this->inputContext->getModifierState(); |
|
|
|
|
|