8 static void keyboard(int key, int pressed, void *cls);
9 static void mouse(int bn, int pressed, int x, int y, void *cls);
10 static void motion(int x, int y, void *cls);
13 static int xsz, ysz, depth;
20 fbgfx_save_video_mode();
21 if(!(vmem = fbgfx_set_video_mode(800, 600, 16))) {
24 fbgfx_get_video_mode(&xsz, &ysz, &depth);
28 if(fbev_init() == -1) {
31 fbev_keyboard(keyboard, 0);
32 fbev_mbutton(mouse, 0);
33 fbev_mmotion(motion, 0);
35 if(init_tunnel(xsz, ysz) == -1) {
49 fbgfx_restore_video_mode();
53 static void keyboard(int key, int pressed, void *cls)
65 static void mouse(int bn, int pressed, int x, int y, void *cls)
69 static void motion(int x, int y, void *cls)