From efc053fe5a38a4928fbfd3780f5665dd43bc7f95 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 15 Mar 2020 18:30:24 +0100 Subject: Unify event loop functions as puglUpdate() The previous separation between polling and dispatching was a lie, especially on MacOS where it is impossible to only poll for events without dispatching anything. Providing such an API is misleading, and problematic in various other ways. So, merge them into a single puglUpdate() function which can do the right thing on all platforms. This also adds the behaviour of actually processing all events in the given time interval, which is almost always what clients actually want to do when using a positive timeout (naively doing this before caused terrible input lag). --- .clang-tidy | 1 + 1 file changed, 1 insertion(+) (limited to '.clang-tidy') diff --git a/.clang-tidy b/.clang-tidy index 0f46134..ee84a8a 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -5,6 +5,7 @@ Checks: > -android-cloexec-fopen, -bugprone-suspicious-string-compare, -clang-analyzer-alpha.*, + -clang-analyzer-security.FloatLoopCounter, -hicpp-multiway-paths-covered, -hicpp-signed-bitwise, -llvm-header-guard, -- cgit v1.2.1