only echo to /proc/keypad for K3 and DXG

pull/2/merge
Qingping Hou 12 years ago
parent 7557958155
commit 27ec17b405

@ -1,8 +1,10 @@
#!/bin/sh #!/bin/sh
export LC_ALL="en_US.UTF-8" export LC_ALL="en_US.UTF-8"
echo unlock > /proc/keypad PROC_KEYPAD="/proc/keypad"
echo unlock > /proc/fiveway PROC_FIVEWAY="/proc/fiveway"
test -e $PROC_KEYPAD && echo unlock > $PROC_KEYPAD
test -e $PROC_FIVEWAY && echo unlock > $PROC_FIVEWAY
# we're always starting from our working directory # we're always starting from our working directory
cd /mnt/us/kindlepdfviewer/ cd /mnt/us/kindlepdfviewer/

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

Loading…
Cancel
Save