mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-22 04:38:09 +08:00
Add mouse implementation of most components.
This commit is contained in:
@@ -59,6 +59,7 @@ struct Event {
|
||||
bool is_character() const { return type_ == Type::Character;}
|
||||
wchar_t character() const { return character_; }
|
||||
|
||||
bool is_mouse() const;
|
||||
bool is_mouse_left_down() const { return type_ == Type::MouseLeftDown; }
|
||||
bool is_mouse_left_move() const { return type_ == Type::MouseLeftMove; }
|
||||
bool is_mouse_middle_down() const { return type_ == Type::MouseMiddleDown; }
|
||||
@@ -74,6 +75,8 @@ struct Event {
|
||||
|
||||
bool operator==(const Event& other) const { return input_ == other.input_; }
|
||||
|
||||
void MoveMouse(int dx, int dy);
|
||||
|
||||
//--- State section ----------------------------------------------------------
|
||||
private:
|
||||
enum class Type {
|
||||
|
Reference in New Issue
Block a user