mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2025-08-10 09:42:32 -07:00
core: Make sure npad is initialized
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user