* \brief Model to send to KeyboardAction callbacks as only parameter */
| 9 | * \brief Model to send to KeyboardAction callbacks as only parameter |
| 10 | */ |
| 11 | class InputActionEvent |
| 12 | { |
| 13 | private: |
| 14 | InputAction& m_action; |
| 15 | InputCondition& m_condition; |
| 16 | |
| 17 | public: |
| 18 | /** |
| 19 | * \brief Creates a new KeyboardActionEvent |
| 20 | * \param action Action linked to the event |
| 21 | * \param condition Condition that triggered the event <REVISION> Add |
| 22 | * specific combination |
| 23 | */ |
| 24 | InputActionEvent(InputAction& action, InputCondition& condition); |
| 25 | /** |
| 26 | * \brief Get the KeyboardAction linked to the KeyboardActionEvent |
| 27 | * \return A pointer to the KeyboardAction linked to the |
| 28 | * KeyboardActionEvent |
| 29 | */ |
| 30 | [[nodiscard]] InputAction& getAction() const; |
| 31 | /** |
| 32 | * \brief Get the InputCondition that triggered the KeyboardAction |
| 33 | * \return A pointer to the KeyClass that represents the key that |
| 34 | * triggered the KeyboardAction |
| 35 | */ |
| 36 | InputCondition& getCondition() const; |
| 37 | }; |
| 38 | } // namespace obe::Input |