diff options
Diffstat (limited to 'src/video/sdl2_v.h')
-rw-r--r-- | src/video/sdl2_v.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/video/sdl2_v.h b/src/video/sdl2_v.h index ba7e322ed..ed8543ed4 100644 --- a/src/video/sdl2_v.h +++ b/src/video/sdl2_v.h @@ -37,10 +37,19 @@ public: bool ClaimMousePointer() override; + void EditBoxGainedFocus() override; + + void EditBoxLostFocus() override; + const char *GetName() const override { return "sdl"; } private: int PollEvent(); bool CreateMainSurface(uint w, uint h, bool resize); + + /** + * This is true to indicate that keyboard input is in text input mode, and SDL_TEXTINPUT events are enabled. + */ + bool edit_box_focused; }; /** Factory for the SDL video driver. */ |