43 lines
638 B
Markdown
43 lines
638 B
Markdown
|
# Input
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
```cards
|
||
|
input.onButtonPressed(.Button, () => {
|
||
|
|
||
|
});
|
||
|
input.onGesture(.Gesture, () => {
|
||
|
|
||
|
});
|
||
|
input.onPinPressed(.TouchPin, () => {
|
||
|
|
||
|
});
|
||
|
input.buttonIsPressed(.Button);
|
||
|
input.compassHeading();
|
||
|
input.temperature();
|
||
|
input.acceleration(.Dimension);
|
||
|
input.lightLevel();
|
||
|
input.rotation(.Rotation);
|
||
|
input.magneticForce(.Dimension);
|
||
|
input.runningTime();
|
||
|
input.setAccelerometerRange(.AcceleratorRange);
|
||
|
input.pinIsPressed(.TouchPin);
|
||
|
input.calibrate();
|
||
|
input.onLogoDown(() => {
|
||
|
|
||
|
});
|
||
|
input.onLogoUp(() => {
|
||
|
|
||
|
});
|
||
|
input.onScreenDown(() => {
|
||
|
|
||
|
});
|
||
|
input.onScreenUp(() => {
|
||
|
|
||
|
});
|
||
|
input.onShake(() => {
|
||
|
|
||
|
});
|
||
|
```
|