annotate TaskManager/Test/test_render/KeyStat.h @ 421:6094dfd1f08c draft

comment
author game@henri.cr.ie.u-ryukyu.ac.jp
date Thu, 24 Sep 2009 12:35:32 +0900
parents 0e62e80fc039
children 60f44d3ea452
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
417
0e62e80fc039 add key
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 #ifndef INCLUDED_KEY_STATUS
0e62e80fc039 add key
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 #define INCLUDED_KEY_STATUS
0e62e80fc039 add key
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3
0e62e80fc039 add key
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 enum {
0e62e80fc039 add key
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 NONE,
0e62e80fc039 add key
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 HOLD,
0e62e80fc039 add key
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 PUSH,
0e62e80fc039 add key
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 };
0e62e80fc039 add key
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9
421
6094dfd1f08c comment
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 417
diff changeset
10 // 可変長の構造体にする。
6094dfd1f08c comment
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 417
diff changeset
11 // int で1つ送り bit field でやると
417
0e62e80fc039 add key
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 typedef struct key_stat {
421
6094dfd1f08c comment
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 417
diff changeset
13 int length;
417
0e62e80fc039 add key
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 int right;
0e62e80fc039 add key
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 int left;
0e62e80fc039 add key
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 int up;
0e62e80fc039 add key
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 int down;
0e62e80fc039 add key
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 int circle;
421
6094dfd1f08c comment
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 417
diff changeset
19 unsigned char data[0];
417
0e62e80fc039 add key
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 };
0e62e80fc039 add key
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
21
0e62e80fc039 add key
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 #endif