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/keyfocusable.cpp | |
parent | edas (diff) | |
download | flatland-3922c797671cdc23d9233ff76909489e45fd0006.tar.gz flatland-3922c797671cdc23d9233ff76909489e45fd0006.zip |
Test two completed successfully
Diffstat (limited to 'engine/keyfocusable.cpp')
-rw-r--r-- | engine/keyfocusable.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/engine/keyfocusable.cpp b/engine/keyfocusable.cpp new file mode 100644 index 0000000..39f4b01 --- /dev/null +++ b/engine/keyfocusable.cpp @@ -0,0 +1,14 @@ +#include "serial/keyfocusable.h" +#include "SDL2/SDL.h" + +void KeyFocusable::serial_cb(const SDL_Event *event) +{ + key_cb(&event->key); +} + +Uint32 KeyFocusable::stackID() const +{ + // Set SDL_KEYDOWN by default + return SDL_KEYDOWN; +} + |