mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
spice-html5 updated.
This commit is contained in:
parent
12c80c5021
commit
b05a252d7c
36 changed files with 1356 additions and 1415 deletions
20
static/js/spice-html5/cursor.js
Normal file → Executable file
20
static/js/spice-html5/cursor.js
Normal file → Executable file
|
|
@ -73,6 +73,12 @@ SpiceCursorConn.prototype.process_channel_message = function(msg)
|
|||
return true;
|
||||
}
|
||||
|
||||
if (msg.type == SPICE_MSG_CURSOR_MOVE)
|
||||
{
|
||||
this.known_unimplemented(msg.type, "Cursor Move");
|
||||
return true;
|
||||
}
|
||||
|
||||
if (msg.type == SPICE_MSG_CURSOR_HIDE)
|
||||
{
|
||||
DEBUG > 1 && console.log("SpiceMsgCursorHide");
|
||||
|
|
@ -80,6 +86,12 @@ SpiceCursorConn.prototype.process_channel_message = function(msg)
|
|||
return true;
|
||||
}
|
||||
|
||||
if (msg.type == SPICE_MSG_CURSOR_TRAIL)
|
||||
{
|
||||
this.known_unimplemented(msg.type, "Cursor Trail");
|
||||
return true;
|
||||
}
|
||||
|
||||
if (msg.type == SPICE_MSG_CURSOR_RESET)
|
||||
{
|
||||
DEBUG > 1 && console.log("SpiceMsgCursorReset");
|
||||
|
|
@ -87,6 +99,12 @@ SpiceCursorConn.prototype.process_channel_message = function(msg)
|
|||
return true;
|
||||
}
|
||||
|
||||
if (msg.type == SPICE_MSG_CURSOR_INVAL_ONE)
|
||||
{
|
||||
this.known_unimplemented(msg.type, "Cursor Inval One");
|
||||
return true;
|
||||
}
|
||||
|
||||
if (msg.type == SPICE_MSG_CURSOR_INVAL_ALL)
|
||||
{
|
||||
DEBUG > 1 && console.log("SpiceMsgCursorInvalAll");
|
||||
|
|
@ -100,7 +118,7 @@ SpiceCursorConn.prototype.process_channel_message = function(msg)
|
|||
SpiceCursorConn.prototype.set_cursor = function(cursor)
|
||||
{
|
||||
var pngstr = create_rgba_png(cursor.header.height, cursor.header.width, cursor.data);
|
||||
var curstr = 'url(data:image/png,' + pngstr + ') ' +
|
||||
var curstr = 'url(data:image/png,' + pngstr + ') ' +
|
||||
cursor.header.hot_spot_x + ' ' + cursor.header.hot_spot_y + ", default";
|
||||
var screen = document.getElementById(this.parent.screen_id);
|
||||
screen.style.cursor = 'auto';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue