-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added bnvib #196
Added bnvib #196
Conversation
- standard NX library format, already documented online
LOOP = 12 | ||
LOOPWAIT = 16 | ||
|
||
BNVIB = Struct( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be nice to have a link to the switchbrew wiki page here.
"loop_start" / If(construct.this.vibration_type != VibrationType.NORMAL, Int32ul), | ||
"loop_end" / If(construct.this.vibration_type != VibrationType.NORMAL, Int32ul), | ||
"loop_wait" / If(construct.this.vibration_type == VibrationType.LOOPWAIT, Int32ul), | ||
"data" / PrefixedArray(Int32ul, Byte) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefixed(Int32ul, GreedyBytes)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually looking at the documentation more closely: "The size of a sample is 4 bytes."
this should be Prefixed(Int32ul, GreedyRange(Int32ul))
standard NX library format, already documented online https://switchbrew.org/wiki/BNVIB#Normal_Vibration