only echo to /proc/keypad for K3 and DXG

This commit is contained in:
Qingping Hou
2012-12-12 10:02:32 +08:00
parent 7557958155
commit 27ec17b405
2 changed files with 8 additions and 4 deletions

View File

@@ -136,6 +136,8 @@ Screen:setRotationMode(Screen.native_rotation_mode)
input.closeAll()
if util.isEmulated()==0 then
os.execute("killall -cont cvm")
-- send double menu key press events to trigger screen refresh
os.execute("echo 'send 139' > /proc/keypad;echo 'send 139' > /proc/keypad")
if Device:isKindle3() or (Device:getModel() == "KindleDXG") then
-- send double menu key press events to trigger screen refresh
os.execute("echo 'send 139' > /proc/keypad;echo 'send 139' > /proc/keypad")
end
end