#ifndef _SWAY_KEY_STATE_H#define _SWAY_KEY_STATE_H#include<stdbool.h>#include<stdint.h>typedefuint32_tkeycode;// returns true if key has been pressed, otherwise falseboolcheck_key(keycodekey);// sets a key as pressedvoidpress_key(keycodekey);// unsets a key as pressedvoidrelease_key(keycodekey);#endif