Merge pull request #6855 from GregorR/null-input-joypad-driver

Fix input when the joypad driver is NULL.
This commit is contained in:
Twinaphex 2018-06-02 23:04:45 +02:00 committed by GitHub
commit 6ecf64d08f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1184,6 +1184,9 @@ void input_get_state_for_port(void *data, unsigned port, input_bits_t *p_new_sta
BIT256_SET_PTR(p_new_state, i);
}
if (!joypad_driver)
return;
for (i = 0; i < 2; i++)
{
for (j = 0; j < 2; j++)