X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;ds=sidebyside;f=converter%2Fusb_usb%2Fmatrix.c;h=83d5ab6c8319d1fea3f04d48b488a74a994da18e;hb=054c86bfe88acb999478f0a7c648a774b8dde64f;hp=1cfecde203fb10cdbf238b7bfb5a171ea6cb4e7d;hpb=dc79a8521946a3a2e5b86945b8043b87a8b8d78c;p=max%2Ftmk_keyboard.git
diff --git a/converter/usb_usb/matrix.c b/converter/usb_usb/matrix.c
index 1cfecde2..83d5ab6c 100644
--- a/converter/usb_usb/matrix.c
+++ b/converter/usb_usb/matrix.c
@@ -18,7 +18,7 @@ along with this program. If not, see .
#include
#include
#include "usb_hid.h"
-#include "usb_keycodes.h"
+#include "keycode.h"
#include "util.h"
#include "print.h"
#include "debug.h"
@@ -81,7 +81,7 @@ bool matrix_is_on(uint8_t row, uint8_t col) {
return true;
}
}
- for (uint8_t i = 0; i < REPORT_KEYS; i++) {
+ for (uint8_t i = 0; i < KEYBOARD_REPORT_KEYS; i++) {
if (usb_hid_keyboard_report.keys[i] == code) {
return true;
}
@@ -96,7 +96,7 @@ uint8_t matrix_get_row(uint8_t row) {
row_bits |= usb_hid_keyboard_report.mods;
}
- for (uint8_t i = 0; i < REPORT_KEYS; i++) {
+ for (uint8_t i = 0; i < KEYBOARD_REPORT_KEYS; i++) {
if (IS_ANY(usb_hid_keyboard_report.keys[i])) {
if (row == ROW(usb_hid_keyboard_report.keys[i])) {
row_bits |= ROW_BITS(usb_hid_keyboard_report.keys[i]);
@@ -110,7 +110,7 @@ uint8_t matrix_key_count(void) {
uint8_t count = 0;
count += bitpop(usb_hid_keyboard_report.mods);
- for (uint8_t i = 0; i < REPORT_KEYS; i++) {
+ for (uint8_t i = 0; i < KEYBOARD_REPORT_KEYS; i++) {
if (IS_ANY(usb_hid_keyboard_report.keys[i])) {
count++;
}