|
|
@ -67,7 +67,7 @@ void send_keyboard_report(void) {
|
|
|
|
void add_key(uint8_t key)
|
|
|
|
void add_key(uint8_t key)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
#ifdef NKRO_ENABLE
|
|
|
|
#ifdef NKRO_ENABLE
|
|
|
|
if (keyboard_nkro && keyboard_protocol) {
|
|
|
|
if (keyboard_nkro) {
|
|
|
|
add_key_bit(key);
|
|
|
|
add_key_bit(key);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -78,7 +78,7 @@ void add_key(uint8_t key)
|
|
|
|
void del_key(uint8_t key)
|
|
|
|
void del_key(uint8_t key)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
#ifdef NKRO_ENABLE
|
|
|
|
#ifdef NKRO_ENABLE
|
|
|
|
if (keyboard_nkro && keyboard_protocol) {
|
|
|
|
if (keyboard_nkro) {
|
|
|
|
del_key_bit(key);
|
|
|
|
del_key_bit(key);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -151,7 +151,7 @@ uint8_t has_anymod(void)
|
|
|
|
uint8_t get_first_key(void)
|
|
|
|
uint8_t get_first_key(void)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
#ifdef NKRO_ENABLE
|
|
|
|
#ifdef NKRO_ENABLE
|
|
|
|
if (keyboard_nkro && keyboard_protocol) {
|
|
|
|
if (keyboard_nkro) {
|
|
|
|
uint8_t i = 0;
|
|
|
|
uint8_t i = 0;
|
|
|
|
for (; i < REPORT_BITS && !keyboard_report->nkro.bits[i]; i++)
|
|
|
|
for (; i < REPORT_BITS && !keyboard_report->nkro.bits[i]; i++)
|
|
|
|
;
|
|
|
|
;
|
|
|
|