Feature: lock GameViewController from rotating if an External Game Controller is connected #155
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is lighter attempt at solving https://trello.com/c/bO57L3PN, which asks to lock the screen orientation to a fixed position when the Backbone (or Razer Kishi) is connected, since they have a fixed orientation.
It's a simple idea in practice, but iOS unfortunately does not give us an easy way to do this dynamically. You can override the supportedInterfaceOrientations per-controller, but I'm not finding a way for that to be conditional; you override the var and are done with it. Likely I could use a local variable, monitor the device's orientation and set the local var, but to do that for every controller (or to subclass every controller) is likely more trouble than it's worth.
In light of that, this change gets you most of the way there (for the GameViewController at least), and is significantly less effort.