I have a tgui::Canvas object, to which I connected events using "MousePressed":
auto canvas = tgui::Canvas::create();
canvas->connect("MousePressed", [this]() { /*...*/ });
But it seems the event is only triggered on left mouse click, not on right mouse click.
Is there any way to trigger on both?
auto canvas = tgui::Canvas::create();
canvas->connect("MousePressed", [this]() { /*...*/ });
But it seems the event is only triggered on left mouse click, not on right mouse click.
Is there any way to trigger on both?