Package com.shinyhut.vernacular.client
Class ClientEventHandler
java.lang.Object
com.shinyhut.vernacular.client.ClientEventHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Consumer<VncException>private Threadprivate intprivate intprivate final ReentrantLockprivate booleanprivate final VncSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void(package private) voidmoveMouse(int mouseX, int mouseY) private voidpause()private voidprivate voidsendMessage(Encodable message) (package private) voidstart()(package private) voidstop()private boolean(package private) voidupdateKey(int keySym, boolean pressed) (package private) voidupdateMouseButton(int button, boolean pressed) private void
-
Field Details
-
session
-
errorHandler
-
buttons
-
outputLock
-
running
private volatile boolean running -
eventLoop
-
mouseX
private int mouseX -
mouseY
private int mouseY
-
-
Constructor Details
-
ClientEventHandler
ClientEventHandler(VncSession session, Consumer<VncException> errorHandler)
-
-
Method Details
-
start
void start() -
stop
void stop() -
updateMouseButton
- Throws:
IOException
-
moveMouse
- Throws:
IOException
-
updateKey
- Throws:
IOException
-
copyText
- Throws:
IOException
-
updateMouseStatus
- Throws:
IOException
-
timeForFramebufferUpdate
private boolean timeForFramebufferUpdate() -
requestFramebufferUpdate
- Throws:
IOException
-
sendMessage
- Throws:
IOException
-
pause
private void pause()
-