10 LUG_LOG.warn(
"FreeMovement::onFrame: No event source, call setEventSource()");
57 if (axisRightX || axisRightY) {
87 _lastMousePos = mousePos;
96 if (mousePos.x() < windowSize.width() * 0.30 || mousePos.x() > windowSize.width() * 0.70
97 || mousePos.y() < windowSize.height() * 0.30 || mousePos.y() > windowSize.height() * 0.70) {
98 Math::Vec2i middle{windowSize.width() / 2, windowSize.height() / 2};
100 _lastMousePos = middle;
T getMilliseconds() const
TouchScreenEvent _touchScreenState
void setMousePos(const Math::Vec2i &mousePosition)
Sets the mouse position.
void onFrame(const System::Time &elapsedTime)
lug::Math::Vec2f coordinates[2]
The Touch coordinate.
const Math::Vec2i & getMousePos() const
Retrieves the mouses position.
lug::Graphics::Scene::Node * _target
void translate(const Math::Vec3f &direction, TransformSpace space=TransformSpace::Local)
lug::Math::Vec2f axisLeft
Math::Vec2i _lastMousePos
void rotate(float angle, const Math::Vec3f &axis, TransformSpace space=TransformSpace::Local)
lug::Math::Vec2f axisRight
bool isKeyPressed(Keyboard::Key key) const
Determines if a key pressed.
GamePadEvent _gamePadState
Math::Vec2i getWindowSize() const
Gets the window size.
void setMouseCursorVisible(bool visible)
Sets the visibility of the mouse cursor (hide/show)
lug::Window::Window * _eventSource