View Single Post
Old 08-31-2019, 06:13 PM   #3
Emilis
Junior Member
Emilis began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Aug 2019
Device: KT, PPW3
Hi, I got my kindle ppw 3 touch screen working with kvncviewer.

Content of my config.lua file

Code:
require "keys"
require "rfbkeys"

set_k3_keycodes()


client_width = 0
client_height = 0


-- globals for remembering key state
shift = false
sym = false
myx = 0
myy = 0


-- this handler will be called upon key presses (input events, actually)
function handleInput(channel, itype, code, value)
        if itype == 3 and code == 53 then myx = value end
        if itype == 3 and code == 54 then
                myy = value
                SendPointerEvent(myx, myy, 0)
        end
        if itype == 3 and code == 57 and value == -1 then
                SendPointerEvent(myx, myy, 1)
                SendPointerEvent(myx, myy, 0)
        end
end
Sorrry for mess in code. I'm a bit lazy.
Emilis is offline   Reply With Quote