add cursor changing (WIP).

This commit is contained in:
Miroslav Šedivý
2021-01-09 23:28:56 +01:00
parent 980b3217f8
commit 94186f3ef6
4 changed files with 34 additions and 11 deletions

View File

@ -81,6 +81,16 @@ export class NekoMessages extends EventEmitter<NekoEvents> {
// TODO: Handle.
}
// TODO: Refactor.
protected ['cursor/image']({ payload }: any) {
console.log('cursor/image')
Vue.set(this.state.control, 'cursor', {
uri: payload.Uri,
hot_x: payload.Xhot,
hot_y: payload.Yhot,
})
}
/////////////////////////////
// Signal Events
/////////////////////////////