Свойство | Type | Description | |
---|---|---|---|
elevons | bool | ||
enabled | bool | ||
name | string | ||
self | Joystick |
Méthode | Description | |
---|---|---|
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 |
Méthode | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Implement reccomended best practice dispose pattern http://msdn.microsoft.com/en-us/library/b1yfkh5e%28v=vs.110%29.aspx
|
Méthode | Description | |
---|---|---|
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 | |
Résultat | SharpDX.DirectInput.Joystick |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
Résultat | 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 | |
Résultat | double |
public changeButton ( int buttonid, int newid ) : void | ||
buttonid | int | |
newid | int | |
Résultat | void |
public getButton ( int arrayoffset ) : JoyButton | ||
arrayoffset | int | |
Résultat | JoyButton |
public getChannel ( int channel ) : JoyChannel | ||
channel | int | |
Résultat | JoyChannel |
public static getJoyStickByName ( string name ) : SharpDX.DirectInput.Joystick | ||
name | string | |
Résultat | SharpDX.DirectInput.Joystick |
public getJoystickAxis ( int channel ) : joystickaxis | ||
channel | int | |
Résultat | joystickaxis |
public static getMovingAxis ( string name, int threshold ) : joystickaxis | ||
name | string | |
threshold | int | |
Résultat | joystickaxis |
public static getPressedButton ( string name ) : int | ||
name | string | |
Résultat | int |
public getRawValueForChannel ( int channel ) : ushort | ||
channel | int | |
Résultat | ushort |
public getValueForChannel ( int channel, string name ) : ushort | ||
channel | int | |
name | string | |
Résultat | ushort |
public isButtonPressed ( int buttonno ) : bool | ||
buttonno | int | |
Résultat | bool |
public loadconfig ( string joystickconfigbutton = "joystickbuttons.xml", string joystickconfigaxis = "joystickaxis.xml" ) : void | ||
joystickconfigbutton | string | |
joystickconfigaxis | string | |
Résultat | void |
public setAxis ( int channel, joystickaxis axis ) : void | ||
channel | int | |
axis | joystickaxis | |
Résultat | void |
public setButton ( int arrayoffset, JoyButton buttonconfig ) : void | ||
arrayoffset | int | |
buttonconfig | JoyButton | |
Résultat | void |
public setChannel ( JoyChannel chan ) : void | ||
chan | JoyChannel | |
Résultat | void |
public setChannel ( int channel, joystickaxis axis, bool reverse, int expo ) : void | ||
channel | int | |
axis | joystickaxis | |
reverse | bool | |
expo | int | |
Résultat | void |
public setReverse ( int channel, bool reverse ) : void | ||
channel | int | |
reverse | bool | |
Résultat | void |