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"
};
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)
{
switch( device )
@@ -383,7 +396,6 @@ void RageInput::Update( float fDeltaTime )
}
bool RageInput::BeingPressed( DeviceInput di, bool bPrevState )
{
switch( di.device )