mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-13 11:32:29 +00:00
feat(console): add helpers for console hotkey
This commit is contained in:
parent
309ba8085c
commit
3549abd87f
2 changed files with 14 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
static int32_t s_active;
|
||||
static int32_t s_consoleAccessEnabled;
|
||||
static KEY s_consoleKey = KEY_TILDE;
|
||||
|
||||
int32_t ConsoleAccessGetEnabled() {
|
||||
return s_consoleAccessEnabled;
|
||||
|
|
@ -15,6 +16,14 @@ int32_t ConsoleGetActive() {
|
|||
return s_active;
|
||||
}
|
||||
|
||||
KEY ConsoleGetHotKey() {
|
||||
return s_consoleKey;
|
||||
}
|
||||
|
||||
void ConsoleSetActive(int32_t active) {
|
||||
s_active = active;
|
||||
}
|
||||
|
||||
void ConsoleSetHotKey(KEY hotkey) {
|
||||
s_consoleKey = hotkey;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue