input_common: Pump sdl events from main thread
This commit is contained in:
parent
0e8043fc24
commit
cddbfe5e67
6 changed files with 35 additions and 10 deletions
|
@ -324,6 +324,12 @@ struct InputSubsystem::Impl {
|
|||
#endif
|
||||
}
|
||||
|
||||
void PumpEvents() const {
|
||||
#ifdef HAVE_SDL2
|
||||
sdl->PumpEvents();
|
||||
#endif
|
||||
}
|
||||
|
||||
void RegisterInput(const MappingData& data) {
|
||||
mapping_factory->RegisterInput(data);
|
||||
}
|
||||
|
@ -472,6 +478,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