mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-05 17:20:30 +00:00
GUI: Add MouseMoved to trigger MouseEntered
This commit is contained in:
parent
c58c89b391
commit
598336710b
@ -126,6 +126,12 @@ void GridItemWidget::handleMouseLeft(int button) {
|
||||
}
|
||||
}
|
||||
|
||||
void GridItemWidget::handleMouseMoved(int x, int y, int button) {
|
||||
if (!isHighlighted) {
|
||||
handleMouseEntered(button);
|
||||
}
|
||||
}
|
||||
|
||||
void GridItemWidget::handleMouseDown(int x, int y, int button, int clickCount) {
|
||||
if (isHighlighted) {
|
||||
// Work in progress
|
||||
|
@ -218,6 +218,7 @@ public:
|
||||
void handleMouseEntered(int button) override;
|
||||
void handleMouseLeft(int button) override;
|
||||
void handleMouseDown(int x, int y, int button, int clickCount) override;
|
||||
void handleMouseMoved(int x, int y, int button) override;
|
||||
};
|
||||
|
||||
} // End of namespace GUI
|
||||
|
Loading…
Reference in New Issue
Block a user