MCPcopy Create free account
hub / github.com/TigerVNC/tigervnc / writePointerEvent

Method writePointerEvent

java/com/tigervnc/rfb/CMsgWriter.java:145–158  ·  view source on GitHub ↗
(Point pos, int buttonMask)

Source from the content-addressed store, hash-verified

143 }
144
145 synchronized public void writePointerEvent(Point pos, int buttonMask)
146 {
147 Point p = new Point(pos.x,pos.y);
148 if (p.x < 0) p.x = 0;
149 if (p.y < 0) p.y = 0;
150 if (p.x >= server.width()) p.x = server.width() - 1;
151 if (p.y >= server.height()) p.y = server.height() - 1;
152
153 startMsg(MsgTypes.msgTypePointerEvent);
154 os.writeU8(buttonMask);
155 os.writeU16(p.x);
156 os.writeU16(p.y);
157 endMsg();
158 }
159
160 synchronized public void writeClientCutText(String str, int len)
161 {

Callers 1

handlePointerEventMethod · 0.45

Calls 6

startMsgMethod · 0.95
endMsgMethod · 0.95
widthMethod · 0.45
heightMethod · 0.45
writeU8Method · 0.45
writeU16Method · 0.45

Tested by

no test coverage detected