mirror of
https://github.com/whoahq/whoa.git
synced 2026-03-19 14:11:06 +03:00
43 lines
831 B
C++
43 lines
831 B
C++
#include "console/Console.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 ConsoleSetResizeState(CONSOLERESIZESTATE state) {
|
|
s_consoleResizeState = state;
|
|
}
|
|
|
|
void ConsoleWrite(const char* text, COLOR_T color) {
|
|
// TODO
|
|
}
|