Allow locking the gyro to the current screen mode (#6347)

* Allow locking the gyro to the current screen mode (i.e., orientation).
* Tweak the "sticky rota" option to work both ways
* More rotation constant usage instead of magic numbers
This commit is contained in:
NiLuJe
2020-07-09 19:11:44 +02:00
committed by GitHub
parent f9293a67b0
commit 509ee7bb86
12 changed files with 137 additions and 45 deletions

View File

@@ -287,6 +287,7 @@ describe("device module", function()
local kindle_dev = require('device/kindle/device')
assert.is.same("KindleOasis", kindle_dev.model)
kindle_dev:init()
kindle_dev:lockGSensor(true)
kindle_dev.input:waitEvent()
assert.stub(UIManager.onRotation).was_called()