Skip to main content

Set Button Number

Sets the joystick button number that relates with an input connector. For a connector to be useful, must be assigned to it a joystick button. This instruction assigns a joystick button number to a physical connector. There are 32 input connectors numbered from 1 to 32.

Request

012345678910111213141516171819202122232425262728293031
ID80IJ

Request Structure

ByteValueSizeTypeDescription
0ID1BINMBx24 address (ID)
1801BINSet Button Number instruction code
2I1BINOutput connector number (1-32)
3J1BINAssigned joystick button number (1-200)

Response

012345678910111213141516171819202122232425262728293031
ID80V

Response Structure

ByteValueSizeTypeDescription
0ID1BINMBx24 address (ID)
1801BINSet Button Number instruction code
2V1BIN1 for successful, 0 otherwise

Remarks

On power up or after hard-reset, the default joystick buttons number assign to input connectors range from 50 to 81, i.e., connector 1 is assigned to joystick button number 50. This may be changed in bulk by other instructions or one input at a time.

Care should be taken to not overlap other joystick buttons number already assigned to avoid unwanted behavior.