Skip to content

Commit

Permalink
Add branch where surfaceDimensions is set to null.
Browse files Browse the repository at this point in the history
  • Loading branch information
bradleyneedham committed May 5, 2023
1 parent 115afbd commit 41f86b3
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions extensions.html
Original file line number Diff line number Diff line change
Expand Up @@ -1048,11 +1048,21 @@ <h3>
<li>Set |touchEvent|.{{GamepadTouch/position}}[1] to be
|normalizedY:float|.
</li>
<li>Set |touchEvent|.{{GamepadTouch/surfaceDimensions}}[0] to be
device max x-axis coordinate.
<li>If the touch surface exposes maximum surface dimensions in device units:
<ol>
<li>Set |touchEvent|.{{GamepadTouch/surfaceDimensions}}[0] to be
device max x-axis coordinate.
</li>
<li>Set |touchEvent|.{{GamepadTouch/surfaceDimensions}}[1] to be
device max y-axis coordinate.
</li>
</ol>
</li>
<li>Set |touchEvent|.{{GamepadTouch/surfaceDimensions}}[1] to be
device max y-axis coordinate.<p>(<i>note: surfaceDimensions can be set to `null`</i>)</p>
<li>Otherwise:
<ol>
<li>Set |touchEvent|.{{GamepadTouch/surfaceDimensions}} to null.
</li>
</ol>
</li>
<li>Add |touchEvent| to |gamepad|.{{Gamepad/[[touchEvents]]}}.
</li>
Expand Down

0 comments on commit 41f86b3

Please sign in to comment.