public void setSpeed(float newSpeed) {
Validate.positive(newSpeed, "speed");
speed = newSpeed;
}
@Override
<BUG>public void onAction(String actionString, boolean ongoing, float ignored) {

if (!ongoing) {
return;
}</BUG>
switch (actionString) {

public void setSpeed(float newSpeed) {
Validate.positive(newSpeed, "speed");
speed = newSpeed;
}
@Override
public void onAction(String actionString, boolean ongoing, float tpf) {
if (ongoing) {
switch (actionString) {
