programmable_buttonHID Programmable Buttons
| Members | Descriptions |
|---|---|
public voidprogrammable_button_clear(void) |
Clear the programmable button report. |
public voidprogrammable_button_add(uint8_t index) |
Set the state of a button. |
public voidprogrammable_button_remove(uint8_t index) |
Reset the state of a button. |
public voidprogrammable_button_register(uint8_t index) |
Set the state of a button, and flush the report. |
public voidprogrammable_button_unregister(uint8_t index) |
Reset the state of a button, and flush the report. |
public boolprogrammable_button_is_on(uint8_t index) |
Get the state of a button. |
public voidprogrammable_button_flush(void) |
Send the programmable button report to the host. |
public uint32_tprogrammable_button_get_report(void) |
Get the programmable button report. |
public voidprogrammable_button_set_report(uint32_t report) |
Set the programmable button report. |
public voidprogrammable_button_clear(void)Clear the programmable button report.
public voidprogrammable_button_add(uint8_t index)Set the state of a button.
index The index of the button to press, from 0 to 31.public voidprogrammable_button_remove(uint8_t index)Reset the state of a button.
index The index of the button to release, from 0 to 31.public voidprogrammable_button_register(uint8_t index)Set the state of a button, and flush the report.
index The index of the button to press, from 0 to 31.public voidprogrammable_button_unregister(uint8_t index)Reset the state of a button, and flush the report.
index The index of the button to release, from 0 to 31.public boolprogrammable_button_is_on(uint8_t index)Get the state of a button.
index The index of the button to check, from 0 to 31.true if the button is pressed.
public voidprogrammable_button_flush(void)Send the programmable button report to the host.
public uint32_tprogrammable_button_get_report(void)Get the programmable button report.
The bitmask of programmable button states.
public voidprogrammable_button_set_report(uint32_t report)Set the programmable button report.
report A bitmask of programmable button states.