menu controllable: when the mouse doesn't move: the keyboard event overlaod mouse's

This commit is contained in:
arthur.jamet
2021-06-17 11:39:55 +02:00
parent a1ad9a57ac
commit e3b6b87b11
2 changed files with 12 additions and 3 deletions
@@ -20,6 +20,9 @@ namespace BBM
//! @brief index of the current button selected
WAL::Entity *_currentButton;
//! @brief position of the mouse at the precedent scene (to know which controller event to watch)
Vector2f _oldMousePosition;
//! @brief update current button reference
//! @param selected lets know if te new selected button is 'pressed'
void _updateCurrentButton(bool selected, Vector2f move);