if (scrollOffset + index < items.size()) {
pressedItem = items.get(scrollOffset + index);
pressedItem.onMousePressed();
- pressedItem.select();
redraw();
}
}
public boolean isSelected();
public boolean isPending();
public String getLabel();
- public void select();
public void onMousePressed();
public void onMouseReleased();
}
return deck.getNextPattern() == pattern;
}
- public void select() {
+ public void onMousePressed() {
deck.goPattern(pattern);
}
}
return false;
}
- public void select() {
+ public void onMousePressed() {
lx.engine.getDeck(1).setBlendTransition(transition);
}
}
return effect.isEnabled();
}
- public void select() {
- glucose.setSelectedEffect(effect);
- }
-
public void onMousePressed() {
if (glucose.getSelectedEffect() == effect) {
if (effect.isMomentary()) {
} else {
effect.toggle();
}
+ } else {
+ glucose.setSelectedEffect(effect);
}
}
return panda.isEnabled();
}
- public void select() {
+ public void onMousePressed() {
panda.toggle();
}
}