Skip to content

New easier more efficient button state update function - #279

Open
simachines wants to merge 3 commits into
lemmingDev:masterfrom
simachines:master
Open

New easier more efficient button state update function#279
simachines wants to merge 3 commits into
lemmingDev:masterfrom
simachines:master

Conversation

@simachines

Copy link
Copy Markdown
Contributor

//example usage
if (bleGamepad.isConnected()) {
bleGamepad.setButtons32(ButtonStates >> 1); // Update all buttons at once, >> 1 if your buttons start with one
bleGamepad.setThrottle(throttle);
bleGamepad.sendReport();
}

@simachines
simachines marked this pull request as draft April 23, 2025 06:19
@simachines
simachines marked this pull request as ready for review April 23, 2025 06:20
@LeeNX

LeeNX commented Apr 25, 2025

Copy link
Copy Markdown
Collaborator

Interesting idea, maybe the function name should not have 32 in it, might have people thinking that it can only be used with 32 buttons. How about setMultiButtons or something better?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants