mirror of
https://github.com/swaywm/sway.git
synced 2025-11-25 06:59:48 -05:00
merge
This commit is contained in:
commit
51ab3c9180
12 changed files with 176 additions and 62 deletions
|
|
@ -24,6 +24,7 @@ struct sway_mode {
|
|||
|
||||
struct output_config {
|
||||
char *name;
|
||||
bool enabled;
|
||||
int width, height;
|
||||
int x, y;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -6,16 +6,14 @@
|
|||
|
||||
/* Keyboard state */
|
||||
|
||||
typedef uint32_t keycode;
|
||||
|
||||
// returns true if key has been pressed, otherwise false
|
||||
bool check_key(keycode key);
|
||||
bool check_key(uint32_t key_sym, uint32_t key_code);
|
||||
|
||||
// sets a key as pressed
|
||||
void press_key(keycode key);
|
||||
void press_key(uint32_t key_sym, uint32_t key_code);
|
||||
|
||||
// unsets a key as pressed
|
||||
void release_key(keycode key);
|
||||
void release_key(uint32_t key_sym, uint32_t key_code);
|
||||
|
||||
|
||||
/* Pointer state */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue