+/*
+ * Copyright (C) 2003 Robert Kooima - 2006 Jean Privat
+ * Part of the Neverball Project http://icculus.org/neverball/
+ *
+ * NEVERBALL is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published
+ * by the Free Software Foundation; either version 2 of the License,
+ * or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ */
+
#include "gui.h"
#include "config.h"
#include "audio.h"
void shared_timer(int id, float dt)
{
gui_timer(id, dt);
- audio_timer(dt);
}
-int shared_point_basic(int id, int x, int y)
/* Pulse, activate and return the active id (if changed)*/
+
+int shared_point_basic(int id, int x, int y)
{
int jd = gui_point(id, x, y);
if (jd)
int shared_click(int b, int d)
{
if (b < 0 && d == 1)
- return st_buttn(config_get_d(CONFIG_JOYSTICK_BUTTON_A), 1);
- else
- return 1;
+ return st_buttn(config_get_d(CONFIG_JOYSTICK_BUTTON_A), 1);
+ else
+ return 1;
}