diff options
author | ancarola <raffaele.ancarola@epfl.ch> | 2019-01-19 13:07:37 +0100 |
---|---|---|
committer | ancarola <raffaele.ancarola@epfl.ch> | 2019-01-19 13:07:37 +0100 |
commit | 3922c797671cdc23d9233ff76909489e45fd0006 (patch) | |
tree | d385754f00159b93a8966fb5080a51dc2d0eb4a0 /engine/include/serial/keyfocusable.h | |
parent | edas (diff) | |
download | flatland-3922c797671cdc23d9233ff76909489e45fd0006.tar.gz flatland-3922c797671cdc23d9233ff76909489e45fd0006.zip |
Test two completed successfully
Diffstat (limited to '')
-rw-r--r-- | engine/include/serial/keyfocusable.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/engine/include/serial/keyfocusable.h b/engine/include/serial/keyfocusable.h index e69de29..02b3361 100644 --- a/engine/include/serial/keyfocusable.h +++ b/engine/include/serial/keyfocusable.h @@ -0,0 +1,24 @@ +#ifndef __KEYFOCUSABLE_H__ +#define __KEYFOCUSABLE_H__ + +#include "focusable.h" + +struct SDL_KeyboardEvent; + +class KeyFocusable : public Focusable +{ + + virtual void serial_cb(const SDL_Event*) override; + + virtual Uint32 stackID() const override; + +protected: + + virtual void key_cb(const SDL_KeyboardEvent*) = 0; + +public: + + using Focusable::Focusable; +}; + +#endif |