poll DInput for number of joysticks instead of polling registry for num HID devices. Fixes us resetting INPUTMAN too early (after Windows sees the HID device but before DirectInput exposes it)

This commit is contained in:
Chris Danford
2006-02-09 00:53:20 +00:00
parent ecce21a0b4
commit a1fcc64baf
4 changed files with 30 additions and 20 deletions
@@ -18,7 +18,7 @@ public:
private:
RageThread m_Thread;
bool m_bShutdown;
int m_iLastSeenNumUsbHid; // use this to figure out if a device was plugged/unplugged
int m_iLastSeenNumJoysticks; // use this to figure out if a joystick was plugged/unplugged
void UpdatePolled( DIDevice &device, const RageTimer &tm );
void UpdateBuffered( DIDevice &device, const RageTimer &tm );