fix(test): change the layout

This commit is contained in:
Cody McGinnis
2020-08-28 16:21:31 -04:00
parent 6cd46b9504
commit f02fa01e9a
14 changed files with 82 additions and 72 deletions

View File

@@ -1,8 +0,0 @@
#pragma once
#define ZMK_MOCK_IS_PRESS(v) ((v & (0x01 << 31)) != 0)
#define ZMK_MOCK_PRESS(row, col, msec) (row + (col << 8) + (msec << 16) + (0x01 << 31))
#define ZMK_MOCK_RELEASE(row, col, msec) (row + (col << 8) + (msec << 16))
#define ZMK_MOCK_ROW(v) (v & 0xFF)
#define ZMK_MOCK_COL(v) ((v >> 8) & 0xFF)
#define ZMK_MOCK_MSEC(v) ((v & ~(0x01 << 31)) >> 16)