MiniQuake2

src/miniquake2/client/ui/gamepad.ml

Provides miniquake2 client ui gamepad facilities for this project.

Package
miniquake2.client.ui.gamepad
Reachable
Yes

Imports

Declarations

create

function create(enabled)

Creates create for the miniquake2 client ui gamepad module.

ParameterTypeDefaultDescription
enableddynamic—enabled value consumed by this operation.

View source

miniquake2.client.ui.gamepad.GamepadSample struct

miniquake2.client.ui.gamepad.GamepadState struct

normalizeAxis

inline function normalizeAxis(raw, deadZone)

Normalize axis.

ParameterTypeDefaultDescription
rawdynamic—raw value consumed by this operation.
deadZonedynamic—deadZone value consumed by this operation.

View source

poll

function poll(state)

Performs the poll operation for the miniquake2 client ui gamepad module.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.

View source

sampleRaw

function sampleRaw(state, axes, buttons, pov)

Sample raw.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.
axesdynamic—axes value consumed by this operation.
buttonsdynamic—buttons value consumed by this operation.
povdynamic—pov value consumed by this operation.

View source