-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdfhooks.h
More file actions
28 lines (21 loc) · 803 Bytes
/
dfhooks.h
File metadata and controls
28 lines (21 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once
namespace SDL {
// so we don't need to actually include SDL_events.h
union Event;
}
// called before main event loop starts
void hooks_init();
// called after main event loops exits
void hooks_shutdown();
// called in the main event loop
void hooks_update();
// called just before adding the macro recording/playback overlay
void hooks_prerender();
// called for each SDL event, if true is returned, then the event has been
// consumed and further processing shouldn't happen
bool hooks_sdl_event(SDL::Event* event);
// called for each utf-8 char read from the ncurses input
// key is positive for ncurses keys and negative for everything else.
// If true is returned then the key has been consumed and further
// processing shouldn't happen
bool hooks_ncurses_key(int key);