C# 클래스 Evbpc.Framework.Xna.Utilities.KeyboardStateManager

This provides an easy-to-use class to interact with the Keyboard in an XNA game.
파일 보기 프로젝트 열기: EBrown8534/Framework

공개 메소드들

메소드 설명
GetKeyChar ( Evbpc.Framework.Windows.Forms.Keys key ) : char

Gets the char value represented by the Keys that was sent.

Update ( KeyboardState kState ) : void

Updates the internal KeyboardState and fires relevant events.

보호된 메소드들

메소드 설명
OnKeyDown ( KeyEventArgs e ) : void

Raises the KeyDown event.

http://msdn.microsoft.com/en-us/library/system.windows.forms.control.onkeydown(v=vs.110).aspx

OnKeyPress ( KeyPressEventArgs e ) : void

Raises the KeyPress event.

http://msdn.microsoft.com/en-us/library/system.windows.forms.control.onkeypress(v=vs.110).aspx

OnKeyUp ( KeyEventArgs e ) : void

Raises the KeyUp event.

http://msdn.microsoft.com/en-us/library/system.windows.forms.control.onkeyup(v=vs.110).aspx

비공개 메소드들

메소드 설명
GetPressedKeys ( ) : List
GetPressedKeys ( KeyboardState k ) : List
IsKeyDown ( List pressedKeys, Evbpc.Framework.Windows.Forms.Keys key ) : bool
IsKeyUp ( List pressedKeys, Evbpc.Framework.Windows.Forms.Keys key ) : bool
IsPressedState ( List pressedKeys, Evbpc.Framework.Windows.Forms.Keys key, bool state ) : bool
XnaKeyToKey ( Microsoft.Xna.Framework.Input.Keys key ) : Evbpc.Framework.Windows.Forms.Keys

메소드 상세

GetKeyChar() 공개 정적인 메소드

Gets the char value represented by the Keys that was sent.
public static GetKeyChar ( Evbpc.Framework.Windows.Forms.Keys key ) : char
key Evbpc.Framework.Windows.Forms.Keys The enumeration value to examine.
리턴 char

OnKeyDown() 보호된 메소드

Raises the KeyDown event.
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.onkeydown(v=vs.110).aspx
protected OnKeyDown ( KeyEventArgs e ) : void
e KeyEventArgs A that contains the event data.
리턴 void

OnKeyPress() 보호된 메소드

Raises the KeyPress event.
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.onkeypress(v=vs.110).aspx
protected OnKeyPress ( KeyPressEventArgs e ) : void
e Evbpc.Framework.Windows.Forms.KeyPressEventArgs A that contains the event data.
리턴 void

OnKeyUp() 보호된 메소드

Raises the KeyUp event.
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.onkeyup(v=vs.110).aspx
protected OnKeyUp ( KeyEventArgs e ) : void
e KeyEventArgs A that contains the event data.
리턴 void

Update() 공개 메소드

Updates the internal KeyboardState and fires relevant events.
public Update ( KeyboardState kState ) : void
kState Microsoft.Xna.Framework.Input.KeyboardState The new KeyboardState.
리턴 void