in CursorEffects on line 64-79
[java] public void handleClick(int which) {
switch(which) {
case 0:
loadSettings(EmitterConfig.LEFT_CLICK);
cursorEmitter.emitAllParticles();
loadSettings(EmitterConfig.DEFAULT);
case 1:
loadSettings(EmitterConfig.RIGHT_CLICK);
cursorEmitter.emitAllParticles();
loadSettings(EmitterConfig.DEFAULT);
case 2:
loadSettings(EmitterConfig.WHEEL_CLICK);
cursorEmitter.emitAllParticles();
loadSettings(EmitterConfig.DEFAULT);
}
}[/java]
there is a fall through… So my question would be, why switch anyway ^^ and is this mentioned to be that way?
Greetings