forked from eden-emu/eden
core: Make sure npad is initialized
This commit is contained in:
parent
d10464de30
commit
e8ad603cd9
2 changed files with 4 additions and 1 deletions
|
@ -20,6 +20,9 @@ InputInterpreter::InputInterpreter(Core::System& system)
|
|||
InputInterpreter::~InputInterpreter() = default;
|
||||
|
||||
void InputInterpreter::PollInput() {
|
||||
if (npad == nullptr) {
|
||||
return;
|
||||
}
|
||||
const auto button_state = npad->GetAndResetPressState();
|
||||
|
||||
previous_index = current_index;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue