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
@type t() :: integer()
Functions
@spec move_h() :: 4
mjMOUSE_MOVE_H is 4 — move along horizontal plane.
@spec move_h_rel() :: 7
mjMOUSE_MOVE_H_REL is 7 — move (truck, dolly), horizontal plane rel. to target.
@spec move_v() :: 3
mjMOUSE_MOVE_V is 3 — move along vertical plane.
@spec move_v_rel() :: 6
mjMOUSE_MOVE_V_REL is 6 — move (truck, pedestal), vertical plane rel. to target.
@spec none() :: 0
mjMOUSE_NONE is 0 — no action.
@spec rotate_h() :: 2
mjMOUSE_ROTATE_H is 2 — rotate (orbit) horizontally.
@spec rotate_v() :: 1
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.
@spec turn_h() :: 9
mjMOUSE_TURN_H is 9 — turn (pan) horizontally.
@spec turn_v() :: 8
mjMOUSE_TURN_V is 8 — turn (tilt) vertically.
Every value, as {name, integer}, in the order the header lists them.
@spec zoom() :: 5
mjMOUSE_ZOOM is 5 — zoom (towards/away from lookat point).