summaryrefslogtreecommitdiffstats
path: root/engine/include/serial/keyfocusable.hpp
blob: 26f3ce2777fa67127810b954e88f8024e47a89a6 (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;

namespace flat {

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;
};

}

#endif