Click or drag to resize
Joystick Class
Inheritance Hierarchy
SystemObject
  (Default Namespace)Joystick

Namespace: (Default Namespace)
Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax
C#
public class Joystick

The Joystick type exposes the following members.

Constructors
  NameDescription
Public methodJoystick
Create an object which can be used to acces information about the specified joystick number.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodStatic memberGetDeviceCount
Returns the number of joysticks available on the system.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodCode exampleRead
Read all data from the device associated with this Joystick into the Position, POVAngle and Button properties.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyItem
Determines which buttons were pressed during the last call to Read.
Public propertyMaximumR
Returns the maximum value of RPosition.
Public propertyMaximumU
Returns the maximum value of UPosition.
Public propertyMaximumV
Returns the maximum value of VPosition.
Public propertyMaximumX
Returns the maximum value of XPosition.
Public propertyMaximumY
Returns the maximum value of YPosition.
Public propertyMaximumZ
Returns the maximum value of ZPosition.
Public propertyMinimumR
Returns the minimum value of RPosition.
Public propertyMinimumU
Returns the minimum value of UPosition.
Public propertyMinimumV
Returns the minimum value of VPosition.
Public propertyMinimumX
Returns the minimum value of XPosition.
Public propertyMinimumY
Returns the minimum value of YPosition.
Public propertyMinimumZ
Returns the minimum value of ZPosition.
Public propertyName
Returns a string identifying the joystick in plain text
Public propertyPOVAngle
The position of the joystick's POV control during the last call to Read, represented as a number between 0 and 35900 in hundredths of degrees
Public propertyRPosition
The position of the joystick's rudder input during the last call to Read.
Public propertyUPosition
The position of the joystick's u-axis input during the last call to Read.
Public propertyVPosition
The position of the joystick's v-axis input during the last call to Read.
Public propertyXPosition
The position of the joystick's x-axis input during the last call to Read.
Public propertyYPosition
The position of the joystick's y-axis input during the last call to Read.
Public propertyZPosition
The position of the joystick's z-axis input during the last call to Read.
Top
See Also