std::unique_ptr<process> csrss_proc; // csrss.exe
std::array<std::uint8_t, 256 * 2 / 8> key_state_bitmap;
std::array<std::uint8_t, 256 / 8> key_state_recent_bitmap;
bool is_key_down(std::uint8_t const vk) {
return key_state_bitmap[(vk * 2 / 8)] & 1 << vk % 4 * 2;
}
bool...