These two examples can use `deviceorientation` and change only if the flag is true. For cursors there is no difference.