C# Class WoWmapper.Controllers.ControllerManager

Show file Open project: topher-au/WoWmapper Class Usage Examples

Public Properties

Property Type Description
ActiveController IController
Controllers List
DS4 WoWmapper.Controllers.DS4.DS4Interface
XInput WoWmapper.Controllers.DS4.XInputInterface

Public Methods

Method Description
GetButtonIcon ( GamepadButton button ) : BitmapImage
GetButtonName ( GamepadButton button ) : string
GetLeftAxis ( ) : System.Windows.Point
GetRightAxis ( ) : System.Windows.Point
RefreshControllers ( ) : void
SendRumble ( byte left, byte right, int duration ) : void
SetController ( IController controller ) : void
Start ( ) : void
Stop ( ) : void

Private Methods

Method Description
ActiveControllerOnButtonStateChanged ( GamepadButton button, bool state ) : void
ControllerWatcher ( ) : void
DS4TouchpadButtonDown ( object sender, DS4Windows.TouchpadEventArgs args ) : void
DS4TouchpadButtonUp ( object sender, DS4Windows.TouchpadEventArgs args ) : void
DS4TouchpadMoved ( object sender, DS4Windows.TouchpadEventArgs args ) : void
SetParent ( IntPtr hWndChild, IntPtr hWndNewParent ) : IntPtr
UsbNotifierOnDeviceConnected ( ) : void
UsbNotifierOnDeviceDisconnected ( ) : void

Method Details

GetButtonIcon() public static method

public static GetButtonIcon ( GamepadButton button ) : BitmapImage
button GamepadButton
return System.Windows.Media.Imaging.BitmapImage

GetButtonName() public static method

public static GetButtonName ( GamepadButton button ) : string
button GamepadButton
return string

GetLeftAxis() public static method

public static GetLeftAxis ( ) : System.Windows.Point
return System.Windows.Point

GetRightAxis() public static method

public static GetRightAxis ( ) : System.Windows.Point
return System.Windows.Point

RefreshControllers() public static method

public static RefreshControllers ( ) : void
return void

SendRumble() public static method

public static SendRumble ( byte left, byte right, int duration ) : void
left byte
right byte
duration int
return void

SetController() public static method

public static SetController ( IController controller ) : void
controller IController
return void

Start() public static method

public static Start ( ) : void
return void

Stop() public static method

public static Stop ( ) : void
return void

Property Details

ActiveController public static property

public static IController ActiveController
return IController

Controllers public static property

public static List Controllers
return List

DS4 public static property

public static DS4Interface,WoWmapper.Controllers.DS4 DS4
return WoWmapper.Controllers.DS4.DS4Interface

XInput public static property

public static XInputInterface,WoWmapper.Controllers.DS4 XInput
return WoWmapper.Controllers.DS4.XInputInterface