cohtml.InputSystem.GamepadBase

Base class for Cohtml gamepad storing its data and managing its state.

Inherits from IDisposable

Inherited by cohtml.InputSystem.GamepadInputManager

Public Classes

Name
classGamepadMap
Stores gamepad data.

Public Functions

Name
voidUpdateGamepadStateNative(GamepadMap gamepad)
Update the gamepad controller state.
virtual voidUnregisterNative(uint id)
Unregister gamepad from the Cohtml plugin
virtual voidDispose()

Protected Functions

Name
GamepadBase()
virtual voidRegisterGamepads()
Register a new gamepad in the CohtmlPlugin.

Public Attributes

Name
const intDefaultButtonsCount
The default count of gamepad buttons.
const intDefaultAxesCount
The default count of gamepad axes.
Dictionary< uint, GamepadMap >Gamepads
Returns all registered gamepads.

Protected Attributes

Name
Dictionary< uint, GamepadMap >m_Gamepads
intm_GamepadButtonsCount
intm_GamepadAxesCount

Public Functions Documentation

function UpdateGamepadStateNative

void UpdateGamepadStateNative(
    GamepadMap gamepad
)

Update the gamepad controller state.

function UnregisterNative

virtual void UnregisterNative(
    uint id
)

Unregister gamepad from the Cohtml plugin

Parameters:

  • id Controller ID

function Dispose

virtual void Dispose()

Protected Functions Documentation

function GamepadBase

GamepadBase()

function RegisterGamepads

virtual void RegisterGamepads()

Register a new gamepad in the CohtmlPlugin.

Public Attributes Documentation

variable DefaultButtonsCount

const int DefaultButtonsCount = 18;

The default count of gamepad buttons.

variable DefaultAxesCount

const int DefaultAxesCount = 4;

The default count of gamepad axes.

variable Gamepads

Dictionary< uint, GamepadMap > Gamepads => m_Gamepads;

Returns all registered gamepads.

Protected Attributes Documentation

variable m_Gamepads

Dictionary< uint, GamepadMap > m_Gamepads;

variable m_GamepadButtonsCount

int m_GamepadButtonsCount;

variable m_GamepadAxesCount

int m_GamepadAxesCount;