・An error occurs if XCTRLSTYLE is used without recognizing the Toy-Con Motorbike.
・Return values after HandleTilt can be omitted.
ID of the controller that acquires information: 1 to 2
Return whether or not the Toy-Con Motorbike is recognized and the state of the operation button as a bit value
0 | Unrecognized |
bit0 | Recognizing |
bit1 | Brake Lever |
bit2 | Left Front Button |
bit3 | Right Front Button |
・Recognition method is to put the left and right Joy-Con on the Toy-Con Motorbike and keep them stationary until the recognition flag returns a value other than 0.
・If it is not recognized, the button status is always 0.
Get the amount of handlebar tilt with a value between -1.0 and 1.0
・Tilt to the left for positive values, tilt to the right for negative values, 0 for horizontal.
Get the amount of accelerator twist with a value between 0 and 1.0
・Return 0 when not twisted.
Get accelerator twist angle in radians
・Return 0 when not twisted.
Get the angle in radians when the Toy-Con Motorbike is facing up