diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2022-11-30 00:45:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-30 00:45:25 +0100 |
commit | cafca891ea7c02a3e298675b070aef86773220b7 (patch) | |
tree | 8a7180b59abdea9ea1ade1b2fdc6b03ae8fcd012 /src/input_common/main.cpp | |
parent | Merge pull request #9352 from lioncash/vidcast (diff) | |
parent | input_common: Pump sdl events from main thread (diff) | |
download | yuzu-cafca891ea7c02a3e298675b070aef86773220b7.tar yuzu-cafca891ea7c02a3e298675b070aef86773220b7.tar.gz yuzu-cafca891ea7c02a3e298675b070aef86773220b7.tar.bz2 yuzu-cafca891ea7c02a3e298675b070aef86773220b7.tar.lz yuzu-cafca891ea7c02a3e298675b070aef86773220b7.tar.xz yuzu-cafca891ea7c02a3e298675b070aef86773220b7.tar.zst yuzu-cafca891ea7c02a3e298675b070aef86773220b7.zip |
Diffstat (limited to 'src/input_common/main.cpp')
-rw-r--r-- | src/input_common/main.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/input_common/main.cpp b/src/input_common/main.cpp index baeed2e02..942a13535 100644 --- a/src/input_common/main.cpp +++ b/src/input_common/main.cpp @@ -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"); |