annotate Renderer/Engine/Button.h @ 1479:163220e54cc0 draft

remove hard code for TaskLog
author Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
date Tue, 24 Jul 2012 17:15:15 +0900
parents d8eca90afa21
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
1 #ifndef INCLUDED_BUTTON
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
2 #define INCLUDED_BUTTON
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
3
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
4 class Button {
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
5 public:
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
6 int push;
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
7 int hold;
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
8 int release;
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
9
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
10 Button(void) : push(0), hold(0), release(0) {}
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
11
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
12 void push_work(void);
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
13 void release_work(void);
1041
d8eca90afa21 add button api.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 539
diff changeset
14 void reset(void);
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
15 int isPush(void);
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
16 int isHold(void);
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
17 int isRelease(void);
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
18 };
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
19
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
20 #endif