Trigger Streamer.Bot actions via Gamepad

Description

This code gives you ability to trigger Streamer.Bot actions via Gamepad.

Tutorial

Import file

GamePadActions.sb (5.2 KB)

Install

To install, grab .sb file or code import below and put it into import dialog window in Streamer.Bot.

If code doesn’t work, check GamePad action, open Execute code (GamePad) sub-action. Check required references and compile it.

mscorlib.dll
System.Text.Json.dll
System.Memory.dll

Configuration

Create an Action inside GamePad_Actions group.

It must contain:

  • comment, where you write which button you want to use;

  • and one Run Action sub-action, which call actual Action.

How to run GamePad_Start and GamePad_Stop actions is up to you, you can use any trigger.

Don’t forget, when you change anything in GamePad_Actions group:

  • run GamePad_Stop, so it stops listener;

  • press Save in SB, because this pushes changes to the file and this extension reads them from it;

  • and start listener again with GamePad_Start.

Contributors