gui_delete(id);
}
-void shared_paint(int id, float st)
+void shared_paint(int id, float t)
{
- game_draw(0, st);
+ game_draw(0, t);
gui_paint(id);
}
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)*/
{
+ /* Pulse, activate and return the active id (if changed) */
+
int jd = gui_point(id, x, y);
+
if (jd)
gui_pulse(jd, 1.2f);
+
return jd;
}
}
int shared_stick_basic(int id, int a, int v)
-/* Pulse, activate and return the active id (if changed)*/
{
+ /* Pulse, activate and return the active id (if changed) */
+
int jd = 0;
- if (config_tst_d(CONFIG_JOYSTICK_AXIS_X, a))
+
+ if (config_tst_d(CONFIG_JOYSTICK_AXIS_X, a))
jd = gui_stick(id, v, 0);
else if (config_tst_d(CONFIG_JOYSTICK_AXIS_Y, a))
jd = gui_stick(id, 0, v);
if (jd)
gui_pulse(jd, 1.2f);
+
return jd;
}
shared_stick_basic(id, a, v);
}
+void shared_angle(int id, int x, int z)
+{
+ game_set_ang(x, z);
+}
+
int shared_click(int b, int d)
{
if (b < 0 && d == 1)
return st_buttn(config_get_d(CONFIG_JOYSTICK_BUTTON_A), 1);
- else
+ else
return 1;
}