| 87 | } |
| 88 | |
| 89 | void ExtensionState::FireInputEvents() |
| 90 | { |
| 91 | OPTICK_EVENT(Optick::Category::Input); |
| 92 | if (!deferredInputEvents_.empty()) { |
| 93 | LuaClientPin lua(*this); |
| 94 | if (lua) { |
| 95 | SDL_Event evt; |
| 96 | while (deferredInputEvents_.try_pop(evt)) { |
| 97 | lua->OnInputEvent(&evt, nullptr); |
| 98 | } |
| 99 | } |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | void ExtensionState::OnInputEvent(SDL_Event* event, int& result) |
| 104 | { |
nothing calls this directly
no test coverage detected