view TaskManager/Test/test_render/Button.cpp @ 176:08e2bb36639b

fix
author gongo@localhost.localdomain
date Tue, 16 Dec 2008 17:01:24 +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;
}