ExMujoco.Types.Mouse (ExMujoco v0.2.2)

Copy Markdown View Source

mjtMouse_ — mouse interaction mode. From MuJoCo's headers, as numbers. All 10 values carry a number in the header.

Summary

Functions

mjMOUSE_MOVE_H is 4 — move along horizontal plane.

mjMOUSE_MOVE_H_REL is 7 — move (truck, dolly), horizontal plane rel. to target.

mjMOUSE_MOVE_V is 3 — move along vertical plane.

mjMOUSE_MOVE_V_REL is 6 — move (truck, pedestal), vertical plane rel. to target.

mjMOUSE_NONE is 0 — no action.

mjMOUSE_ROTATE_H is 2 — rotate (orbit) horizontally.

mjMOUSE_ROTATE_V is 1 — rotate (orbit) vertically.

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 — turn (pan) horizontally.

mjMOUSE_TURN_V is 8 — turn (tilt) vertically.

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

mjMOUSE_ZOOM is 5 — zoom (towards/away from lookat point).

Types

t()

@type t() :: integer()

Functions

move_h()

@spec move_h() :: 4

mjMOUSE_MOVE_H is 4 — move along horizontal plane.

move_h_rel()

@spec move_h_rel() :: 7

mjMOUSE_MOVE_H_REL is 7 — move (truck, dolly), horizontal plane rel. to target.

move_v()

@spec move_v() :: 3

mjMOUSE_MOVE_V is 3 — move along vertical plane.

move_v_rel()

@spec move_v_rel() :: 6

mjMOUSE_MOVE_V_REL is 6 — move (truck, pedestal), vertical plane rel. to target.

none()

@spec none() :: 0

mjMOUSE_NONE is 0 — no action.

rotate_h()

@spec rotate_h() :: 2

mjMOUSE_ROTATE_H is 2 — rotate (orbit) horizontally.

rotate_v()

@spec rotate_v() :: 1

mjMOUSE_ROTATE_V is 1 — rotate (orbit) vertically.

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 (pan) horizontally.

turn_v()

@spec turn_v() :: 8

mjMOUSE_TURN_V is 8 — turn (tilt) vertically.

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 — zoom (towards/away from lookat point).