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
Section titled “Public Classes”| Name | |
|---|---|
| class | GamepadMap Stores gamepad data. |
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| void | UpdateGamepadStateNative(GamepadMap gamepad) Update the gamepad controller state. |
| virtual void | UnregisterNative(uint id) Unregister gamepad from the Cohtml plugin |
| virtual void | Dispose() |
Protected Functions
Section titled “Protected Functions”| Name | |
|---|---|
| GamepadBase() | |
| virtual void | RegisterGamepads() Register a new gamepad in the CohtmlPlugin. |
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| const int | DefaultButtonsCount The default count of gamepad buttons. |
| const int | DefaultAxesCount The default count of gamepad axes. |
| Dictionary< uint, GamepadMap > | Gamepads Returns all registered gamepads. |
Protected Attributes
Section titled “Protected Attributes”| Name | |
|---|---|
| Dictionary< uint, GamepadMap > | m_Gamepads |
| int | m_GamepadButtonsCount |
| int | m_GamepadAxesCount |
Public Functions Documentation
Section titled “Public Functions Documentation”function UpdateGamepadStateNative
Section titled “function UpdateGamepadStateNative”void UpdateGamepadStateNative( GamepadMap gamepad)Update the gamepad controller state.
function UnregisterNative
Section titled “function UnregisterNative”virtual void UnregisterNative( uint id)Unregister gamepad from the Cohtml plugin
Parameters:
- id Controller ID
function Dispose
Section titled “function Dispose”virtual void Dispose()Protected Functions Documentation
Section titled “Protected Functions Documentation”function GamepadBase
Section titled “function GamepadBase”GamepadBase()function RegisterGamepads
Section titled “function RegisterGamepads”virtual void RegisterGamepads()Register a new gamepad in the CohtmlPlugin.
Public Attributes Documentation
Section titled “Public Attributes Documentation”variable DefaultButtonsCount
Section titled “variable DefaultButtonsCount”const int DefaultButtonsCount = 18;The default count of gamepad buttons.
variable DefaultAxesCount
Section titled “variable DefaultAxesCount”const int DefaultAxesCount = 4;The default count of gamepad axes.
variable Gamepads
Section titled “variable Gamepads”Dictionary< uint, GamepadMap > Gamepads => m_Gamepads;Returns all registered gamepads.
Protected Attributes Documentation
Section titled “Protected Attributes Documentation”variable m_Gamepads
Section titled “variable m_Gamepads”Dictionary< uint, GamepadMap > m_Gamepads;variable m_GamepadButtonsCount
Section titled “variable m_GamepadButtonsCount”int m_GamepadButtonsCount;variable m_GamepadAxesCount
Section titled “variable m_GamepadAxesCount”int m_GamepadAxesCount;© 2026 Coherent Labs. All rights reserved.