From c70afc6c669948bcb93aa87fe0708b9c8787e86a Mon Sep 17 00:00:00 2001 From: PlayXboxtion963 <98201865+PlayXboxtion963@users.noreply.github.com> Date: Sat, 29 Jun 2024 09:23:02 +0800 Subject: [PATCH 1/3] Update README.md --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 47028a3..bf37c63 100644 --- a/README.md +++ b/README.md @@ -97,16 +97,17 @@ If controller for some port is not connected, you can respond with 12 zero bytes | Offset | Length | Type | Meaning | | ------ | ------ | ---- | ------- | -| 0 | 4 | **Signed 32-bit** | Amount of ports you should report about. Always less than 5. | -| 4 | 1 to 4 | Unsigned 8-bit (array) | Each byte represent number of slot you should report about. Count of bytes here is determined by value above. Each value is less than 4. | +| 0 | 4 | **Signed 32-bit** | Amount of slots you should report about. Always less than 5. | +| 4 | 1 to 4 | Unsigned 8-bit (array) | Each byte represent index of slot you should report about. Count of bytes here is determined by value above. Each value is less than 4.| +Example: 0x4 + 0x0,0x1,0x2,0x3 . You should reply with 4 packages. From slot 1 to 4 For every requested controller slot you should send one packet structured like described below. ### Outgoing packet structure: | Offset | Length | Type | Meaning | | ------ | ------ | ---- | ------- | -| 0 | 11 | Complex | Beginning described above | +| 0 | 11 | Complex | Shared response beginning for message types below | | 11 | 1 | N/A | Zero byte (`\0`). | # Actual controllers data From 9c52f7cebebb2948ddf5ddb45cc67035632d3ad5 Mon Sep 17 00:00:00 2001 From: PlayXboxtion963 <98201865+PlayXboxtion963@users.noreply.github.com> Date: Sat, 29 Jun 2024 09:25:34 +0800 Subject: [PATCH 2/3] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bf37c63..aa4e399 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,8 @@ If controller for some port is not connected, you can respond with 12 zero bytes | 0 | 4 | **Signed 32-bit** | Amount of slots you should report about. Always less than 5. | | 4 | 1 to 4 | Unsigned 8-bit (array) | Each byte represent index of slot you should report about. Count of bytes here is determined by value above. Each value is less than 4.| -Example: 0x4 + 0x0,0x1,0x2,0x3 . You should reply with 4 packages. From slot 1 to 4 +Example: 0x4 + 0x0,0x1,0x2,0x3 . You should reply with 4 separate packages. From slot 0 to 3. + For every requested controller slot you should send one packet structured like described below. ### Outgoing packet structure: From 7a7edff7d4f46220d311934d828e4c0fce202199 Mon Sep 17 00:00:00 2001 From: PlayXboxtion963 <98201865+PlayXboxtion963@users.noreply.github.com> Date: Sat, 29 Jun 2024 09:27:05 +0800 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index aa4e399..fa329b4 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,7 @@ For every requested controller slot you should send one packet structured like d | Offset | Length | Type | Meaning | | ------ | ------ | ---- | ------- | -| 0 | 11 | Complex | Shared response beginning for message types below | +| 0 | 11 | Complex | Shared response beginning for message types above| | 11 | 1 | N/A | Zero byte (`\0`). | # Actual controllers data