view Renderer/Engine/KeyStat.h @ 541:1a31b8820a4d draft

Cerium Rendering Library
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 12 Oct 2009 10:17:09 +0900
parents 3bc98f6d31ff
children eb6add789a24
line wrap: on
line source

#ifndef INCLUDED_KEY_STATUS
#define INCLUDED_KEY_STATUS

enum {
    NONE,
    HOLD,
    PUSH,
};

// 可変長の構造体にする。
// int で1つ送り bit field でやると
struct key_stat {
    int length;
    int right;
    int left;
    int up;
    int down;
    int circle;
    unsigned char data[0];
};

#endif