Using the Gamepad Plugin with ProtoPie Connect
Available in both Pro and Enterprise plans.
The Gamepad plugin is one of the many built-in plugins in ProtoPie Connect that allows you to create dynamic, multi-device prototyping experiences. Read along to see how the Gamepad plugin works.
How It Works
Prerequisites
In the Security & Privacy Settings of your computer, enable Input Monitoring for both ProtoPie Connect and your browser.
![[object Object]](https://cdn.sanity.io/images/vidqzkll/production/6e166bb1f23aae08718a27a494e8381a44b2936e-2175x1200.png/Gamepad-Plugin-2.png)
Getting Set-Up
1. Open ProtoPie Connect.
2. Connect your Gamepad via USB or Bluetooth to the device running ppConnect
.
A Connected message will be displayed in the Plugins section when the Gamepad is detected.
![[object Object]](https://cdn.sanity.io/images/vidqzkll/production/9a4f4554defd04cc74ab51bd3e66768930424fa2-2175x1200.png/Gamepad-Plugin-3.png)
3. When the Gamepad buttons are pressed ppConnect
will automatically detect the keystrokes and broadcast message and value pairs to the pies running on ppConnect
.
Connecting Multiple Gamepads
ppConnect
supports connections with multiple Gamepads.
- The message will follow the below format:
- {Gamepad Number}_{Button Name}
- Gamepad Number is assigned from 1 in the following connection order:
- Gamepad connected first will have Gamepad number of 1.
- Gamepad connected second will have Gamepad number of 2.
- The number of connected gamepads is displayed in the Gamepad Settings window.
![[object Object]](https://cdn.sanity.io/images/vidqzkll/production/1a77cfcfe21140b530e9df0f118c4346a71fb884-2175x1200.png/Gamepad-Plugin.png)
Gamepad Buttons and Messages
Gamepad buttons and messages are as follows (assuming messages are received from the first connected gamepad).
![[object Object]](https://cdn.sanity.io/images/vidqzkll/production/8a699ce151a789195f79ff3b7eef3cf7eac73ca1-2000x1675.png/gamepad-plugin-.png)
Gamepad Plugin – Buttons and Messages
Gamepad button | ppConnect Message | Value |
---|---|---|
LT | 1_button6 | 10,0 |
LB | 1_button4 | 1,0 |
RT | 1_button7 | 10,0 |
RB | 1_button5 | 1,0 |
X | 1_button2 | 1,0 |
Y | 1_button3 | 1,0 |
A | 1_button0 | 1,0 |
B | 1_button1 | 1,0 |
Start | 1_button9 | 1,0 |
Back | 1_button8 | 1,0 |
1 | 1_button12 | 1,0 |
2 | 1_button15 | 1,0 |
3 | 1_button13 | 1,0 |
4 | 1_button14 | 1,0 |
RSB X axis | 1_axe2 | 10 to -10 |
RSB Y axis | 1_axe3 | 10 to -10 |
LSB X axis | 1_axe0 | 10 to -10 |
LSB Y axis | 1_axe1 | 10 to -10 |
Read more about ProtoPie Connect’s built-in plugins: IFTTT plugin, Logitech G29 Steering Wheel plugin, Arduino plugin, and blokdots plugin.