forked from mirrors/qmk_userspace
Format code according to conventions (#16322)
This commit is contained in:
parent
afcdd7079c
commit
63646e8906
345 changed files with 4916 additions and 3229 deletions
|
@ -22,16 +22,30 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
|
||||
static uint32_t programmable_button_report = 0;
|
||||
|
||||
void programmable_button_clear(void) { programmable_button_report = 0; }
|
||||
void programmable_button_clear(void) {
|
||||
programmable_button_report = 0;
|
||||
}
|
||||
|
||||
void programmable_button_send(void) { host_programmable_button_send(programmable_button_report); }
|
||||
void programmable_button_send(void) {
|
||||
host_programmable_button_send(programmable_button_report);
|
||||
}
|
||||
|
||||
void programmable_button_on(uint8_t index) { programmable_button_report |= REPORT_BIT(index); }
|
||||
void programmable_button_on(uint8_t index) {
|
||||
programmable_button_report |= REPORT_BIT(index);
|
||||
}
|
||||
|
||||
void programmable_button_off(uint8_t index) { programmable_button_report &= ~REPORT_BIT(index); }
|
||||
void programmable_button_off(uint8_t index) {
|
||||
programmable_button_report &= ~REPORT_BIT(index);
|
||||
}
|
||||
|
||||
bool programmable_button_is_on(uint8_t index) { return !!(programmable_button_report & REPORT_BIT(index)); };
|
||||
bool programmable_button_is_on(uint8_t index) {
|
||||
return !!(programmable_button_report & REPORT_BIT(index));
|
||||
};
|
||||
|
||||
uint32_t programmable_button_get_report(void) { return programmable_button_report; };
|
||||
uint32_t programmable_button_get_report(void) {
|
||||
return programmable_button_report;
|
||||
};
|
||||
|
||||
void programmable_button_set_report(uint32_t report) { programmable_button_report = report; }
|
||||
void programmable_button_set_report(uint32_t report) {
|
||||
programmable_button_report = report;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue