Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update XBOXRECV.h #1

Open
wants to merge 1 commit into
base: xbox-chatpad
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions XBOXRECV.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ class XBOXRECV : public USBDeviceConfig {
pFuncOnInit = funcOnInit;
};

bool getChatpadModifier(ChatpadModiferEnum b, uint8_t controller = 0);
bool getChatpadModifierPress(ChatpadModiferEnum b, uint8_t controller = 0);
bool getChatpadModifierClick(ChatpadModiferEnum b, uint8_t controller = 0);
bool getChatpadClick(ChatpadButtonEnum b, uint8_t controller = 0);
bool chatpadChanged(uint8_t controller = 0);

Expand Down Expand Up @@ -293,9 +294,8 @@ class XBOXRECV : public USBDeviceConfig {
/* Chatpad State */
bool firstChatpadRun = true;
bool chatpadInitNeeded[4] = { true };
uint8_t chatpadModRaw[4] = {0};
uint8_t chatpadModState[4] = {0};
uint8_t chatpadModRawOld[4] = {0};
uint8_t chatpadModStateOld[4] = {0};
uint8_t chatpadModClickState[4] = {0};
uint8_t chatpadDataPacketLast[4][3];
bool flagUpperCase = false;
Expand All @@ -306,4 +306,3 @@ class XBOXRECV : public USBDeviceConfig {
bool chatpadStateChanged[4]; // True if a button has changed
};
#endif