From 59359e4f3d81231e7c665aa53ceeba7de0671d95 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 4 Aug 2019 22:08:03 +0200 Subject: Make event handler return a status Currently unused, but this is to leave open the possibility of event propagation or better errror handling. --- pugl/pugl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pugl') diff --git a/pugl/pugl.h b/pugl/pugl.h index 4cf4d7f..51c86a1 100644 --- a/pugl/pugl.h +++ b/pugl/pugl.h @@ -740,7 +740,7 @@ puglLeaveContext(PuglView* view, bool drawing); /** A function called when an event occurs. */ -typedef void (*PuglEventFunc)(PuglView* view, const PuglEvent* event); +typedef PuglStatus (*PuglEventFunc)(PuglView* view, const PuglEvent* event); /** Set the function to call when an event occurs. -- cgit v1.2.1