hide pump_t inside RageINput
This commit is contained in:
@@ -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 )
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user