Analog joystick jogging control (#14648)
This commit is contained in:
@ -263,13 +263,9 @@ public:
|
||||
|
||||
static inline void set_input_linear_units(const LinearUnit units) {
|
||||
switch (units) {
|
||||
case LINEARUNIT_INCH:
|
||||
linear_unit_factor = 25.4f;
|
||||
break;
|
||||
case LINEARUNIT_MM:
|
||||
default:
|
||||
linear_unit_factor = 1;
|
||||
break;
|
||||
case LINEARUNIT_MM: linear_unit_factor = 1.0f; break;
|
||||
case LINEARUNIT_INCH: linear_unit_factor = 25.4f; break;
|
||||
}
|
||||
volumetric_unit_factor = POW(linear_unit_factor, 3);
|
||||
}
|
||||
|
Reference in New Issue
Block a user