Basic, buggy movement purely from Python API
This commit is contained in:
parent
e85861cbb2
commit
c1c17bab69
4 changed files with 27 additions and 5 deletions
|
|
@ -12,6 +12,7 @@ PythonScene::PythonScene(GameEngine* g, std::string pymodule)
|
|||
registerAction(ActionCode::MOUSEWHEEL + ActionCode::WHEEL_NEG + ActionCode::WHEEL_DEL, "wheel_down");
|
||||
|
||||
// keyboard events
|
||||
/*
|
||||
registerAction(ActionCode::KEY + sf::Keyboard::Q, "upleft");
|
||||
registerAction(ActionCode::KEY + sf::Keyboard::W, "up");
|
||||
registerAction(ActionCode::KEY + sf::Keyboard::E, "upright");
|
||||
|
|
@ -31,7 +32,7 @@ PythonScene::PythonScene(GameEngine* g, std::string pymodule)
|
|||
registerAction(ActionCode::KEY + sf::Keyboard::Numpad1, "downleft");
|
||||
registerAction(ActionCode::KEY + sf::Keyboard::Numpad2, "down");
|
||||
registerAction(ActionCode::KEY + sf::Keyboard::Numpad3, "downright");
|
||||
|
||||
*/
|
||||
// window resize
|
||||
registerAction(0, "event");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue