Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/CPushButton.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations) (download) (as text)
Sun Aug 15 01:53:13 2010 UTC (13 years, 9 months ago) by okadu
File MIME type: text/x-chdr
File size: 581 byte(s)


1 #ifndef CPUSHBUTTON_H_INCLUDED
2 #define CPUSHBUTTON_H_INCLUDED
3
4 #include "CInterface.h"
5
6 /*
7 * プッシュボタン
8 */
9 class CPushButton: public CInterface{
10 private:
11 int m_State; // 状態
12 bool m_Sound; // 音設定
13 bool m_Pushed; // 押下フラグ
14 bool m_Pushable; // プッシュ可能 /*CP932対応*/
15 public:
16 void Init(int, int, int, int, char *, CInterface *);
17 void SetSound(bool s){ m_Sound = s; }
18 void SetPushable(bool p){ m_Pushable = p; }
19 bool IsPushed(){ return m_Pushed; }
20 void SetPush(bool p){ m_Pushed = p; }
21 bool ScanInput();
22 void Render();
23 };
24
25 #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26