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
|
@Override
|
||||||
protected void doPressButton() {
|
protected void doPressButton() {
|
||||||
skyMote.skyNode.setButton(true);
|
skyMote.skyNode.getButton().setPressed(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void doReleaseButton() {
|
protected void doReleaseButton() {
|
||||||
skyMote.skyNode.setButton(false);
|
skyMote.skyNode.getButton().setPressed(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isPressed() {
|
public boolean isPressed() {
|
||||||
/* Not implemented */
|
return skyMote.skyNode.getButton().isPressed();
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue