mach: Use math.inf instead of math.floatMax for indefinite wait of events

This commit is contained in:
iddev5 2022-06-25 18:54:19 +05:30 committed by Stephen Gutekanst
parent ff69efea52
commit f80161bc72
2 changed files with 5 additions and 6 deletions

View file

@ -62,7 +62,7 @@ pub fn setShouldClose(engine: *Engine, value: bool) void {
// again.
//
// timeout is in seconds (<= 0.0 disables waiting)
// - pass std.math.floatMax(f64) to wait with no timeout
// - pass std.math.inf(f64) to wait with no timeout
//
// update() can be called earlier than timeout if an event happens (key press,
// mouse motion, etc.)