blob: a46d03b54f147a5f4bffd90d0b2541c29d0f5783 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "serial/keyfocusable.hpp"
#include "SDL2/SDL.h"
using namespace flat;
void KeyFocusable::serial_cb(const SDL_Event *event)
{
key_cb(&event->key);
}
uint32_t KeyFocusable::stackID() const
{
// Set SDL_KEYDOWN by default
return SDL_KEYDOWN;
}
|