Merge pull request #9322 from german77/pump_events
input_common: Pump SDL events from main thread
This commit is contained in:
commit
994e446168
6 changed files with 35 additions and 10 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue