Hopefully stricter logic to detect the PW2.

It doesn't depend on the current rotation mode, and should hopefully
prevent assigning bogus functions if the device is unknown.