Buttons: use non-deprecated MSPSim button api

This commit is contained in:
Enrico Joerns 2014-11-04 01:41:32 +01:00
parent b5d119babd
commit bc6b7535d0

View file

@ -49,18 +49,17 @@ public class SkyButton extends Button {
@Override
protected void doPressButton() {
skyMote.skyNode.setButton(true);
skyMote.skyNode.getButton().setPressed(true);
}
@Override
protected void doReleaseButton() {
skyMote.skyNode.setButton(false);
skyMote.skyNode.getButton().setPressed(false);
}
@Override
public boolean isPressed() {
/* Not implemented */
return false;
return skyMote.skyNode.getButton().isPressed();
}
}