C# 클래스 Hexapet.XboxHidController

파일 보기 프로젝트 열기: peejster/hexapet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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