emove register_keyboard(callable) from scene - all callbacks are standard attributes now. on_resize now returns a vector
This commit is contained in:
parent
9a241c99d7
commit
09fa4f4665
4 changed files with 27 additions and 47 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue