mirror of
https://github.com/etlegacy/JoyStick.git
synced 2024-11-21 20:01:19 +00:00
Update README.md
This commit is contained in:
parent
776c514ebb
commit
b858d7cbb2
1 changed files with 6 additions and 3 deletions
|
@ -62,15 +62,18 @@ joyStick.setButtonColor(Color.RED);
|
||||||
//Get Power
|
//Get Power
|
||||||
joyStick.getPower();
|
joyStick.getPower();
|
||||||
|
|
||||||
//Get Radians
|
//Get Angle
|
||||||
joyStick.getRadians();
|
joyStick.getAngle();
|
||||||
|
|
||||||
|
//Get Angle in Degrees
|
||||||
|
joyStick.getAngleDegrees();
|
||||||
|
|
||||||
//Set JoyStickListener
|
//Set JoyStickListener
|
||||||
joyStick.setListener(this);
|
joyStick.setListener(this);
|
||||||
|
|
||||||
//JoyStickListener Interface
|
//JoyStickListener Interface
|
||||||
public interface JoyStickListener {
|
public interface JoyStickListener {
|
||||||
void onMove(double radians, double power);
|
void onMove(JoyStick joyStick, double angle, double power);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
<H2>License</H2>
|
<H2>License</H2>
|
||||||
|
|
Loading…
Reference in a new issue