ExMujoco.Types.Mouse (ExMujoco v0.1.1)

Copy Markdown View Source

mjtMouse_, from MuJoCo's headers, as numbers. All 10 values carry a number in the header.

Summary

Functions

mjMOUSE_MOVE_H is 4.

mjMOUSE_MOVE_H_REL is 7.

mjMOUSE_MOVE_V is 3.

mjMOUSE_MOVE_V_REL is 6.

mjMOUSE_NONE is 0.

mjMOUSE_ROTATE_H is 2.

mjMOUSE_ROTATE_V is 1.

The name behind an integer. An atom is already one.

The integer behind a name. An integer is already one.

mjMOUSE_TURN_H is 9.

mjMOUSE_TURN_V is 8.

Every value, as {name, integer}, in the order the header lists them.

mjMOUSE_ZOOM is 5.

Types

t()

@type t() :: integer()

Functions

move_h()

@spec move_h() :: 4

mjMOUSE_MOVE_H is 4.

move_h_rel()

@spec move_h_rel() :: 7

mjMOUSE_MOVE_H_REL is 7.

move_v()

@spec move_v() :: 3

mjMOUSE_MOVE_V is 3.

move_v_rel()

@spec move_v_rel() :: 6

mjMOUSE_MOVE_V_REL is 6.

none()

@spec none() :: 0

mjMOUSE_NONE is 0.

rotate_h()

@spec rotate_h() :: 2

mjMOUSE_ROTATE_H is 2.

rotate_v()

@spec rotate_v() :: 1

mjMOUSE_ROTATE_V is 1.

to_atom(value)

@spec to_atom(integer() | atom()) :: atom() | nil

The name behind an integer. An atom is already one.

to_integer(value)

@spec to_integer(t() | atom()) :: integer() | nil

The integer behind a name. An integer is already one.

turn_h()

@spec turn_h() :: 9

mjMOUSE_TURN_H is 9.

turn_v()

@spec turn_v() :: 8

mjMOUSE_TURN_V is 8.

values()

@spec values() :: [{atom(), integer()}]

Every value, as {name, integer}, in the order the header lists them.

zoom()

@spec zoom() :: 5

mjMOUSE_ZOOM is 5.