mirror of https://github.com/koreader/koreader
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
362 B
Lua
14 lines
362 B
Lua
6 years ago
|
local Device = require("device")
|
||
|
local _ = require("gettext")
|
||
|
|
||
|
return {
|
||
|
text = _("Ignore accelerometer rotation events"),
|
||
|
checked_func = function()
|
||
|
return G_reader_settings:isTrue("input_ignore_gsensor")
|
||
|
end,
|
||
|
callback = function()
|
||
|
G_reader_settings:flipNilOrFalse("input_ignore_gsensor")
|
||
|
Device:toggleGSensor()
|
||
|
end,
|
||
|
}
|