Handle file drop from input_manager

A file is pushed (or an apk is installed) to the device on file drop.
This behavior is specific to the screen and its input_manager.
This commit is contained in:
Romain Vimont 2022-01-21 19:26:36 +01:00
commit 1ffe312369
5 changed files with 48 additions and 36 deletions

View file

@ -8,6 +8,7 @@
#include <SDL2/SDL.h>
#include "controller.h"
#include "file_pusher.h"
#include "fps_counter.h"
#include "options.h"
#include "trait/key_processor.h"
@ -15,6 +16,7 @@
struct sc_input_manager {
struct sc_controller *controller;
struct sc_file_pusher *fp;
struct sc_screen *screen;
struct sc_key_processor *kp;
@ -44,6 +46,7 @@ struct sc_input_manager {
struct sc_input_manager_params {
struct sc_controller *controller;
struct sc_file_pusher *fp;
struct sc_screen *screen;
struct sc_key_processor *kp;
struct sc_mouse_processor *mp;