Add switch device handling and binds

This commit is contained in:
vaxerski
2022-10-04 20:07:21 +01:00
parent 9bbae5b8e2
commit 0d702b556d
8 changed files with 84 additions and 8 deletions

View File

@@ -332,3 +332,14 @@ struct STouchDevice {
return pWlrDevice == other.pWlrDevice;
}
};
struct SSwitchDevice {
wlr_input_device* pWlrDevice = nullptr;
DYNLISTENER(destroy);
DYNLISTENER(toggle);
bool operator==(const SSwitchDevice& other) {
return pWlrDevice == other.pWlrDevice;
}
};