C# 클래스 GameCommon.GameControlsManager

Represents the player control management.
파일 보기 프로젝트 열기: DarrenHassan/GDM4242-GroupD 1 사용 예제들

공개 메소드들

메소드 설명
DoJoystickEvent ( JoystickInputEvent e ) : bool
DoKeyDown ( KeyEvent e ) : bool

Sends the notice on pressing a system key.

DoKeyUp ( KeyEvent e ) : bool

Sends the notice on releasing a system key.

DoKeyUpAll ( ) : void
DoMouseDown ( EMouseButtons button ) : bool

Sends the notice on pressing a mouse button.

DoMouseMoveRelative ( Vec2 mouseOffset ) : void

Sends the notice on cursor moved.

DoMouseUp ( EMouseButtons button ) : bool

Sends the notice on releasing a mouse button.

DoTick ( float delta ) : void
GetItemByControlKey ( GameControlKeys controlKey ) : GameControlItem
Init ( ) : bool

Initialization the class.

Shutdown ( ) : void

Shutdown the class.

비공개 메소드들

메소드 설명
InitInternal ( ) : bool
ShutdownInternal ( ) : void

메소드 상세

DoJoystickEvent() 공개 메소드

public DoJoystickEvent ( JoystickInputEvent e ) : bool
e JoystickInputEvent
리턴 bool

DoKeyDown() 공개 메소드

Sends the notice on pressing a system key.
public DoKeyDown ( KeyEvent e ) : bool
e KeyEvent Key event arguments.
리턴 bool

DoKeyUp() 공개 메소드

Sends the notice on releasing a system key.
public DoKeyUp ( KeyEvent e ) : bool
e KeyEvent Key event arguments.
리턴 bool

DoKeyUpAll() 공개 메소드

public DoKeyUpAll ( ) : void
리턴 void

DoMouseDown() 공개 메소드

Sends the notice on pressing a mouse button.
public DoMouseDown ( EMouseButtons button ) : bool
button EMouseButtons A value indicating which button was clicked.
리턴 bool

DoMouseMoveRelative() 공개 메소드

Sends the notice on cursor moved.
public DoMouseMoveRelative ( Vec2 mouseOffset ) : void
mouseOffset Vec2 Current mouse position.
리턴 void

DoMouseUp() 공개 메소드

Sends the notice on releasing a mouse button.
public DoMouseUp ( EMouseButtons button ) : bool
button EMouseButtons A value indicating which button was clicked.
리턴 bool

DoTick() 공개 메소드

public DoTick ( float delta ) : void
delta float
리턴 void

GetItemByControlKey() 공개 메소드

public GetItemByControlKey ( GameControlKeys controlKey ) : GameControlItem
controlKey GameControlKeys
리턴 GameControlItem

Init() 공개 정적인 메소드

Initialization the class.
public static Init ( ) : bool
리턴 bool

Shutdown() 공개 정적인 메소드

Shutdown the class.
public static Shutdown ( ) : void
리턴 void