C# Класс Indiefreaks.Xna.Input.PlayerInput

PlayerInput is a class that stores the current player's input state
It provides automatic input device plug-in/out management through the Connected and Disconnected events
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddVibration ( Vibration vibration ) : void

Add a vibration to the player input controller

AddVibration ( Vibration targetMotor, float frequency, float duration ) : void

Add a vibration to the player input controller

AddVibration ( Vibration targetMotor, float frequency, float duration, float>.Func modifier ) : void

Add a vibration to the player input controller

Update ( GameTime gameTime ) : void

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

Метод Описание
CheckConnectionStatus ( ) : void
PlayerInput ( PlayerIndex index ) : System
SetKms ( InputManager inputManager ) : void
SetTouches ( InputManager inputManager ) : void
UpdateState ( long tick, GamePadState gamePadState ) : void
UpdateState ( long tick, GamePadState gamePadState, List touches, TouchMapping mapping ) : void
UpdateState ( long tick, KeyboardMouseState keyboardMouseState, KeyboardMouseMapping mapping ) : void
UpdateVibration ( long ticks ) : void

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

AddVibration() публичный Метод

Add a vibration to the player input controller
public AddVibration ( Vibration vibration ) : void
vibration Vibration The vibration
Результат void

AddVibration() публичный Метод

Add a vibration to the player input controller
public AddVibration ( Vibration targetMotor, float frequency, float duration ) : void
targetMotor Vibration The target motor
frequency float The motor frequency.
duration float The duration of the vibration
Результат void

AddVibration() публичный Метод

Add a vibration to the player input controller
public AddVibration ( Vibration targetMotor, float frequency, float duration, float>.Func modifier ) : void
targetMotor Vibration The target motor
frequency float The motor frequency.
duration float The duration of the vibration
modifier float>.Func Frequency modifier delegate
Результат void

Update() публичный Метод

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Результат void