added per-device config options
This commit is contained in:
parent
4510764f34
commit
d010ca2049
5 changed files with 168 additions and 34 deletions
|
|
@ -71,7 +71,12 @@ struct SKeyboard {
|
|||
|
||||
bool active = false;
|
||||
|
||||
std::string name = "";
|
||||
|
||||
xkb_rule_names currentRules = {0};
|
||||
int repeatRate = 0;
|
||||
int repeatDelay = 0;
|
||||
int numlockOn = -1;
|
||||
|
||||
// For the list lookup
|
||||
bool operator==(const SKeyboard& rhs) {
|
||||
|
|
@ -87,6 +92,8 @@ struct SMouse {
|
|||
|
||||
pixman_region32_t confinedTo;
|
||||
|
||||
std::string name = "";
|
||||
|
||||
DYNLISTENER(commitConstraint);
|
||||
DYNLISTENER(destroyMouse);
|
||||
|
||||
|
|
@ -168,6 +175,8 @@ struct STablet {
|
|||
wlr_tablet_v2_tablet* wlrTabletV2 = nullptr;
|
||||
wlr_input_device* wlrDevice = nullptr;
|
||||
|
||||
std::string name = "";
|
||||
|
||||
bool operator==(const STablet& b) {
|
||||
return wlrDevice == b.wlrDevice;
|
||||
}
|
||||
|
|
@ -186,6 +195,8 @@ struct STabletTool {
|
|||
|
||||
bool active = true;
|
||||
|
||||
std::string name = "";
|
||||
|
||||
DYNLISTENER(TabletToolDestroy);
|
||||
DYNLISTENER(TabletToolSetCursor);
|
||||
|
||||
|
|
@ -198,6 +209,8 @@ struct STabletPad {
|
|||
wlr_tablet_v2_tablet_pad* wlrTabletPadV2 = nullptr;
|
||||
STablet* pTabletParent = nullptr;
|
||||
|
||||
std::string name = "";
|
||||
|
||||
DYNLISTENER(Attach);
|
||||
DYNLISTENER(Button);
|
||||
DYNLISTENER(Strip);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue