Blender V4.3
MouseInput Struct Reference

#include <transform.hh>

Public Attributes

void(* apply )(TransInfo *t, MouseInput *mi, const double mval[2], float output[3])
 
void(* post )(TransInfo *t, float values[3])
 
blender::float2 imval
 
blender::float2 center
 
float factor
 
float precision_factor
 
bool precision
 
void * data
 
bool use_virtual_mval
 
struct { 
 
   double   prev [2] 
 
   double   accum [2] 
 
virtual_mval 
 

Detailed Description

Definition at line 378 of file transform.hh.

Member Data Documentation

◆ accum

double MouseInput::accum[2]

Definition at line 403 of file transform.hh.

Referenced by applyMouseInput(), and transform_input_update().

◆ apply

◆ center

◆ data

void* MouseInput::data

◆ factor

◆ imval

◆ post

void(* MouseInput::post) (TransInfo *t, float values[3])

◆ precision

bool MouseInput::precision

◆ precision_factor

float MouseInput::precision_factor

Definition at line 386 of file transform.hh.

Referenced by applyMouseInput(), initMouseInputMode(), and InputAngle().

◆ prev

double MouseInput::prev[2]

Definition at line 402 of file transform.hh.

Referenced by applyMouseInput(), and transform_input_update().

◆ use_virtual_mval

bool MouseInput::use_virtual_mval

Use virtual cursor, which takes precision into account keeping track of the cursors 'virtual' location, to avoid jumping values when its toggled.

This works well for scaling drag motion, but not for rotating around a point (rotation needs its own custom accumulator)

Definition at line 400 of file transform.hh.

Referenced by applyMouseInput(), initMouseInputMode(), snapsource_end(), transform_input_update(), and transform_mode_snap_source_init().

◆ [struct]

struct { ... } MouseInput::virtual_mval

The documentation for this struct was generated from the following file: