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 | |
---|---|
class | GamepadMap Stores gamepad data. |
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
Name | |
---|---|
GamepadBase() | |
virtual void | RegisterGamepads() Register a new gamepad in the CohtmlPlugin. |
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
Name | |
---|---|
Dictionary< uint, GamepadMap > | m_Gamepads |
int | m_GamepadButtonsCount |
int | m_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;