Click or drag to resize

Controller Class

The Controller class provides access to the current state of a game controller's axes and buttons.
Inheritance Hierarchy
SystemObject
  Demo3D.InputController

Namespace:  Demo3D.Input
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntax
C#
public class Controller

The Controller type exposes the following members.

Properties
  NameDescription
Public propertyButtons
Array of button states where true means pressed, false means not pressed.
Public propertyDeviceType
The type of game controller device.
Public propertyName
Name of the game controller.
Public propertyPOVs
Array of point of view directional controllers, null means not pressed otherwise value is the angle in degrees where 0 is N, 90 is E, 180 is S, 270 is W.
Public propertyProductName
ProductName of the game controller.
Public propertyRX
X rotation between -1 and 1.
Public propertyRY
Y rotation between -1 and 1.
Public propertyRZ
Z rotation between -1 and 1.
Public propertySliders
Array of slider states between -1 and 1.
Public propertyX
X axis between -1 and 1.
Public propertyY
Y axis between -1 and 1.
Public propertyZ
Z axis between -1 and 1.
Top
Methods
  NameDescription
Public methodStatic memberGetControllers
Get the list of controllers currently connected to the system.
Public methodPoll
Get the latest state and return true if the state has changed.
Public methodSetVibration
Set the vibration speed of the left and right side of the game controller. The values can vary between 0 and 1 with 0 meaning no vibration and 1 meaning maximum vibration.
Top
See Also