New module: Platform - Split window management from Utility module (#128)
* New module: Platform - Split window management from Utility module Final touch * NDK/SDK: Bring back initialization of Utility
This commit is contained in:
committed by
Jérôme Leclercq
parent
41a1b5d493
commit
5aa072cee3
30
tests/Engine/Platform/EventHandler/EventState.hpp
Normal file
30
tests/Engine/Platform/EventHandler/EventState.hpp
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef __EVENTSTATE_HPP__
|
||||
#define __EVENTSTATE_HPP__
|
||||
|
||||
#include "BaseState.hpp"
|
||||
|
||||
#include <deque>
|
||||
|
||||
class StateContext;
|
||||
|
||||
class EventState : public BaseState
|
||||
{
|
||||
public:
|
||||
EventState(StateContext& stateContext);
|
||||
|
||||
void Enter(Ndk::StateMachine& fsm) override;
|
||||
|
||||
private:
|
||||
void AddEvent(const Nz::WindowEvent& event);
|
||||
|
||||
void DrawMenu() override;
|
||||
|
||||
Nz::String ToString(const Nz::WindowEvent& event) const;
|
||||
|
||||
std::deque<Nz::String> m_events;
|
||||
int m_count;
|
||||
NazaraSlot(Nz::EventHandler, OnEvent, m_eventSlot);
|
||||
NazaraSlot(Nz::EventHandler, OnKeyPressed, m_keyPressedSlot);
|
||||
};
|
||||
|
||||
#endif // __EVENTSTATE_HPP__
|
||||
Reference in New Issue
Block a user