diff options
author | Michael Pavone <pavone@retrodev.com> | 2017-06-14 09:48:46 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2017-06-14 09:48:46 -0700 |
commit | ee59b3c6b69e9b5cfb0f5135dfb5fe3ce9a1a8c9 (patch) | |
tree | 351b79f6a4fb4041c37dca51dd9600a6d6c33424 /render.h | |
parent | e591e6333eb073c557e0c827bc132f6568017677 (diff) |
Initial support for drag and drop. Some work needed for proper menu integration.
Diffstat (limited to 'render.h')
-rw-r--r-- | render.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -69,6 +69,8 @@ typedef enum { #define RENDER_NOT_MAPPED -2 #define RENDER_NOT_PLUGGED_IN -3 +typedef void (*drop_handler)(const char *filename); + uint32_t render_map_color(uint8_t r, uint8_t g, uint8_t b); void render_save_screenshot(char *path); uint32_t *render_get_framebuffer(uint8_t which, int *pitch); @@ -88,6 +90,7 @@ void process_events(); int render_width(); int render_height(); int render_fullscreen(); +void render_set_drag_drop_handler(drop_handler handler); void process_events(); int32_t render_translate_input_name(int32_t controller, char *name, uint8_t is_axis); int32_t render_dpad_part(int32_t input); |