aboutsummaryrefslogtreecommitdiff
path: root/headers/TZR_events.h
blob: 61262c8503ea34233f4025de4c38e37bac47a503 (plain)
1
2
3
4
5
6
7
8
9
10
#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);

void TZR_GetMousePosition(int *x, int *y);