Dummyrunner / LandingGame

MIT License
0 stars 0 forks source link

Bugfix: Add possibility to execute function only on pressing down a Button #20

Closed beneblubb closed 5 hours ago

beneblubb commented 1 week ago

Current state: If you press a button, the connected function is called in each frame for as long as the button is pressed. Problem: No possibility to trigger an event just once a button is pressed. For example if you press the button to toggle the visibility of the Overlays, the visibility changes 60 times a second until the button is released. Solution: Maybe checking for event "KEYDOWN" in landing_game_action_on_key like this?