Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2020-03-04 14:48:04 +0300
committerbubnikv <bubnikv@gmail.com>2020-03-04 14:48:04 +0300
commitab7109568a42b9172d5a947e71e362d755329389 (patch)
tree14d8d2d44543e06174f4281572f19347ca8cc33c /src/slic3r/GUI/Mouse3DHandlerMac.mm
parentcbe9216d79b9042fc70cbb5b8282a78e4c43cb00 (diff)
WIP: Fixed some compilation issues on OSX, fixed some "override" vs. "virtual"
warnings.
Diffstat (limited to 'src/slic3r/GUI/Mouse3DHandlerMac.mm')
-rw-r--r--src/slic3r/GUI/Mouse3DHandlerMac.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slic3r/GUI/Mouse3DHandlerMac.mm b/src/slic3r/GUI/Mouse3DHandlerMac.mm
index 129a097e2..d40948cd1 100644
--- a/src/slic3r/GUI/Mouse3DHandlerMac.mm
+++ b/src/slic3r/GUI/Mouse3DHandlerMac.mm
@@ -126,7 +126,7 @@ static bool load_driver_functions()
BOOST_LOG_TRIVIAL(error) << "3dx drivers module loading error: "<< dlerror() ;
}
- BOOST_LOG_TRIVIAL(info) << "3dx drivers loaded: "<< driver_loaded ? (has_new_driver ? "YES, new" : "YES, old") : "NO" ;
+ BOOST_LOG_TRIVIAL(info) << "3dx drivers loaded: " << (driver_loaded ? (has_new_driver ? "YES, new" : "YES, old") : "NO");
return driver_loaded;
}
@@ -164,7 +164,7 @@ static void DeviceEvent(uint32_t unused, uint32_t msg_type, void *msg_arg)
case kConnexionCmdHandleAxis: {
// The axis field is an array of 6 signed 16-bit integers corresponding to the 6 device axes. Data is ordered as Tx, Tz, Ty, Rx, Rz, Ry. The values reported are scaled by the driver according to the speed slider settings on the 3Dconnexion preference panel. At maximum speed, the range is - 1024 to 1024. Typical range that you should optimize your application for should be -500 to 500.
// Actually we are getting values way over 1024. Max is probably 2048 now.
- Mouse3DController::DataPacketAxis packet;
+ Slic3r::GUI::Mouse3DController::DataPacketAxis packet;
for (int i = 0; i < 6; ++ i)
packet[i] = (double)s->axis[i]/350.0;//wanted to divide by 500 but 350 is used at raw input so i used same value.
mouse_3d_controller->handle_input(packet);