mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 22:44:15 +02:00
Fix UI element placement
This commit is contained in:
parent
3fa7c7b516
commit
f0d0979ade
1 changed files with 2 additions and 2 deletions
|
@ -377,7 +377,7 @@ void ControllerScriptingInterface::releaseJoystick(int joystickIndex) {
|
|||
}
|
||||
|
||||
glm::vec2 ControllerScriptingInterface::getViewportDimensions() const {
|
||||
return Application::getInstance()->getCanvasSize();
|
||||
return Application::getInstance()->getUiSize();
|
||||
}
|
||||
|
||||
AbstractInputController* ControllerScriptingInterface::createInputController(const QString& deviceName, const QString& tracker) {
|
||||
|
@ -507,4 +507,4 @@ const unsigned int INPUTCONTROLLER_KEY_DEVICE_MASK = 16;
|
|||
|
||||
InputController::Key InputController::getKey() const {
|
||||
return (((_deviceTrackerId & INPUTCONTROLLER_KEY_DEVICE_MASK) << INPUTCONTROLLER_KEY_DEVICE_OFFSET) | _subTrackerId);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue