haxeui / haxeui-kha

The Kha backend of the HaxeUI framework -
http://haxeui.org
MIT License
45 stars 16 forks source link

use TimeTask to only run once #21

Closed sh-dave closed 6 years ago

sh-dave commented 6 years ago

Scheduler.addFrameTask adds a callback that get's called every frame. When reading the code for other backends, it seems it's only supposed to run once (an it's what i expected it would do). Scheduler.addTimeTask without period set (3rd parameter) will only run once.

aW4KeNiNG commented 6 years ago

Thanks @sh-dave for the help in https://github.com/haxeui/haxeui-kha/pull/23

I close this PR.