X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=common%2Fhost.c;h=e9b791670670eed07b9956495c1fc38dde989bab;hb=1f96edaed60def1f513ddd8adcdfa3e12b971006;hp=0703dba013a05be44d506714b680c76c65816779;hpb=d52d554360d3bf06189bfd4f386fa99348d8a0a8;p=tmk_firmware.git
diff --git a/common/host.c b/common/host.c
index 0703dba..e9b7916 100644
--- a/common/host.c
+++ b/common/host.c
@@ -16,7 +16,7 @@ along with this program. If not, see .
*/
#include
-#include
+//#include
#include "keycode.h"
#include "host.h"
#include "util.h"
@@ -24,12 +24,9 @@ along with this program. If not, see .
#ifdef NKRO_ENABLE
-bool keyboard_nkro = false;
+bool keyboard_nkro = true;
#endif
-report_mouse_t mouse_report = {};
-
-
static host_driver_t *driver;
static uint16_t last_system_report = 0;
static uint16_t last_consumer_report = 0;
@@ -58,7 +55,7 @@ void host_keyboard_send(report_keyboard_t *report)
if (debug_keyboard) {
dprint("keyboard_report: ");
- for (uint8_t i = 0; i < REPORT_SIZE; i++) {
+ for (uint8_t i = 0; i < KEYBOARD_REPORT_SIZE; i++) {
dprintf("%02X ", report->raw[i]);
}
dprint("\n");
@@ -89,11 +86,6 @@ void host_consumer_send(uint16_t report)
(*driver->send_consumer)(report);
}
-uint8_t host_mouse_in_use(void)
-{
- return (mouse_report.buttons | mouse_report.x | mouse_report.y | mouse_report.v | mouse_report.h);
-}
-
uint16_t host_last_sysytem_report(void)
{
return last_system_report;