Very jank but now I can set different panels as active and test for mouse events in them to enable mouse. This needs a big cleanup and probably some FSM love.
This commit is contained in:
parent
f0829bb9ea
commit
941be008f8
3 changed files with 17 additions and 9 deletions
|
@ -36,6 +36,7 @@ const std::wstring& Panel::to_string() {
|
|||
}
|
||||
|
||||
void Panel::mouse_click(ftxui::Mouse::Button btn, Point pos) {
|
||||
fmt::println("CLICK AT {},{}", pos.x, pos.y);
|
||||
ftxui::Mouse mev{
|
||||
.button=btn,
|
||||
.motion=ftxui::Mouse::Motion::Pressed,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue