summaryrefslogtreecommitdiffstats
path: root/engine/include/serial/keyfocusable.hpp
blob: e28e333668e0c1301b082fc6d5a5ec6de047daa4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __KEYFOCUSABLE_H__
#define __KEYFOCUSABLE_H__

#include "focusable.hpp"

struct SDL_KeyboardEvent;

class KeyFocusable : virtual public Focusable
{

    virtual void serial_cb(const SDL_Event*) override;

    virtual uint32_t stackID() const override;

protected:

    virtual void key_cb(const SDL_KeyboardEvent*) = 0;

public: 

    using Focusable::Focusable;
};

#endif