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
17typedef 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
43typedef struct {
44 input_t type; // The logical input type
45 ncinput raw_input;// The raw Notcurses input data
47
48#endif// INPUT_TYPES_H
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