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: 19.00.00
Syntax
C#
public class Controller

The Controller type exposes the following members.

Properties
 NameDescription
Public propertyButtonsArray 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 propertyRXX rotation between -1 and 1.
Public propertyRYY rotation between -1 and 1.
Public propertyRZZ rotation between -1 and 1.
Public propertySlidersArray of slider states between -1 and 1.
Public propertyXX axis between -1 and 1.
Public propertyYY axis between -1 and 1.
Public propertyZZ 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