mouse event scale to new window size

This commit is contained in:
arthur.jamet
2021-06-16 20:41:56 +02:00
parent bd758d858c
commit 84dfc16be1
2 changed files with 6 additions and 6 deletions
@@ -25,7 +25,7 @@ namespace BBM
void _updateCurrentButton(bool selected, Vector2f move);
//! @return true if mouse on entity
bool _mouseOnButton(WAL::ViewEntity<OnClickComponent, OnHoverComponent, OnIdleComponent, PositionComponent, Drawable2DComponent> &entity) const;
bool _mouseOnButton(const Vector2f &mousePos, WAL::ViewEntity<OnClickComponent, OnHoverComponent, OnIdleComponent, PositionComponent, Drawable2DComponent> &entity) const;
public:
//! @brief time (in millisecond) since last check
std::chrono::time_point<std::chrono::steady_clock> now;