C# Class Hexapet.XboxHidController

Afficher le fichier Open project: peejster/hexapet Class Usage Examples

Méthodes publiques

Свойство Type Description
MaxMagnitude int>.Dictionary

Private Properties

Свойство Type Description
coordinatesToDirection ControllerDirection
getMagnitude double
inputReportReceived void

Méthodes publiques

Méthode Description
XboxHidController ( HidDevice deviceHandle ) : System

Initializes a new instance of the XboxHidController class from a HidDevice handle

Private Methods

Méthode Description
coordinatesToDirection ( double x, double y ) : ControllerDirection

Converts thumbstick X/Y coordinates centered at (0,0) to a direction

getMagnitude ( double x, double y ) : double

Gets the magnitude of the vector formed by the X/Y coordinates

inputReportReceived ( HidDevice sender, HidInputReportReceivedEventArgs args ) : void

Handler for processing/filtering input from the controller

Method Details

XboxHidController() public méthode

Initializes a new instance of the XboxHidController class from a HidDevice handle
public XboxHidController ( HidDevice deviceHandle ) : System
deviceHandle HidDevice Handle to the HidDevice
Résultat System

Property Details

MaxMagnitude public_oe property

public Dictionary MaxMagnitude
Résultat int>.Dictionary