mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-30 21:32:30 +00:00
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…
x
Reference in New Issue
Block a user