2020-05-25 08:22:16 +10:00
|
|
|
#pragma once
|
|
|
|
|
2020-05-23 12:47:03 +10:00
|
|
|
#define ZMK_MOCK_IS_PRESS(v) ((v & (0x01 << 31)) != 0)
|
2020-05-25 08:22:16 +10:00
|
|
|
#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)
|