aboutsummaryrefslogtreecommitdiff
path: root/headers/TZR_events.h
blob: bba9bb0a2a827b17601eba4f1840ad06b1e6d4bc (plain)
1
2
3
4
5
6
7
8
9
10
11
#pragma once
#include "TZR_types.h"

/* Write event data to `e`. Return 0 when event queue is empty. */
int TZR_PollEvent(TZR_Event *e);

/* Drain queued events with TZR_PollEvent and call TZR_ResourcesWatch. */
void TZR_CycleEvents(void);

/* Returns 1 if event was set. Resets after each call to CycleEvents. */
int TZR_LatestInputEvent(TZR_Event *);