Buttons: use non-deprecated MSPSim button api
This commit is contained in:
parent
b5d119babd
commit
bc6b7535d0
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue