diff --git a/src/main.c b/src/main.c index a3a5658..8629636 100644 --- a/src/main.c +++ b/src/main.c @@ -18,6 +18,12 @@ #include #include +#define ENABLE_USB 0 +#ifdef ENABLE_USB +#include +#include +#endif + // Global application data // struct { @@ -466,6 +472,16 @@ void hex_view(void) gint_osmenu(); jscene_queue_event(scene, (jevent){ .type = JSCENE_PAINT }); } +#if ENABLE_USB + if(key == KEY_OPTN && e.key.shift && e.key.alpha) { + if(!usb_is_open()) { + usb_interface_t const *intf[] = { &usb_ff_bulk, NULL }; + usb_open(intf, GINT_CALL_NULL); + usb_open_wait(); + } + usb_fxlink_screenshot(true); + } +#endif if(jscene_focused_widget(scene) == goto_input) continue;