This plugin will display only if you have a Gyroscope on your device
This plugin displays a button to toggle the gyroscope controller on and off.
json configuration
{
"story": { ... },
"plugins":
{
"engines":
[
{
"uid": "org.forgejs.gyroscopebutton",
"url": "GyroscopeButton/"
}
],
"instances":
[
{
"uid": "gyroscopebutton",
"engine": "org.forgejs.gyroscopebutton"
"options":
{
"bottom": 10,
"left": 10
}
}
]
}
}
options
image
- The image resource used for the button, the two states of the button are on the same resourcebackground
- The background color of the button (default has no background color)horizontalCenter
- Does the performance monitor have to be horizontally centered? (default isfalse
)verticalCenter
- Does the performance monitor have to be vertically centered? (default isfalse
)top
- The top margin in pixels (default isnull
)right
- The right margin in pixels (default isnull
)bottom
- The bottom margin in pixels (default isnull
)left
- The left margin in pixels (default isnull
)