C# Class GameCommon.GameControlsManager

Represents the player control management.
Afficher le fichier Open project: DarrenHassan/GDM4242-GroupD Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
InitInternal ( ) : bool
ShutdownInternal ( ) : void

Method Details

DoJoystickEvent() public méthode

public DoJoystickEvent ( JoystickInputEvent e ) : bool
e JoystickInputEvent
Résultat bool

DoKeyDown() public méthode

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

DoKeyUp() public méthode

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

DoKeyUpAll() public méthode

public DoKeyUpAll ( ) : void
Résultat void

DoMouseDown() public méthode

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

DoMouseMoveRelative() public méthode

Sends the notice on cursor moved.
public DoMouseMoveRelative ( Vec2 mouseOffset ) : void
mouseOffset Vec2 Current mouse position.
Résultat void

DoMouseUp() public méthode

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

DoTick() public méthode

public DoTick ( float delta ) : void
delta float
Résultat void

GetItemByControlKey() public méthode

public GetItemByControlKey ( GameControlKeys controlKey ) : GameControlItem
controlKey GameControlKeys
Résultat GameControlItem

Init() public static méthode

Initialization the class.
public static Init ( ) : bool
Résultat bool

Shutdown() public static méthode

Shutdown the class.
public static Shutdown ( ) : void
Résultat void