libxkbcomp: Add non-xkbfile XkbActionTypeText
parent
4fe322aa99
commit
6a578de9cb
|
@ -604,3 +604,27 @@ XkbConfigText(unsigned config, unsigned format)
|
||||||
return "unknown";
|
return "unknown";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static char *actionTypeNames[XkbSA_NumActions]= {
|
||||||
|
"NoAction",
|
||||||
|
"SetMods", "LatchMods", "LockMods",
|
||||||
|
"SetGroup", "LatchGroup", "LockGroup",
|
||||||
|
"MovePtr",
|
||||||
|
"PtrBtn", "LockPtrBtn",
|
||||||
|
"SetPtrDflt",
|
||||||
|
"ISOLock",
|
||||||
|
"Terminate", "SwitchScreen",
|
||||||
|
"SetControls", "LockControls",
|
||||||
|
"ActionMessage",
|
||||||
|
"RedirectKey",
|
||||||
|
"DeviceBtn", "LockDeviceBtn"
|
||||||
|
};
|
||||||
|
|
||||||
|
char *
|
||||||
|
XkbActionTypeText(unsigned type, unsigned format)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (type <= XkbSA_LastAction)
|
||||||
|
return actionTypeNames[type];
|
||||||
|
return "Private";
|
||||||
|
}
|
||||||
|
|
|
@ -111,4 +111,7 @@ extern Bool FindKeyNameForAlias(XkbcDescPtr /* xkb */ ,
|
||||||
extern char *
|
extern char *
|
||||||
XkbConfigText(unsigned config, unsigned format);
|
XkbConfigText(unsigned config, unsigned format);
|
||||||
|
|
||||||
|
extern char *
|
||||||
|
XkbActionTypeText(unsigned type, unsigned format);
|
||||||
|
|
||||||
#endif /* MISC_H */
|
#endif /* MISC_H */
|
||||||
|
|
Loading…
Reference in New Issue