summaryrefslogtreecommitdiff
path: root/src/debug/HyprCtl.cpp
diff options
context:
space:
mode:
authorKainoa Kanter <44733677+ThatOneCalculator@users.noreply.github.com>2022-06-09 12:58:07 -0700
committerGitHub <noreply@github.com>2022-06-09 12:58:07 -0700
commit750961e9c10fbef6c6a45ca58fd33f15db730409 (patch)
tree9c57d11f6f157070443d05e0391a052ca2dc1661 /src/debug/HyprCtl.cpp
parentb7e21d0fa9b9b00e769bcf9cca985ee70973ebcc (diff)
parentb5a446ddfd1ecdae27f44b610acb33578d9ec5e3 (diff)
Merge branch 'vaxerski:main' into main
Diffstat (limited to 'src/debug/HyprCtl.cpp')
-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;
}