Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • tag2y19/sotsef-reaction-game
1 result
Show changes
Commits on Source (2)
Raspberry Pi Program for the SOTSEF LED Reactions Game
Dependencies:
- Gtk 4 (sudo apt install libgtk-4-dev)
- librsvg (sudo apt install librsvg2-dev)
- blueprint-compiler (Get it from
https://gitlab.gnome.org/jwestman/blueprint-compiler/-/releases/v0.14.0,
the debian repo version is really out of date)
- WiringPi (https://github.com/WiringPi/WiringPi; it's not in the debian
repo)
Building:
```
./configure build
ninja -C build
```
Running:
```
./build/game
```
......@@ -25,7 +25,7 @@ fi
eval set -- "$ARGS";
zero="$0";
PKGS="gtk4 libadwaita-1 librsvg-2.0"
PKGS="gtk4 librsvg-2.0"
while true; do
......
......@@ -5,11 +5,11 @@
extern "C" {
#endif
#include <adwaita.h>
#include <gtk/gtk.h>
#define GAME_APP_TYPE ( game_app_get_type() )
G_DECLARE_FINAL_TYPE(
GameApp, game_app, GAME, APP, AdwApplication );
GameApp, game_app, GAME, APP, GtkApplication );
GameApp* game_app_new();
void game_app_button_press( GameApp* app, int pin );
......
......@@ -7,13 +7,13 @@
struct _GameApp {
AdwApplication parent;
GtkApplication parent;
GameWindow* window;
};
G_DEFINE_TYPE( GameApp, game_app, ADW_TYPE_APPLICATION );
G_DEFINE_TYPE( GameApp, game_app, GTK_TYPE_APPLICATION );
/* PROTOTYPES!!! */
......
......@@ -2,7 +2,7 @@
#include "pins.h"
#include <adwaita.h>
#include <gtk/gtk.h>
#include <stdio.h>
#ifndef NO_WIRINGPI
#include <wiringPi.h>
......