mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-24 23:08:20 +08:00
Add mouse implementation of most components.
This commit is contained in:
@@ -310,8 +310,11 @@ void ScreenInteractive::Loop(Component* component) {
|
||||
Clear();
|
||||
}
|
||||
Event event;
|
||||
if (event_receiver_->Receive(&event))
|
||||
if (event_receiver_->Receive(&event)) {
|
||||
if (event.is_mouse())
|
||||
event.MoveMouse(-1, -1);
|
||||
component->OnEvent(event);
|
||||
}
|
||||
}
|
||||
|
||||
event_listener.join();
|
||||
|
Reference in New Issue
Block a user