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