Merge pull request #9322 from german77/pump_events

input_common: Pump SDL events from main thread
This commit is contained in:
liamwhite 2022-11-29 18:45:25 -05:00 committed by GitHub
commit 994e446168
6 changed files with 35 additions and 10 deletions

View file

@ -318,6 +318,12 @@ struct InputSubsystem::Impl {
#endif
}
void PumpEvents() const {
#ifdef HAVE_SDL2
sdl->PumpEvents();
#endif
}
void RegisterInput(const MappingData& data) {
mapping_factory->RegisterInput(data);
}
@ -466,6 +472,10 @@ void InputSubsystem::StopMapping() const {
impl->mapping_factory->StopMapping();
}
void InputSubsystem::PumpEvents() const {
impl->PumpEvents();
}
std::string GenerateKeyboardParam(int key_code) {
Common::ParamPackage param;
param.Set("engine", "keyboard");