C# Класс UHSampleGame.InputManagement.InputManager

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddInput ( InputAction action, Buttons button ) : void

Allows the action to be triggered by the key

AddInput ( InputAction action, Keys key ) : void

Allows the action to be triggered by the key

CheckAction ( InputAction action ) : bool

Checks if the action has is triggered

CheckAction ( InputAction action, PlayerIndex playerIndex ) : bool

Checks if the action has is triggered

CheckNewAction ( InputAction action ) : bool

Checks if the action has just been triggered

CheckNewAction ( InputAction action, PlayerIndex playerIndex ) : bool

Checks if the action has just been triggered

CheckNewReleaseAction ( InputAction action ) : bool
CheckNewReleaseAction ( InputAction action, PlayerIndex playerIndex ) : bool
CheckReleaseAction ( InputAction action ) : bool

Checks if the action has just been released

CheckReleaseAction ( InputAction action, PlayerIndex playerIndex ) : bool

Checks if the action has just been released

InputManager ( ) : System
Update ( ) : void

Updates previous and current input devices

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

Метод Описание
IsButtonPressed ( Buttons button, PlayerIndex playerIndex ) : bool
IsButtonReleased ( Buttons button, PlayerIndex playerIndex ) : bool
IsKeyPressed ( Keys key ) : bool
IsKeyReleased ( Keys key ) : bool
IsNewButtonPressed ( Buttons button, PlayerIndex playerIndex ) : bool
IsNewButtonReleased ( Buttons button, PlayerIndex playerIndex ) : bool
IsNewKeyPressed ( Keys key ) : bool
IsNewKeyReleased ( Keys key ) : bool

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

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

Allows the action to be triggered by the key
public AddInput ( InputAction action, Buttons button ) : void
action InputAction The input action to be triggered
button Buttons The button to trigger the action
Результат void

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

Allows the action to be triggered by the key
public AddInput ( InputAction action, Keys key ) : void
action InputAction The input action to be triggered
key Keys The key to trigger the action
Результат void

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

Checks if the action has is triggered
public CheckAction ( InputAction action ) : bool
action InputAction The action to check
Результат bool

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

Checks if the action has is triggered
public CheckAction ( InputAction action, PlayerIndex playerIndex ) : bool
action InputAction The action to check
playerIndex PlayerIndex The player index to check
Результат bool

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

Checks if the action has just been triggered
public CheckNewAction ( InputAction action ) : bool
action InputAction The action to check
Результат bool

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

Checks if the action has just been triggered
public CheckNewAction ( InputAction action, PlayerIndex playerIndex ) : bool
action InputAction The action to check
playerIndex PlayerIndex The player index to check
Результат bool

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

public CheckNewReleaseAction ( InputAction action ) : bool
action InputAction
Результат bool

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

public CheckNewReleaseAction ( InputAction action, PlayerIndex playerIndex ) : bool
action InputAction
playerIndex PlayerIndex
Результат bool

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

Checks if the action has just been released
public CheckReleaseAction ( InputAction action ) : bool
action InputAction The action to check
Результат bool

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

Checks if the action has just been released
public CheckReleaseAction ( InputAction action, PlayerIndex playerIndex ) : bool
action InputAction The action to check
playerIndex PlayerIndex The player index to check
Результат bool

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

public InputManager ( ) : System
Результат System

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

Updates previous and current input devices
public Update ( ) : void
Результат void