Any suggestions on the best implementation of a tick event? #142
Answered
by
rockorager
JamesPatrickGill
asked this question in
Q&A
-
Hi I am new to this library (and zig infact) and was wondering if there's an example somewhere of a tick event being implemented? I am looking to have my app update on a set intervals with it being raised as the standard vaxis event on the the pollEvent function - any ideas? |
Beta Was this translation helpful? Give feedback.
Answered by
rockorager
Dec 29, 2024
Replies: 1 comment 1 reply
-
👋 Welcome! You might check out the vxfw framework (src/vxfw/App.zig). This implements a .tick event, and you can look at Spinner.zig for how it is used to control animations |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
JamesPatrickGill
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👋 Welcome!
You might check out the vxfw framework (src/vxfw/App.zig). This implements a .tick event, and you can look at Spinner.zig for how it is used to control animations