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
파일 보기 프로젝트 열기: SpagAachen/Ballz 1 사용 예제들

공개 메소드들

메소드 설명
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