Skip to content

Commit 422eae4

Browse files
committed
refactor: organise events into categories
1 parent 8890b17 commit 422eae4

20 files changed

+575
-561
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/4-clientbound.md

Lines changed: 0 additions & 347 deletions
This file was deleted.

src/4_clientbound/0_index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Clientbound events
2+
3+
This chapter describes the events that can be sent by the OpenAction server to either plugins or property inspectors.

src/4_clientbound/devices.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Devices
2+
3+
### deviceDidConnect
4+
5+
Fired when a device is connected.
6+
7+
The Stream Deck software supplies an additional field, an integer to designate the model of Stream Deck in use.
8+
9+
**Received by:** Plugin
10+
11+
```ts
12+
{
13+
event: string = "deviceDidConnect",
14+
device: string,
15+
deviceInfo: {
16+
name: string,
17+
size: {
18+
rows: number,
19+
columns: number
20+
}
21+
}
22+
}
23+
```
24+
25+
### deviceDidDisconnect
26+
27+
Fired when a device is disconnected.
28+
29+
The Stream Deck software supplies an additional field, an integer to designate the model of Stream Deck in use.
30+
31+
**Received by:** Plugin
32+
33+
```ts
34+
{
35+
event: string = "deviceDidDisconnect",
36+
device: string
37+
}
38+
```

0 commit comments

Comments
 (0)