DungeonCrawl
Loading...
Searching...
No Matches
input_types.h
Go to the documentation of this file.
1
5
#ifndef INPUT_TYPES_H
6
#define INPUT_TYPES_H
7
8
#include <notcurses/notcurses.h>
9
17
typedef
enum
{
18
// Navigation inputs
19
INPUT_UP,
20
INPUT_DOWN,
21
INPUT_LEFT,
22
INPUT_RIGHT,
23
24
// Action inputs
25
INPUT_CONFIRM,
// Enter/Space/Primary action
26
INPUT_CANCEL,
// Escape/Secondary action
27
INPUT_MENU,
// Open menu (M key)
28
INPUT_STATS,
// Show stats (L key)
29
INPUT_INVENTORY,
// Show inventory (I key)
30
31
// Special inputs
32
INPUT_QUIT,
// Ctrl+C or other quit command
33
34
// No input received
35
INPUT_NONE
36
}
input_t
;
37
43
typedef
struct
{
44
input_t
type;
// The logical input type
45
ncinput raw_input;
// The raw Notcurses input data
46
}
input_event_t
;
47
48
#endif
// INPUT_TYPES_H
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_types.h
Generated by
1.14.0