Skip to content

API Function axisOf

github-actions[bot] edited this page Nov 24, 2026 · 1 revision

Function: axisOf()

function axisOf(
   negative, 
   positive, 
   rest?
): Omit<MappingSpec, "action">;

Defined in: src/engine/input/actions.ts:103

Composite: two buttons to an axis (negative, positive).

Parameters

negative

string

positive

string

rest?

Omit<MappingSpec, "action" | "composite"> = {}

Returns

Omit<MappingSpec, "action">

Clone this wiki locally