mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-10-26 22:06:06 +03:00
40 lines
775 B
C++
40 lines
775 B
C++
#include "console/Console.hpp"
|
|
#include "event/Event.hpp"
|
|
|
|
static int32_t s_active;
|
|
static int32_t s_consoleAccessEnabled;
|
|
static KEY s_consoleKey = KEY_TILDE;
|
|
static CONSOLERESIZESTATE s_consoleResizeState = CS_NONE;
|
|
|
|
int32_t ConsoleAccessGetEnabled() {
|
|
return s_consoleAccessEnabled;
|
|
}
|
|
|
|
void ConsoleAccessSetEnabled(int32_t enable) {
|
|
s_consoleAccessEnabled = enable;
|
|
}
|
|
|
|
int32_t ConsoleGetActive() {
|
|
return s_active;
|
|
}
|
|
|
|
KEY ConsoleGetHotKey() {
|
|
return s_consoleKey;
|
|
}
|
|
|
|
CONSOLERESIZESTATE ConsoleGetResizeState() {
|
|
return s_consoleResizeState;
|
|
}
|
|
|
|
void ConsoleSetActive(int32_t active) {
|
|
s_active = active;
|
|
}
|
|
|
|
void ConsoleSetHotKey(KEY hotkey) {
|
|
s_consoleKey = hotkey;
|
|
}
|
|
|
|
void ConsolePostClose() {
|
|
EventPostCloseEx(EventGetCurrentContext());
|
|
}
|