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:
Zed A. Shaw 2024-12-30 20:20:17 -05:00
parent f0829bb9ea
commit 941be008f8
3 changed files with 17 additions and 9 deletions

View file

@ -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,