C# Класс WoWmapper.Controllers.ControllerManager

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ActiveController IController
Controllers List
DS4 WoWmapper.Controllers.DS4.DS4Interface
XInput WoWmapper.Controllers.DS4.XInputInterface

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

GetButtonIcon() публичный статический Метод

public static GetButtonIcon ( GamepadButton button ) : BitmapImage
button GamepadButton
Результат System.Windows.Media.Imaging.BitmapImage

GetButtonName() публичный статический Метод

public static GetButtonName ( GamepadButton button ) : string
button GamepadButton
Результат string

GetLeftAxis() публичный статический Метод

public static GetLeftAxis ( ) : System.Windows.Point
Результат System.Windows.Point

GetRightAxis() публичный статический Метод

public static GetRightAxis ( ) : System.Windows.Point
Результат System.Windows.Point

RefreshControllers() публичный статический Метод

public static RefreshControllers ( ) : void
Результат void

SendRumble() публичный статический Метод

public static SendRumble ( byte left, byte right, int duration ) : void
left byte
right byte
duration int
Результат void

SetController() публичный статический Метод

public static SetController ( IController controller ) : void
controller IController
Результат void

Start() публичный статический Метод

public static Start ( ) : void
Результат void

Stop() публичный статический Метод

public static Stop ( ) : void
Результат void

Описание свойств

ActiveController публичное статическое свойство

public static IController ActiveController
Результат IController

Controllers публичное статическое свойство

public static List Controllers
Результат List

DS4 публичное статическое свойство

public static DS4Interface,WoWmapper.Controllers.DS4 DS4
Результат WoWmapper.Controllers.DS4.DS4Interface

XInput публичное статическое свойство

public static XInputInterface,WoWmapper.Controllers.DS4 XInput
Результат WoWmapper.Controllers.DS4.XInputInterface