You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
332 B
19 lines
332 B
#ifndef _SWAY_KEY_STATE_H
|
|
#define _SWAY_KEY_STATE_H
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
typedef uint32_t keycode;
|
|
|
|
// returns true if key has been pressed, otherwise false
|
|
bool check_key(keycode key);
|
|
|
|
// sets a key as pressed
|
|
void press_key(keycode key);
|
|
|
|
// unsets a key as pressed
|
|
void release_key(keycode key);
|
|
|
|
#endif
|
|
|