 To set up a virtual gamepad input, use the <a href="JSONConfigRef.htm#gamepad"><tt>gamepad</tt></a> property:
</p>
<pre>
   {
      gamepad: {
         enable: true,
         x: "nudge.x",
         y: "nudge.y",
         z: "plunger.z",
      },
   }
</pre>

<p>
   The XBox input is similar, using the <a href="JSONConfigRef.htm#xInput">xInput</tt></a> property:
</p>
<pre>
   {
      xInput: {
         enable: true,
         xRight: "nudge.x",
         yRight: "nudge.y",
      },
   }
</pre>

<h4>Button inp