From ed23222d288c125797ef614eb82603b426042b8f Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Sun, 2 Apr 2023 07:11:36 +0300 Subject: [PATCH] foo --- src/main.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/main.c b/src/main.c index 8743f5b..89ff8a7 100644 --- a/src/main.c +++ b/src/main.c @@ -12,6 +12,9 @@ static void skeydown(int key, int x, int y); static void skeyup(int key, int x, int y); static void mouse(int bn, int st, int x, int y); static void motion(int x, int y); +static void sball_motion(int x, int y, int z); +static void sball_rotate(int x, int y, int z); +static void sball_button(int bn, int st); static int translate_skey(int key); static int warping; @@ -33,6 +36,9 @@ int main(int argc, char **argv) glutMouseFunc(mouse); glutMotionFunc(motion); glutPassiveMotionFunc(motion); + glutSpaceballMotionFunc(sball_motion); + glutSpaceballRotateFunc(sball_rotate); + glutSpaceballButtonFunc(sball_button); if(game_init() == -1) { return 1; @@ -167,6 +173,18 @@ static void motion(int x, int y) } } +static void sball_motion(int x, int y, int z) +{ +} + +static void sball_rotate(int x, int y, int z) +{ +} + +static void sball_button(int bn, int st) +{ +} + static int translate_skey(int key) { switch(key) { -- 1.7.10.4