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 ressource used for the button, the two states of the button are on the same ressource
  • background - The background color of the button (default has no background color)
  • horizontalCenter - Does the performance monitor have to be horizontally centered? (default is false)
  • verticalCenter - Does the performance monitor have to be vertically centered? (default is false)
  • top - The top margin in pixels (default is null)
  • right - The right margin in pixels (default is null)
  • bottom - The bottom margin in pixels (default is null)
  • left - The left margin in pixels (default is null)

21st Apr 2017