mirror of
https://github.com/EnumeratedDev/typer.git
synced 2026-09-16 13:36:12 +00:00
Split drawing and processing events into different functions
This commit is contained in:
@@ -126,7 +126,9 @@ func (window *Window) Draw() {
|
||||
|
||||
// Update screen
|
||||
window.screen.Show()
|
||||
}
|
||||
|
||||
func (window *Window) ProcessEvents() {
|
||||
// Poll event
|
||||
ev := window.screen.PollEvent()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user