C# Класс Ballz.Input.InputTranslator

Input translator takes care of all physical inputs with regards to specified keymappings etc. It translates these inputs to corresponding Game Messages.
Наследование: Microsoft.Xna.Framework.GameComponent
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
InjectInputMessage ( InputMessage message, Player player ) : void
InputTranslator ( Ballz game ) : System
Update ( GameTime gameTime ) : void

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

Метод Описание
ChangedKeys ( Keys a, Keys b ) : List

find out which keys got changed from array a to array b. the comparison is one sided thus if in b a key was added the returned list will be empty. if in a a key was added, the list will contain this key

EmitKeyMessages ( List keyList, bool pressed ) : void
OnInput ( InputMessage inputType, bool pressed = false, char key = char.MinValue, Player player = null ) : void
ProcessGamePadInput ( int p ) : void
ProcessInput ( ) : void
ProcessRawInput ( ) : void

Processes the raw input and emits corresponding Events. TODO: add GamePad Support for raw inputs.

RawHandler ( object sender, Microsoft.Xna.Framework.TextInputEventArgs eventArgs ) : void

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

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

public InjectInputMessage ( InputMessage message, Player player ) : void
message Ballz.Messages.InputMessage
player Ballz.GameSession.Logic.Player
Результат void

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

public InputTranslator ( Ballz game ) : System
game Ballz
Результат System

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

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