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

Setup Rotation orientation #28

Open
Acerising opened this issue Sep 4, 2021 · 2 comments
Open

Setup Rotation orientation #28

Acerising opened this issue Sep 4, 2021 · 2 comments

Comments

@Acerising
Copy link

i am using a Chuwi hi 10 Pro and the orientation works partly.
with partly i mean that the screen rotation when i rotate the tablet but the orientation is completly off like when i have the tablet in landscpe the orientation is in portrait and vice versa wher do i find the config to edit the orientations

@M1CK431
Copy link

M1CK431 commented Nov 30, 2021

Hi @Acerising ,

Take a look here:

void ScreenRotator::updateOrientation() {
if (!sensor->reading()) return;
currentOrientation = sensor->reading()->orientation();
QString o;
switch (currentOrientation) {
case QOrientationReading::TopUp:
o = "normal";
break;
case QOrientationReading::TopDown:
o = "bottom-up";
break;
case QOrientationReading::LeftUp:
o = "left-up";
break;
case QOrientationReading::RightUp:
o = "right-up";
break;
default:
o = "none";
return;
}
helper.start("orientation-helper", {"-r", o});
}

@Acerising
Copy link
Author

Thanks i will take a look at this

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

No branches or pull requests

2 participants