vgui/20-cursor-moved-event.js
/**
* Fired when the mouse moves in the panel
*/
export class CursorMovedEvent extends SourceEvent {
constructor(x, y) {
super("CursorMovedEvent", {x: x, y: y});
}
/**
* Creates this type based on a source engine KeyValues entry
*/
static __fromSource(type, data)
{
const result = new CursorMovedEvent();
result.data = data;
return result;
}
}
SourceEvent.__eventTypes["CursorMoved"] = CursorMovedEvent;