fluid-lab / gamepad-navigator

GSoC 2020 project
Other
9 stars 10 forks source link

Add actions to enter/exit fullscreen #141

Closed duhrer closed 9 months ago

duhrer commented 11 months ago

In addition to the maximise/restore actions, we should add actions to enter/exit fullscreen using the requestFullscreen and exitFullscreen methods.

duhrer commented 11 months ago

It may be that we can make the "restore" and "maximise" actions aware of this such that:

  1. maximising from full screen does nothing (but vibrate).
  2. restoring from full screen also exits full screen (less sure about this one).
duhrer commented 11 months ago

Looks like we can detect fullscreen by checking for document.fullScreenElement.