Mercurial > hg > Game > Cerium
view TaskManager/Test/test_render/Button.cpp @ 268:2b7d631695ca draft
merge
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 04 Jun 2009 00:00:09 +0900 |
parents | 67a5469dfef2 |
children | 1fd0107ebb25 |
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; }