Really avoid crash if no xinput dll

This commit is contained in:
Henrik Rydgard committed 2013-07-25 23:58:19 +02:00
1 parent 22505ac998
commit 17e3751f45
1 file changed
+3
+3
View File
@@ -115,6 +115,9 @@ struct Stick {
static Stick NormalizedDeadzoneFilter(short x, short y);
int XinputDevice::UpdateState(InputState &input_state) {
if (!s_pXInputDLL)
return 0;
if (this->check_delay-- > 0) return -1;
XINPUT_STATE state;
ZeroMemory( &state, sizeof(XINPUT_STATE) );