DungeonCrawl
Loading...
Searching...
No Matches
input_handler.h
Go to the documentation of this file.
1
5#ifndef INPUT_HANDLER_H
6#define INPUT_HANDLER_H
7
8#include "input_types.h"
9
10#include <notcurses/notcurses.h>
11
21bool init_input_handler(struct notcurses* nc);
22
33
44
53input_t translate_input(const ncinput* raw_input);
54
60void shutdown_input_handler(void);
61
62#endif// INPUT_HANDLER_H
bool get_input_blocking(input_event_t *event)
Get the next input event (blocking)
input_t translate_input(const ncinput *raw_input)
Translate a raw Notcurses input to a logical input type.
bool init_input_handler(struct notcurses *nc)
Initialize the input handler.
bool get_input_nonblocking(input_event_t *event)
Get the next input event (non-blocking)
void shutdown_input_handler(void)
Shutdown the input handler.
Declares structs for possible input types.
input_t
Enumeration of all possible input actions in the game.
Definition input_types.h:17
Structure for advanced input events with context data.
Definition input_types.h:43