1
0
Fork 0
forked from eden-emu/eden

core: Make sure npad is initialized

This commit is contained in:
Narr the Reg 2023-12-14 20:04:38 -06:00
parent 5913b7a750
commit fd0ac567a5
2 changed files with 4 additions and 1 deletions

View file

@ -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;