DungeonCrawl
Loading...
Searching...
No Matches
input_types.h File Reference

Declares structs for possible input types. More...

#include <notcurses/notcurses.h>

Go to the source code of this file.

Data Structures

struct  input_event_t
 Structure for advanced input events with context data. More...

Enumerations

enum  input_t {
  INPUT_UP , INPUT_DOWN , INPUT_LEFT , INPUT_RIGHT ,
  INPUT_CONFIRM , INPUT_CANCEL , INPUT_MENU , INPUT_STATS ,
  INPUT_INVENTORY , INPUT_QUIT , INPUT_NONE
}
 Enumeration of all possible input actions in the game. More...

Detailed Description

Declares structs for possible input types.

Definition in file input_types.h.

Enumeration Type Documentation

◆ input_t

enum input_t

Enumeration of all possible input actions in the game.

This enum maps hardware-specific events to logical game actions, providing an abstraction layer between the input hardware and the game logic.

Definition at line 17 of file input_types.h.

17 {
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;
input_t
Enumeration of all possible input actions in the game.
Definition input_types.h:17