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