fluid-lab / gamepad-navigator

GSoC 2020 project
Other
6 stars 10 forks source link

Add actions to enter/exit fullscreen #141

Closed duhrer closed 4 months ago

duhrer commented 6 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 6 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 6 months ago

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