aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-06-09 19:25:26 +0200
committervaxerski <[email protected]>2022-06-09 19:25:26 +0200
commitb53c093b8846c8029954908a5620e82a91b6090b (patch)
tree441b708040d29a3474b7a78b9eb99c820012f452
parent8929172bc2cbd9e0c931065091d45f2012466d33 (diff)
downloadHyprland-b53c093b8846c8029954908a5620e82a91b6090b.tar.gz
Hyprland-b53c093b8846c8029954908a5620e82a91b6090b.zip
log tablets in hyprctl
-rw-r--r--src/debug/HyprCtl.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp
index 0699921a..83656e13 100644
--- a/src/debug/HyprCtl.cpp
+++ b/src/debug/HyprCtl.cpp
@@ -88,6 +88,20 @@ std::string devicesRequest() {
result += getFormat("\tKeyboard at %x:\n\t\t%s\n", &k, k.keyboard->name);
}
+ result += "\n\nTablets:\n";
+
+ for (auto& d : g_pInputManager->m_lTabletPads) {
+ result += getFormat("\tTablet Pad at %x (belongs to %x -> %s)\n", &d, d.pTabletParent, d.pTabletParent ? d.pTabletParent->wlrDevice ? d.pTabletParent->wlrDevice->name : "" : "");
+ }
+
+ for (auto& d : g_pInputManager->m_lTablets) {
+ result += getFormat("\tTablet at %x:\n\t\t%s\n", &d, d.wlrDevice ? d.wlrDevice->name : "");
+ }
+
+ for (auto& d : g_pInputManager->m_lTabletTools) {
+ result += getFormat("\tTablet Tool at %x (belongs to %x)\n", &d, d.wlrTabletTool ? d.wlrTabletTool->data : 0);
+ }
+
return result;
}