Documentation Topics
Function

PRVirconJoySetNotches()

Sets the given joystick's notch sprites. The notches are drawn at each of the 8 cardinal points a set distance from the center of the joystick nub. Set the sprite parameters to noone if you don’t want a notch sprite to draw at that point. Call this function with forSelected = true to set the notch sprites to draw when the joystick is pressed in their direction. Call this function with forSelected = false to set the notch sprites to draw when the joystick is NOT pressed in their direction. If no sprites are assigned when forSelected = true, then the sprites assigned when forSelected = false will be drawn instead.


Declaration

PRVirconJoySetNotches(joyId, distFromCenter, forSelected, spriteRight, spriteTopRight, spriteTop, spriteTopLeft, spriteLeft, spriteBottomLeft, spriteBottom, spriteBottomRight)

Parameters

joyId

The joystick ID.

distFromCenter

The distance (in pixels) from the center of the joystick nub to draw the notches.

forSelected

If true, assigns the given sprites to the joystick notches for when the joystick is pressed in their direction. If false, the given sprites are assigned to the notches when the joystick is NOT pressed in their direction.

spriteRight

The notch sprite to use for the right direction.

spriteTopRight

The notch sprite to use for the top-right direction.

spriteTop

The notch sprite to use for the top direction.

spriteTopLeft

The notch sprite to use for the top-left direction.

spriteLeft

The notch sprite to use for the left direction.

spriteBottomLeft

The notch sprite to use for the bottom-left direction.

spriteBottom

The notch sprite to use for the bottom direction.

spriteBottomRight

The notch sprite to use for the bottom-right direction.

Return Value

n/a