- int jd;
-
- int x = (config_tst_d(CONFIG_JOYSTICK_AXIS_X, a)) ? v : 0;
- int y = (config_tst_d(CONFIG_JOYSTICK_AXIS_Y, a)) ? v : 0;
-
- if ((jd = gui_stick(id, x, y)))
- {
- int i = gui_token(jd);
-
- if (set_exists(i))
- {
- gui_set_image(shot_id, set_shot(i));
- gui_set_multi(desc_id, _(set_desc(i)));
- gui_pulse(jd, 1.2f);
- }
- }
-}
-
-static int set_click(int b, int d)
-{
- return (b < 0 && d == 1) ? set_action(gui_token(gui_click())) : 1;
+ int jd = shared_stick_basic(id, a, v);
+ int i = gui_token(jd);
+ if (jd && set_exists(i, 0))
+ set_over(i);