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
21
bool
init_input_handler
(
struct
notcurses* nc);
22
32
bool
get_input_blocking
(
input_event_t
* event);
33
43
bool
get_input_nonblocking
(
input_event_t
* event);
44
53
input_t
translate_input
(
const
ncinput* raw_input);
54
60
void
shutdown_input_handler
(
void
);
61
62
#endif
// INPUT_HANDLER_H
get_input_blocking
bool get_input_blocking(input_event_t *event)
Get the next input event (blocking)
Definition
input_handler.c:147
translate_input
input_t translate_input(const ncinput *raw_input)
Translate a raw Notcurses input to a logical input type.
Definition
input_handler.c:62
init_input_handler
bool init_input_handler(struct notcurses *nc)
Initialize the input handler.
Definition
input_handler.c:100
get_input_nonblocking
bool get_input_nonblocking(input_event_t *event)
Get the next input event (non-blocking)
Definition
input_handler.c:181
shutdown_input_handler
void shutdown_input_handler(void)
Shutdown the input handler.
Definition
input_handler.c:212
input_types.h
Declares structs for possible input types.
input_t
input_t
Enumeration of all possible input actions in the game.
Definition
input_types.h:17
input_event_t
Structure for advanced input events with context data.
Definition
input_types.h:43
src
io
input
input_handler.h
Generated by
1.14.0