Add Key State Tracker

This commit is contained in:
Florian Märkl 2020-07-12 19:28:36 +02:00
commit 736b4835df
5 changed files with 89 additions and 0 deletions

View file

@ -96,6 +96,13 @@ static inline void chiaki_gkcrypt_free(ChiakiGKCrypt *gkcrypt)
free(gkcrypt);
}
typedef struct chiaki_key_state_t {
uint64_t prev;
} ChiakiKeyState;
CHIAKI_EXPORT void chiaki_key_state_init(ChiakiKeyState *state);
CHIAKI_EXPORT uint64_t chiaki_key_state_request_pos(ChiakiKeyState *state, uint32_t low);
#ifdef __cplusplus
}
#endif