Files
Cesarus85--mjolnir-vr/source/main/debug_keys.h
T
Berthalamewandpunpckhdq 3df3e671df debug_keys work (#3)
* debug_keys work

* requested changes

* prototypes and mark debug_keys as matching

* Formatting

---------

Co-authored-by: punpckhdq <121350336+punpckhdq@users.noreply.github.com>
2026-01-02 23:39:06 +00:00

47 lines
700 B
C

/*
DEBUG_KEYS.H
header included in hcex build.
*/
#ifndef __DEBUG_KEYS_H
#define __DEBUG_KEYS_H
#pragma once
/* ---------- constants */
enum
{
_debug_key_no_modifier= 0,
_debug_key_shift,
_debug_key_ctrl,
_debug_key_shift_ctrl,
NUMBER_OF_DEBUG_KEY_MODIFIERS,
};
/* ---------- macros */
/* ---------- structures */
struct debug_key
{
const char *name;
short key_code;
short modifier;
void (*function)(boolean down);
boolean toggle_variable;
boolean *variable;
};
/* ---------- prototypes/DEBUG_KEYS.C */
void debug_keys_initialize(void);
void debug_keys_dispose(void);
void debug_keys_update(void);
/* ---------- globals */
/* ---------- public code */
#endif // __DEBUG_KEYS_H