Mercurial > hg > Members > kono > Cerium
view 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 |
line wrap: on
line source
#include "Button.h" void Button::push_work(void) { #if 0 if (hold) { push = 0; } else { push = 1; } #else push = (!hold)*1; #endif hold = 1; release = 0; } void Button::release_work(void) { push = 0; hold = 0; release = 1; }