Skip to content
SiteEmail

cohtml.InputSystem.GamepadBase

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

Inherits from IDisposable

Inherited by cohtml.InputSystem.GamepadInputManager

Name
classGamepadMap
Stores gamepad data.
Name
voidUpdateGamepadStateNative(GamepadMap gamepad)
Update the gamepad controller state.
virtual voidUnregisterNative(uint id)
Unregister gamepad from the Cohtml plugin
virtual voidDispose()
Name
GamepadBase()
virtual voidRegisterGamepads()
Register a new gamepad in the CohtmlPlugin.
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.
Name
Dictionary< uint, GamepadMap >m_Gamepads
intm_GamepadButtonsCount
intm_GamepadAxesCount
void UpdateGamepadStateNative(
GamepadMap gamepad
)

Update the gamepad controller state.

virtual void UnregisterNative(
uint id
)

Unregister gamepad from the Cohtml plugin

Parameters:

  • id Controller ID
virtual void Dispose()
GamepadBase()
virtual void RegisterGamepads()

Register a new gamepad in the CohtmlPlugin.

const int DefaultButtonsCount = 18;

The default count of gamepad buttons.

const int DefaultAxesCount = 4;

The default count of gamepad axes.

Dictionary< uint, GamepadMap > Gamepads => m_Gamepads;

Returns all registered gamepads.

Dictionary< uint, GamepadMap > m_Gamepads;
int m_GamepadButtonsCount;
int m_GamepadAxesCount;