fluffymadness / ATMega32U4-Switch-Fightstick

ATMega32U4-Switch-Fightstick
64 stars 15 forks source link

Screenshot Button #3

Open sfkento723 opened 4 years ago

sfkento723 commented 4 years ago

Hi! I thought your project was super cool, and actually managed to build my own fightstick using the repository you provided.

I realize that the Pokken Controller doesn't come with the screenshot button, but since to my knowledge it doesn't come with the home button either, do you know if it would be possible to add the Screenshot button to the fightstick?

I'm not quite sure if this is the right place to be asking for such a thing, but I think this project is really great and I wanted to see if we could work on making it even better.

fluffymadness commented 4 years ago

Hi! Yeah that should work. In the main.ino I've commented out unused button masks

/* 0x4000, 0x8000,

define CAPTURE_MASK_ON 0x2000

define R3_MASK_ON 0x800

define L3_MASK_ON 0x400

*/

Capture Mask is what you are looking for.

sfkento723 commented 4 years ago

I got it to work, thank you!

bool buttonStartBefore; bool buttonSelectBefore; byte buttonStatus[16];

It took me longer than I'd like to admit to realize that I had to change the array size of buttonStatus[15].