From 94223d4afec000e017fbcc88e174dcdd761ba5ab Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 14 Jul 2022 16:00:02 +0200 Subject: [PATCH] Gui: [skip ci] print debug information in GuiNativeEvent::tdx_drv_handler --- src/Gui/3Dconnexion/GuiNativeEventMac.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Gui/3Dconnexion/GuiNativeEventMac.cpp b/src/Gui/3Dconnexion/GuiNativeEventMac.cpp index ec2a0f79c8..5f8d0ed4b9 100644 --- a/src/Gui/3Dconnexion/GuiNativeEventMac.cpp +++ b/src/Gui/3Dconnexion/GuiNativeEventMac.cpp @@ -56,6 +56,11 @@ Gui::GuiNativeEvent::tdx_drv_handler(io_connect_t connection, natural_t messageType, void *messageArgument) { + static bool firstTime = true; + if (firstTime) { + firstTime = false; + Base::Console().Log("Call connexion handler\n"); + } Q_UNUSED(connection) //printf("tdx_drv_handler\n"); //printf("connection: %X\n", connection); @@ -70,6 +75,8 @@ Gui::GuiNativeEvent::tdx_drv_handler(io_connect_t connection, * assigned id when the connection to the driver was established. */ //printf("msg->client: %d, tdxClientID: %d\n", msg->client, tdxClientID); + Base::Console().Log("msg->client: %d, msg->command: %d\n", msg->client, msg->command); + if (msg->client == tdxClientID) { switch (msg->command) { case kConnexionCmdHandleAxis: