Mercurial > hg > Members > kono > Cerium
annotate TaskManager/Test/test_render/Button.cpp @ 146:2284efc89f63
TileList の生成の修正
author | gongo@gendarme.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Tue, 02 Dec 2008 14:12:01 +0900 |
parents | 861271089c43 |
children | eb20274baa7c |
rev | line source |
---|---|
140 | 1 #include "Button.h" |
2 | |
3 void | |
4 Button::push_work(void) | |
5 { | |
6 #if 0 | |
7 if (hold) { | |
8 push = 0; | |
9 } else { | |
10 push = 1; | |
11 } | |
12 #else | |
13 push = (!hold)*1; | |
14 #endif | |
15 | |
16 hold = 1; | |
17 release = 0; | |
18 } | |
19 | |
20 void | |
21 Button::release_work(void) | |
22 { | |
23 push = 0; | |
24 hold = 0; | |
25 release = 1; | |
26 } |