feat(console): implement OnMouseUp event handler (#101)

This commit is contained in:
Tristan 'Natrist' Cormier authored and GitHub committed 2025-10-04 19:38:35 -05:00
1 parent f479d6ab53
commit 0b1c478f33
2 files changed
+9 -1

No files matched your search

+5 -1
View File
@@ -6,6 +6,7 @@
void PasteInInputLine(const char* inputLine);
void ResetHighlight();
void SetHighlightState(HIGHLIGHTSTATE state);
namespace {
@@ -80,7 +81,10 @@ int32_t OnMouseMove(const EVENT_DATA_MOUSE* data, void* param) {
}
int32_t OnMouseUp(const EVENT_DATA_MOUSE* data, void* param) {
// TODO
if (!EventIsKeyDown(ConsoleGetHotKey()) && ConsoleGetActive()) {
SetHighlightState(HS_ENDHIGHLIGHT);
ConsoleSetResizeState(CS_NONE);
}
return 1;
}
+4
View File
@@ -93,6 +93,10 @@ void ResetHighlight() {
s_hRect = { 0.0f, 0.0f, 0.0f, 0.0f };
}
void SetHighlightState(HIGHLIGHTSTATE state) {
s_highlightState = state;
}
void PasteInInputLine(const char* inputLine) {
// TODO
}