Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Switch landscape/portrait" not working on mobile #3

Open
Arcnor opened this issue Sep 4, 2014 · 3 comments
Open

"Switch landscape/portrait" not working on mobile #3

Arcnor opened this issue Sep 4, 2014 · 3 comments

Comments

@Arcnor
Copy link
Owner

Arcnor commented Sep 4, 2014

This needs platform specific code. For Android, it's easy (there is existing code), but for iOS it seems there is no way unless some sort of undocumented hack is used, might be tricky.

@Arcnor Arcnor added the bug label Sep 4, 2014
@watabou
Copy link
Collaborator

watabou commented Sep 4, 2014

I have nearly zero knowledge on iOS, but I will make a research on the subject. If there is no way to switch screen orientation on the go, there shoul be at least a way to lock portrait right from the start.
Some time ago I tried to rework my Camera class to use matrix rotation for orientation switch, but there were too many issues so I abandoned the idea. But I can try again :)

@Arcnor
Copy link
Owner Author

Arcnor commented Sep 4, 2014

@Arcnor
Copy link
Owner Author

Arcnor commented Sep 13, 2014

After #27 is merged, the PDPlatformSupport class can be extended to have a method like setOrientation with an enum that can contain PORTRAIT, LANDSCAPE and FULLSCREEN. Then, each platform can extend the class to do the right thing depending on the selected option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants