22 std::unique_ptr<views::pixel_grid_view> view,
27 void handle_key_event(engine::input::key key, engine::input::action action);
29 void handle_mouse_event(engine::input::mouse mouse,
30 engine::input::action action);
32 void handle_cursor_event(
const Eigen::Vector2f &cursor_position);
35 std::unique_ptr<models::mnist> model_;
36 std::unique_ptr<views::pixel_grid_view> view_;
37 std::reference_wrapper<engine::input::event_bus> bus_;
39 std::array<float, shared::TOTAL_PIXELS> drawn_image_{};
40 bool mouse_pressed_{
false};