mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 16:22:45 +03:00
feat(console): implement OnMouseUp event handler (#101)
This commit is contained in:
parent
f479d6ab53
commit
0b1c478f33
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
void PasteInInputLine(const char* inputLine);
|
void PasteInInputLine(const char* inputLine);
|
||||||
void ResetHighlight();
|
void ResetHighlight();
|
||||||
|
void SetHighlightState(HIGHLIGHTSTATE state);
|
||||||
|
|
||||||
namespace {
|
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) {
|
int32_t OnMouseUp(const EVENT_DATA_MOUSE* data, void* param) {
|
||||||
// TODO
|
if (!EventIsKeyDown(ConsoleGetHotKey()) && ConsoleGetActive()) {
|
||||||
|
SetHighlightState(HS_ENDHIGHLIGHT);
|
||||||
|
ConsoleSetResizeState(CS_NONE);
|
||||||
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -93,6 +93,10 @@ void ResetHighlight() {
|
|||||||
s_hRect = { 0.0f, 0.0f, 0.0f, 0.0f };
|
s_hRect = { 0.0f, 0.0f, 0.0f, 0.0f };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SetHighlightState(HIGHLIGHTSTATE state) {
|
||||||
|
s_highlightState = state;
|
||||||
|
}
|
||||||
|
|
||||||
void PasteInInputLine(const char* inputLine) {
|
void PasteInInputLine(const char* inputLine) {
|
||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user