Show / Hide Table of Contents

Struct GamepadBatteryInfo

Contains information about a gamepads battery.

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: OpenTK.Core.Platform
Assembly: OpenTK.Core.dll
Syntax
public struct GamepadBatteryInfo

Constructors

GamepadBatteryInfo(GamepadBatteryType, float)

Initializes a new instance of the GamepadBatteryInfo struct.

Declaration
public GamepadBatteryInfo(GamepadBatteryType batteryType, float chargeLevel)
Parameters
Type Name Description
GamepadBatteryType batteryType

The type of battery contained in the gamepad.

float chargeLevel

The level of charge of the battery.

Fields

BatteryType

The type of battery contained in the gamepad.

Declaration
public GamepadBatteryType BatteryType
Field Value
Type Description
GamepadBatteryType

ChargeLevel

The level of charge of the gamepad battery. In the range [0, 1], where 0 represents empty and 1 represents full.

Declaration
public float ChargeLevel
Field Value
Type Description
float
Remarks

On Windows this value will only change in four steps, 0.0, 0.333..., 0.666..., and 1.0. Representing Empty, Low, Medium, and Full.

In this article
Back to top Generated by DocFX