mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2025-02-09 22:00:34 +01:00
18 lines
332 B
C
18 lines
332 B
C
#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
|
|
|