mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 17:53:42 +01:00
Really avoid crash if no xinput dll
This commit is contained in:
1 parent
22505ac998
commit
17e3751f45
1 file changed
+3
@@ -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) );
|
||||
|
||||
Reference in new issue
Block a user