FTXUI/include/ftxui/component
Clément Roblot c31aecf2ed
Checkbox button debounce (#774)
This fixes: https://github.com/ArthurSonzogni/FTXUI/issues/773

Dragging the mouse with the left button pressed now avoids activating multiple
checkboxes.

Add support for detecting mouse press transition. Added:
```cpp
// The previous mouse event.
Mouse Mouse::previous;

// Return whether the mouse transitionned from:
// released to pressed => IsPressed()
// pressed to pressed => IsHeld()
// pressed to released => IsReleased()
bool Mouse::IsPressed(Button button) const;
bool Mouse::IsHeld(Button button) const;
bool Mouse::IsReleased(Button button) const;
```
A couple of components are now activated when the mouse is pressed,
as opposed to released.

Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com>
2023-11-11 17:33:50 +01:00
..
animation.hpp Move copyright to the top of files. 2023-08-19 13:57:01 +02:00
captured_mouse.hpp Move copyright to the top of files. 2023-08-19 13:57:01 +02:00
component_base.hpp Move copyright to the top of files. 2023-08-19 13:57:01 +02:00
component_options.hpp fix the doxygen documentation by moving comments at the right place (#768) 2023-10-19 16:58:02 -04:00
component.hpp Move copyright to the top of files. 2023-08-19 13:57:01 +02:00
event.hpp Feature: input can now use overwrite mode when toggled with insert key (#735) 2023-08-28 21:07:26 +02:00
loop.hpp Move copyright to the top of files. 2023-08-19 13:57:01 +02:00
mouse.hpp Checkbox button debounce (#774) 2023-11-11 17:33:50 +01:00
receiver.hpp Move copyright to the top of files. 2023-08-19 13:57:01 +02:00
screen_interactive.hpp Checkbox button debounce (#774) 2023-11-11 17:33:50 +01:00
task.hpp Move copyright to the top of files. 2023-08-19 13:57:01 +02:00