How to select one of the two accelerometers as simple orientation in driver

Feifei 1 Reputation point
2021-06-10T11:41:40.583+00:00

Access two same accelerometer devices in one driver, one integrated on the keyboard and the other integrated on the screen.

Now a problem has been found that the direction of screen rotation always depends on the keyboard accelerometer, regardless of the screen accelerometer's DEVPKEY_Sensor_IsPrimary is set to true or false, it is failed.
My intention is to make the rotation based on the accelerometer integrated on the screen.Why does this happen?

Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,684 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.