#include #include "textscreen.h" #include "txt_mouseinput.h" int novert; int speed; int accel; int threshold; int mouseb_fire; int mouseb_strafe; int mouseb_forward; static int *all_mouse_buttons[] = {&mouseb_fire, &mouseb_strafe, &mouseb_forward}; static void MouseSetCallback(TXT_UNCAST_ARG(widget), TXT_UNCAST_ARG(variable)) { TXT_CAST_ARG(int, variable); int i; // Check if the same mouse button is used for a different action // If so, set the other action(s) to -1 (unset) for (i=0; i