C# 클래스 MissionPlanner.Joystick.Joystick

상속: IDisposable
파일 보기 프로젝트 열기: ArduPilot/MissionPlanner 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
elevons bool
enabled bool
name string
self Joystick

공개 메소드들

메소드 설명
AcquireJoystick ( string name ) : SharpDX.DirectInput.Joystick
Dispose ( ) : void
DoJoystickButtonFunction ( ) : void
Expo ( double input, double expo, double min, double max, double mid ) : double
Joystick ( ) : System
UnAcquireJoyStick ( ) : void
changeButton ( int buttonid, int newid ) : void
clearRCOverride ( ) : void
getButton ( int arrayoffset ) : JoyButton
getChannel ( int channel ) : JoyChannel
getDevices ( ) : IList
getHatSwitchDirection ( ) : int
getJoyStickByName ( string name ) : SharpDX.DirectInput.Joystick
getJoystickAxis ( int channel ) : joystickaxis
getMovingAxis ( string name, int threshold ) : joystickaxis
getNumButtons ( ) : int
getNumberPOV ( ) : int
getPressedButton ( string name ) : int
getRawValueForChannel ( int channel ) : ushort
getValueForChannel ( int channel, string name ) : ushort
isButtonPressed ( int buttonno ) : bool
loadconfig ( string joystickconfigbutton = "joystickbuttons.xml", string joystickconfigaxis = "joystickaxis.xml" ) : void
saveconfig ( ) : void
setAxis ( int channel, joystickaxis axis ) : void
setButton ( int arrayoffset, JoyButton buttonconfig ) : void
setChannel ( JoyChannel chan ) : void
setChannel ( int channel, joystickaxis axis, bool reverse, int expo ) : void
setReverse ( int channel, bool reverse ) : void
start ( string name ) : bool

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Implement reccomended best practice dispose pattern http://msdn.microsoft.com/en-us/library/b1yfkh5e%28v=vs.110%29.aspx

비공개 메소드들

메소드 설명
BOOL_TO_SIGN ( bool input ) : int
ButtonDown ( JoyButton but ) : void
ButtonUp ( JoyButton but ) : void
Constrain ( double value, double min, double max ) : double
ProcessButtonEvent ( JoyButton but, bool buttondown ) : void
getButtonState ( JoyButton but, int buttonno ) : bool

Button press check with debounce

mainloop ( ) : void

Updates the rcoverride values and controls the mode changes

map ( double x, double in_min, double in_max, double out_min, double out_max ) : double
pickchannel ( int chan, joystickaxis axis, bool rev, int expo ) : ushort

메소드 상세

AcquireJoystick() 공개 메소드

public AcquireJoystick ( string name ) : SharpDX.DirectInput.Joystick
name string
리턴 SharpDX.DirectInput.Joystick

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Implement reccomended best practice dispose pattern http://msdn.microsoft.com/en-us/library/b1yfkh5e%28v=vs.110%29.aspx
protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

DoJoystickButtonFunction() 공개 메소드

public DoJoystickButtonFunction ( ) : void
리턴 void

Expo() 공개 정적인 메소드

public static Expo ( double input, double expo, double min, double max, double mid ) : double
input double
expo double
min double
max double
mid double
리턴 double

Joystick() 공개 메소드

public Joystick ( ) : System
리턴 System

UnAcquireJoyStick() 공개 메소드

public UnAcquireJoyStick ( ) : void
리턴 void

changeButton() 공개 메소드

public changeButton ( int buttonid, int newid ) : void
buttonid int
newid int
리턴 void

clearRCOverride() 공개 메소드

public clearRCOverride ( ) : void
리턴 void

getButton() 공개 메소드

public getButton ( int arrayoffset ) : JoyButton
arrayoffset int
리턴 JoyButton

getChannel() 공개 메소드

public getChannel ( int channel ) : JoyChannel
channel int
리턴 JoyChannel

getDevices() 공개 정적인 메소드

public static getDevices ( ) : IList
리턴 IList

getHatSwitchDirection() 공개 메소드

public getHatSwitchDirection ( ) : int
리턴 int

getJoyStickByName() 공개 정적인 메소드

public static getJoyStickByName ( string name ) : SharpDX.DirectInput.Joystick
name string
리턴 SharpDX.DirectInput.Joystick

getJoystickAxis() 공개 메소드

public getJoystickAxis ( int channel ) : joystickaxis
channel int
리턴 joystickaxis

getMovingAxis() 공개 정적인 메소드

public static getMovingAxis ( string name, int threshold ) : joystickaxis
name string
threshold int
리턴 joystickaxis

getNumButtons() 공개 메소드

public getNumButtons ( ) : int
리턴 int

getNumberPOV() 공개 메소드

public getNumberPOV ( ) : int
리턴 int

getPressedButton() 공개 정적인 메소드

public static getPressedButton ( string name ) : int
name string
리턴 int

getRawValueForChannel() 공개 메소드

public getRawValueForChannel ( int channel ) : ushort
channel int
리턴 ushort

getValueForChannel() 공개 메소드

public getValueForChannel ( int channel, string name ) : ushort
channel int
name string
리턴 ushort

isButtonPressed() 공개 메소드

public isButtonPressed ( int buttonno ) : bool
buttonno int
리턴 bool

loadconfig() 공개 메소드

public loadconfig ( string joystickconfigbutton = "joystickbuttons.xml", string joystickconfigaxis = "joystickaxis.xml" ) : void
joystickconfigbutton string
joystickconfigaxis string
리턴 void

saveconfig() 공개 메소드

public saveconfig ( ) : void
리턴 void

setAxis() 공개 메소드

public setAxis ( int channel, joystickaxis axis ) : void
channel int
axis joystickaxis
리턴 void

setButton() 공개 메소드

public setButton ( int arrayoffset, JoyButton buttonconfig ) : void
arrayoffset int
buttonconfig JoyButton
리턴 void

setChannel() 공개 메소드

public setChannel ( JoyChannel chan ) : void
chan JoyChannel
리턴 void

setChannel() 공개 메소드

public setChannel ( int channel, joystickaxis axis, bool reverse, int expo ) : void
channel int
axis joystickaxis
reverse bool
expo int
리턴 void

setReverse() 공개 메소드

public setReverse ( int channel, bool reverse ) : void
channel int
reverse bool
리턴 void

start() 공개 메소드

public start ( string name ) : bool
name string
리턴 bool

프로퍼티 상세

elevons 공개적으로 프로퍼티

public bool elevons
리턴 bool

enabled 공개적으로 프로퍼티

public bool enabled
리턴 bool

name 공개적으로 프로퍼티

public string name
리턴 string

self 공개적으로 정적으로 프로퍼티

public static Joystick self
리턴 Joystick