hide pump_t inside RageINput

This commit is contained in:
Glenn Maynard
2003-02-15 06:00:33 +00:00
parent 6b8395335d
commit a39bf03926
2 changed files with 15 additions and 12 deletions
+13 -1
View File
@@ -34,6 +34,19 @@ static const char *PumpButtonNames[] = {
"P2 UL", "P2 UR", "P2 MID", "P2 DL", "P2 DR" "P2 UL", "P2 UR", "P2 MID", "P2 DL", "P2 DR"
}; };
struct RageInput::pump_t
{
HANDLE h;
OVERLAPPED ov;
long buf;
bool pending;
pump_t();
~pump_t();
bool init(int devno);
int GetPadEvent();
};
int DeviceInput::NumButtons(InputDevice device) int DeviceInput::NumButtons(InputDevice device)
{ {
switch( device ) switch( device )
@@ -383,7 +396,6 @@ void RageInput::Update( float fDeltaTime )
} }
bool RageInput::BeingPressed( DeviceInput di, bool bPrevState ) bool RageInput::BeingPressed( DeviceInput di, bool bPrevState )
{ {
switch( di.device ) switch( di.device )
+2 -11
View File
@@ -98,17 +98,8 @@ class RageInput
} m_pumpState[NUM_PUMPS], m_oldPumpState[NUM_PUMPS]; } m_pumpState[NUM_PUMPS], m_oldPumpState[NUM_PUMPS];
/* Structure for reading Pump pads: */ /* Structure for reading Pump pads: */
struct pump_t { struct pump_t;
HANDLE h; pump_t *m_Pumps;
OVERLAPPED ov;
long buf;
bool pending;
pump_t();
~pump_t();
bool init(int devno);
int GetPadEvent();
} *m_Pumps;
public: public:
RageInput(); RageInput();