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

Device orientation #354

Merged
merged 2 commits into from
Oct 10, 2024
Merged

Conversation

keinerVonIhnen
Copy link

I just add the support for the Device orientation, in my use case the app is in landscape and your library does not work right with that.
It turns out that you already have a property for that mCurrentDeviceOrientation but it is private and set to Portrait in initialization.
So i add the evaluation of this in the initial block of the PLManager class, with this the library now also works great in Landscape.

Also i change your PLViewListener methods to be open, otherwise it is not possible to override them in kotlin

Fabian Fromm added 2 commits October 10, 2024 15:10
was setup to portrait despite of being used in all rendering and gyroscope calculations
@hannesa2 hannesa2 merged commit d8a0d5f into hannesa2:master Oct 10, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants