MiniQuake2

src/miniquake2/client/ui/controller.ml

Provides miniquake2 client ui controller facilities for this project.

Package
miniquake2.client.ui.controller
Reachable
Yes

Imports

Declarations

beginMessage

function beginMessage(input, team)

Begin message.

ParameterTypeDefaultDescription
inputdynamic—input value consumed by this operation.
teamdynamic—team value consumed by this operation.

View source

configureGamepad

function configureGamepad(enabled)

Configure gamepad.

ParameterTypeDefaultDescription
enableddynamic—enabled value consumed by this operation.

View source

controllerGamepadState

controllerGamepadState

Stores module-wide controller gamepad state state for the miniquake2 client ui controller module.

View source

editMessage

function editMessage(input, key)

Return the edit message value.

ParameterTypeDefaultDescription
inputdynamic—input value consumed by this operation.
keydynamic—key value consumed by this operation.

View source

finishMessage

function finishMessage(input)

Finish message.

ParameterTypeDefaultDescription
inputdynamic—input value consumed by this operation.

View source

gamepadKeyEvent

function gamepadKeyEvent(key)

Return the gamepad key event value.

ParameterTypeDefaultDescription
keydynamic—key value consumed by this operation.

View source

gamepadState

function gamepadState()

Return the gamepad state.

View source

handleEvent

function handleEvent(input, screen, event, time)

Handle event.

ParameterTypeDefaultDescription
inputdynamic—input value consumed by this operation.
screendynamic—screen value consumed by this operation.
eventdynamic—event value consumed by this operation.
timedynamic—time value consumed by this operation.

View source

openMenu

function openMenu(input, screen)

Open menu.

ParameterTypeDefaultDescription
inputdynamic—input value consumed by this operation.
screendynamic—screen value consumed by this operation.

View source

poll

function poll(input, screen, time)

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

ParameterTypeDefaultDescription
inputdynamic—input value consumed by this operation.
screendynamic—screen value consumed by this operation.
timedynamic—time value consumed by this operation.

View source

pollGamepad

function pollGamepad(input, screen, time)

Poll gamepad.

ParameterTypeDefaultDescription
inputdynamic—input value consumed by this operation.
screendynamic—screen value consumed by this operation.
timedynamic—time value consumed by this operation.

View source