emove register_keyboard(callable) from scene - all callbacks are standard attributes now. on_resize now returns a vector

This commit is contained in:
John McCardle 2026-01-17 23:37:56 -05:00
commit 09fa4f4665
4 changed files with 27 additions and 47 deletions

View file

@ -421,7 +421,7 @@ void GameEngine::processEvent(const sf::Event& event)
updateViewport();
// Notify Python scenes about the resize
McRFPy_API::triggerResize(event.size.width, event.size.height);
McRFPy_API::triggerResize(sf::Vector2u(event.size.width, event.size.height));
}
else if (event.type == sf::Event::KeyPressed || event.type == sf::Event::MouseButtonPressed || event.type == sf::Event::MouseWheelScrolled) actionType = "start";