event_router.cpp:Router should translate mouse coordinates #101

Open
opened 2025-12-20 16:54:54 +00:00 by zedshaw · 0 comments
Owner
sf::Vector2f FSM::mouse_position() {
    return $window.mapPixelToCoords($router.position);
  }

This really should be the router's job, but it needs the window then.

```cpp sf::Vector2f FSM::mouse_position() { return $window.mapPixelToCoords($router.position); } ``` This really should be the router's job, but it needs the window then.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: games/raycaster#101
No description provided.