mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 00:44:38 +02:00
Remove TODOs
This commit is contained in:
parent
2ccef09d00
commit
36da8bfa58
2 changed files with 0 additions and 5 deletions
|
@ -128,8 +128,6 @@ void KeyboardMouseDevice::mouseMoveEvent(QMouseEvent* event) {
|
||||||
|
|
||||||
void KeyboardMouseDevice::wheelEvent(QWheelEvent* event) {
|
void KeyboardMouseDevice::wheelEvent(QWheelEvent* event) {
|
||||||
auto currentMove = event->angleDelta() / 120.0f;
|
auto currentMove = event->angleDelta() / 120.0f;
|
||||||
|
|
||||||
// ####### TODO: Use AxisValue timestamps?
|
|
||||||
_inputDevice->_axisStateMap[_inputDevice->makeInput(MOUSE_AXIS_WHEEL_X_POS).getChannel()].value = currentMove.x() > 0 ? currentMove.x() : 0;
|
_inputDevice->_axisStateMap[_inputDevice->makeInput(MOUSE_AXIS_WHEEL_X_POS).getChannel()].value = currentMove.x() > 0 ? currentMove.x() : 0;
|
||||||
_inputDevice->_axisStateMap[_inputDevice->makeInput(MOUSE_AXIS_WHEEL_X_NEG).getChannel()].value = currentMove.x() < 0 ? -currentMove.x() : 0;
|
_inputDevice->_axisStateMap[_inputDevice->makeInput(MOUSE_AXIS_WHEEL_X_NEG).getChannel()].value = currentMove.x() < 0 ? -currentMove.x() : 0;
|
||||||
_inputDevice->_axisStateMap[_inputDevice->makeInput(MOUSE_AXIS_WHEEL_Y_POS).getChannel()].value = currentMove.y() > 0 ? currentMove.y() : 0;
|
_inputDevice->_axisStateMap[_inputDevice->makeInput(MOUSE_AXIS_WHEEL_Y_POS).getChannel()].value = currentMove.y() > 0 ? currentMove.y() : 0;
|
||||||
|
@ -172,8 +170,6 @@ void KeyboardMouseDevice::touchUpdateEvent(const QTouchEvent* event) {
|
||||||
_isTouching = event->touchPointStates().testFlag(Qt::TouchPointPressed);
|
_isTouching = event->touchPointStates().testFlag(Qt::TouchPointPressed);
|
||||||
} else {
|
} else {
|
||||||
auto currentMove = currentPos - _lastTouch;
|
auto currentMove = currentPos - _lastTouch;
|
||||||
|
|
||||||
// ####### TODO: Use AxisValue timestamp fields?
|
|
||||||
_inputDevice->_axisStateMap[_inputDevice->makeInput(TOUCH_AXIS_X_POS).getChannel()].value = (currentMove.x > 0 ? currentMove.x : 0.0f);
|
_inputDevice->_axisStateMap[_inputDevice->makeInput(TOUCH_AXIS_X_POS).getChannel()].value = (currentMove.x > 0 ? currentMove.x : 0.0f);
|
||||||
_inputDevice->_axisStateMap[_inputDevice->makeInput(TOUCH_AXIS_X_NEG).getChannel()].value = (currentMove.x < 0 ? -currentMove.x : 0.0f);
|
_inputDevice->_axisStateMap[_inputDevice->makeInput(TOUCH_AXIS_X_NEG).getChannel()].value = (currentMove.x < 0 ? -currentMove.x : 0.0f);
|
||||||
// Y mouse is inverted positive is pointing up the screen
|
// Y mouse is inverted positive is pointing up the screen
|
||||||
|
|
|
@ -38,7 +38,6 @@ void TouchscreenDevice::pluginUpdate(float deltaTime, const controller::InputCal
|
||||||
_inputDevice->update(deltaTime, inputCalibrationData);
|
_inputDevice->update(deltaTime, inputCalibrationData);
|
||||||
});
|
});
|
||||||
|
|
||||||
// ####### TODO: Use AxisValue timestamp fields?
|
|
||||||
float distanceScaleX, distanceScaleY;
|
float distanceScaleX, distanceScaleY;
|
||||||
if (_touchPointCount == 1) {
|
if (_touchPointCount == 1) {
|
||||||
if (_firstTouchVec.x < _currentTouchVec.x) {
|
if (_firstTouchVec.x < _currentTouchVec.x) {
|
||||||
|
|
Loading…
Reference in a new issue