Add screenshot feature

This commit is contained in:
Such Meme, Many Skill
2020-05-03 02:00:04 +02:00
parent 6c2d0cf162
commit cb46e4bc40
5 changed files with 86 additions and 9 deletions

View File

@@ -3,6 +3,7 @@
#include "../utils/btn.h"
#include "../gfx/gfx.h"
#include "../utils/types.h"
#include "../tegraexplorer/utils/utils.h"
static Inputs inputs = {0};
u16 LbaseX = 0, LbaseY = 0, RbaseX = 0, RbaseY = 0;
@@ -15,6 +16,10 @@ Inputs *hidRead(){
jc_gamepad_rpt_t *controller = joycon_poll();
static bool errPrint = false;
if (controller->cap)
utils_takeScreenshot();
u8 btn = btn_read();
inputs.volp = (btn & BTN_VOL_UP) ? 1 : 0;
inputs.volm = (btn & BTN_VOL_DOWN) ? 1 : 0;