mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 00:32:45 +03:00
feat(console): add partial implementation for function OnChar
This commit is contained in:
parent
324b7408df
commit
e8cebed60e
@ -6,8 +6,22 @@
|
||||
namespace {
|
||||
|
||||
int32_t OnChar(const EVENT_DATA_CHAR* data, void* param) {
|
||||
// TODO
|
||||
char character[2];
|
||||
|
||||
if (!EventIsKeyDown(ConsoleGetHotKey()) || !ConsoleAccessGetEnabled()) {
|
||||
if (!ConsoleGetActive()) {
|
||||
return 1;
|
||||
} else {
|
||||
character[0] = data->ch;
|
||||
character[1] = '\0';
|
||||
|
||||
// TODO
|
||||
// PasteInInputLine(character);
|
||||
// ResetHighlight();
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int32_t OnIdle(const EVENT_DATA_IDLE* data, void* param) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user