Callbacks

Yeah
20 characters
Needs more

Well, after putting some heads together in robotics our solution was this
(Controller1.Axis2.value() + Controller1.Axis4.value() - Controller1.Axis1.value())*x
with x as a variable we change for the different speeds with the change activated by this
Controller1.ButtonY.pressed(function1);
anyone know why this wont work?

Anyone have a solution?

have the function run upon release of the Button

I will try that
20 characters

go like
if(pressed)
{
while (pressed) {}
function;
}

our code was like this
controller.button.pressed(function)
we had two different buttons and they changed the value of x