Fix handling text input events in app::scene_application
This commit is contained in:
parent
5fcd2a171f
commit
944d1374a5
4 changed files with 10 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ namespace psemek::app
|
|||
void on_event(touch_up_event const &) override;
|
||||
void on_event(touch_move_event const &) override;
|
||||
void on_event(key_event const &) override;
|
||||
void on_event(text_input_event const &) override;
|
||||
|
||||
void stop() override;
|
||||
bool running() const override;
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ namespace psemek::app
|
|||
void on_event(touch_up_event const &) override;
|
||||
void on_event(touch_move_event const &) override;
|
||||
void on_event(key_event const &) override;
|
||||
void on_event(text_input_event const &) override;
|
||||
|
||||
void stop() override;
|
||||
|
||||
|
|
|
|||
|
|
@ -48,6 +48,9 @@ namespace psemek::app
|
|||
apply(state_, event);
|
||||
}
|
||||
|
||||
void application_base::on_event(text_input_event const &)
|
||||
{}
|
||||
|
||||
void application_base::stop()
|
||||
{
|
||||
running_ = false;
|
||||
|
|
|
|||
|
|
@ -48,6 +48,11 @@ namespace psemek::app
|
|||
on_event_impl(event);
|
||||
}
|
||||
|
||||
void scene_application::on_event(text_input_event const & event)
|
||||
{
|
||||
on_event_impl(event);
|
||||
}
|
||||
|
||||
void scene_application::stop()
|
||||
{
|
||||
if (auto scene = current_scene())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue