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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user