mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 10:17:55 -06:00
osx 3dmouse change of rotation directions
This commit is contained in:
parent
1bbee1c5cc
commit
1392609c75
1 changed files with 3 additions and 3 deletions
|
@ -758,9 +758,9 @@ void Mouse3DController::handle_input_axis(const DataPacketAxis& packet)
|
||||||
}
|
}
|
||||||
//rotation
|
//rotation
|
||||||
deadzone = m_state.get_rotation_deadzone();
|
deadzone = m_state.get_rotation_deadzone();
|
||||||
Vec3f rotation(std::abs(packet[3]) > deadzone ? -(float)packet[3] : 0.0,
|
Vec3f rotation(std::abs(packet[3]) > deadzone ? (float)packet[3] : 0.0,
|
||||||
std::abs(packet[4]) > deadzone ? (float)packet[4] : 0.0,
|
std::abs(packet[4]) > deadzone ? (float)packet[4] : 0.0,
|
||||||
std::abs(packet[5]) > deadzone ? -(float)packet[5] : 0.0);
|
std::abs(packet[5]) > deadzone ? (float)packet[5] : 0.0);
|
||||||
if (!rotation.isApprox(Vec3f::Zero()))
|
if (!rotation.isApprox(Vec3f::Zero()))
|
||||||
{
|
{
|
||||||
m_state.append_rotation(rotation);
|
m_state.append_rotation(rotation);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue