MCPcopy Create free account
hub / github.com/apache/cloudstack / extendedPointerEvent

Function extendedPointerEvent

systemvm/agent/noVNC/core/rfb.js:3306–3325  ·  view source on GitHub ↗
(sock, x, y, mask)

Source from the content-addressed store, hash-verified

3304 },
3305
3306 extendedPointerEvent(sock, x, y, mask) {
3307 sock.sQpush8(5); // msg-type
3308
3309 let higherBits = (mask >> 7) & 0xff;
3310
3311 // Bits 2-7 are reserved
3312 if (higherBits & 0xfc) {
3313 throw new Error("Invalid mouse button mask: " + mask);
3314 }
3315
3316 let lowerBits = mask & 0x7f;
3317 lowerBits |= 0x80; // Set marker bit to 1
3318
3319 sock.sQpush8(lowerBits);
3320 sock.sQpush16(x);
3321 sock.sQpush16(y);
3322 sock.sQpush8(higherBits);
3323
3324 sock.flush();
3325 },
3326
3327 // Used to build Notify and Request data.
3328 _buildExtendedClipboardFlags(actions, formats) {

Callers

nothing calls this directly

Calls 3

sQpush8Method · 0.80
sQpush16Method · 0.80
flushMethod · 0.45

Tested by

no test coverage detected