Gyroscope functions

I think it'd be super useful to be able to work the phone orientation (via gyroscope) into functions. I'm using a workaround by setting global variables in Automate & then having KWLP extract them, but it's kind of laggy. It'd be great to have this baked in.