view Renderer/Engine/Button.h @ 1996:9657434c21a4 draft

change memory allocate function malloc() to manager->allocate in my_read
author Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
date Mon, 21 Apr 2014 18:49:21 +0900
parents d8eca90afa21
children
line wrap: on
line source

#ifndef INCLUDED_BUTTON
#define INCLUDED_BUTTON

class Button {
public:
    int push;
    int hold;
    int release;

    Button(void) : push(0), hold(0), release(0) {}

    void push_work(void);
    void release_work(void);
    void reset(void);
    int isPush(void);
    int isHold(void);
    int isRelease(void);
};

#endif