Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #12051 from mandar1jn/J-documentation-improvements
Skylanders: Update J command documentation
  • Loading branch information
AdmiralCurtiss committed Jul 23, 2023
2 parents dd3caa4 + eba5291 commit c1a4b3f
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Source/Core/Core/IOS/USB/Emulated/Skylander.cpp
Expand Up @@ -677,18 +677,13 @@ int SkylanderUSB::SubmitTransfer(std::unique_ptr<CtrlMessage> cmd)
// Sided color
// The 2nd byte is the side
// 0x00: right
// 0x01: left and right
// 0x02: left

// The 3rd, 4th and 5th bytes are red, green and blue

// The 6th byte is unknown. Observed values are 0x00, 0x0D and 0xF4

// The 7th byte is the fade duration. Exact value-time corrolation unknown. Observed values
// are 0x00, 0x01 and 0x07. Custom commands show that the higher this value the longer the
// duration.

// Empty J response is sent after the fade is completed.
// The 6th and 7th bytes form a little-endian short for how long the fade duration should be
// in milliseconds.
// For example, 500 milliseconds becomes 0xF4, 0x01
if (cmd->length == 7)
{
control_response = {buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6]};
Expand Down

0 comments on commit c1a4b3f

Please sign in to comment.