OSDN Git Service

rm latex/
[moflib/moflib.git] / oldmof / KeyPressedEventCondition.hpp
1 #pragma once
2 #include "mof/EventCondition.hpp"
3 #include "mof/InputReceiver.hpp"
4 #include "boost/shared_ptr.hpp"
5
6 namespace mof{
7
8
9     class KeyPressedEventCondition : public EventCondition{
10         mof::InputReceiver::Key m_key;
11         boost::shared_ptr<mof::InputReceiver> m_pInputReceiver;
12         bool m_oldState;
13         bool m_currentState;
14     public:
15         KeyPressedEventCondition
16         (
17             mof::InputReceiver::Key key , 
18             const boost::shared_ptr<mof::InputReceiver>& pInputReceiver 
19         );
20
21         virtual ~KeyPressedEventCondition();
22         virtual bool test();
23         virtual void update();
24         virtual bool isDisposable();
25     };
26
27
28 }
29