Inputs.InputKeyPress{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "InputKeyPressPayload",
"type": "object",
"additionalProperties": false,
"properties": {
"keyCode": {
"type": "integer"
},
"modifierMask": {
"type": "integer"
},
"hasCtrl": {
"type": "boolean"
},
"hasAlt": {
"type": "boolean"
},
"hasShift": {
"type": "boolean"
},
"hasWin": {
"type": "boolean"
}
}
}
{
"hasAlt": true,
"hasCtrl": true,
"hasShift": true,
"hasWin": false,
"keyCode": 1450236,
"modifierMask": -31243502
}
// Initialize the Streamer.bot WebSocket Client
const client = new StreamerbotClient();
// Subscribe to "Inputs.InputKeyPress" events and register a callback
client.on('Inputs.InputKeyPress', ({ 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);
});