This commit is contained in:
2024-06-02 19:29:26 +02:00
commit 998164d7f9
7 changed files with 1819 additions and 0 deletions

28
include/puzzle.h Normal file
View File

@ -0,0 +1,28 @@
#ifndef PUZZLE_H
#define PUZZLE_H
enum colors
{
NONE = 0,
EL = 1,
T = 2,
POLE = 3,
SQUARE = 4,
LZIG = 5,
RZIG = 6,
};
/**
* @struct puzzle
* Represents a puzzle in the Tetris game.
*/
struct puzzle {
int with; // The width of the puzzle
int height; // The height of the puzzle
unsigned char *data; // The data of the puzzle
enum colors type; // The type of the puzzle
};
#endif

9
include/tkeyboard.h Normal file
View File

@ -0,0 +1,9 @@
#ifndef TKEYBOARD_H
#define TKEYBOARD_H
//#include <wayland-client-protocol.h>
#include <wayland-client.h>
extern const struct wl_keyboard_listener keyboard_listener;
#endif