mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 16:52:45 +03:00
feat(console): add partial implementation of handler function OnChar
This commit is contained in:
parent
df1ab32267
commit
b31dedf05f
@ -7,8 +7,23 @@
|
||||
namespace {
|
||||
|
||||
int32_t OnChar(const EVENT_DATA_CHAR* data, void* param) {
|
||||
// TODO
|
||||
char character[2];
|
||||
|
||||
if (!EventIsKeyDown(ConsoleGetHotKey()) || !ConsoleAccessGetEnabled()) {
|
||||
if (!ConsoleGetActive()) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Set the character value and null-terminate the buffer
|
||||
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