C# Класс Hexapet.XboxHidController

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
MaxMagnitude int>.Dictionary

Private Properties

Свойство Тип Описание
coordinatesToDirection ControllerDirection
getMagnitude double
inputReportReceived void

Открытые методы

Метод Описание
XboxHidController ( HidDevice deviceHandle ) : System

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

Приватные методы

Метод Описание
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

Описание методов

XboxHidController() публичный Метод

Initializes a new instance of the XboxHidController class from a HidDevice handle
public XboxHidController ( HidDevice deviceHandle ) : System
deviceHandle HidDevice Handle to the HidDevice
Результат System

Описание свойств

MaxMagnitude публичное свойство

public Dictionary MaxMagnitude
Результат int>.Dictionary