Inputs.InputMouseClick{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "InputMouseClickPayload",
"type": "object",
"additionalProperties": false,
"properties": {
"button": {
"type": "integer",
"format": "int32"
},
"clicks": {
"type": "integer"
},
"x": {
"type": "integer",
"format": "int32"
},
"y": {
"type": "integer",
"format": "int32"
}
}
}
{
"button": 70024994,
"clicks": -88299609,
"x": 47667418,
"y": -39183069
}
// Initialize the Streamer.bot WebSocket Client
const client = new StreamerbotClient();
// Subscribe to "Inputs.InputMouseClick" events and register a callback
client.on('Inputs.InputMouseClick', ({ event, data }) => {
// Code here will run every time the event is received!
console.log('Received event:', event.source, event.type);
console.log('Event data:', data);
});