Свойство | Тип | Описание | |
---|---|---|---|
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 |
public AcquireJoystick ( string name ) : SharpDX.DirectInput.Joystick | ||
name | string | |
Результат | SharpDX.DirectInput.Joystick |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
Результат | void |
public DoJoystickButtonFunction ( ) : void | ||
Результат | void |
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 |
public changeButton ( int buttonid, int newid ) : void | ||
buttonid | int | |
newid | int | |
Результат | void |
public getButton ( int arrayoffset ) : JoyButton | ||
arrayoffset | int | |
Результат | JoyButton |
public getChannel ( int channel ) : JoyChannel | ||
channel | int | |
Результат | JoyChannel |
public static getJoyStickByName ( string name ) : SharpDX.DirectInput.Joystick | ||
name | string | |
Результат | SharpDX.DirectInput.Joystick |
public getJoystickAxis ( int channel ) : joystickaxis | ||
channel | int | |
Результат | joystickaxis |
public static getMovingAxis ( string name, int threshold ) : joystickaxis | ||
name | string | |
threshold | int | |
Результат | joystickaxis |
public static getPressedButton ( string name ) : int | ||
name | string | |
Результат | int |
public getRawValueForChannel ( int channel ) : ushort | ||
channel | int | |
Результат | ushort |
public getValueForChannel ( int channel, string name ) : ushort | ||
channel | int | |
name | string | |
Результат | ushort |
public isButtonPressed ( int buttonno ) : bool | ||
buttonno | int | |
Результат | bool |
public loadconfig ( string joystickconfigbutton = "joystickbuttons.xml", string joystickconfigaxis = "joystickaxis.xml" ) : void | ||
joystickconfigbutton | string | |
joystickconfigaxis | string | |
Результат | void |
public setAxis ( int channel, joystickaxis axis ) : void | ||
channel | int | |
axis | joystickaxis | |
Результат | void |
public setButton ( int arrayoffset, JoyButton buttonconfig ) : void | ||
arrayoffset | int | |
buttonconfig | JoyButton | |
Результат | void |
public setChannel ( JoyChannel chan ) : void | ||
chan | JoyChannel | |
Результат | void |
public setChannel ( int channel, joystickaxis axis, bool reverse, int expo ) : void | ||
channel | int | |
axis | joystickaxis | |
reverse | bool | |
expo | int | |
Результат | void |
public setReverse ( int channel, bool reverse ) : void | ||
channel | int | |
reverse | bool | |
Результат | void |