Lines Matching refs:act
759 XkbModAction *act;
762 act = &action->mods;
763 tmp = XkbModActionVMods(act);
765 if (act->flags & XkbSA_UseModMapMods)
767 else if (act->real_mods || tmp) {
769 XkbVModMaskText(xkb, act->real_mods, tmp, XkbXKBFile), sz);
773 if (act->type == XkbSA_LockMods)
775 if (act->flags & XkbSA_ClearLocks)
777 if (act->flags & XkbSA_LatchToLock)
785 XkbGroupAction *act;
788 act = &action->group;
790 if (act->flags & XkbSA_GroupAbsolute)
791 snprintf(tbuf, sizeof(tbuf), "%d", XkbSAGroup(act) + 1);
792 else if (XkbSAGroup(act) < 0)
793 snprintf(tbuf, sizeof(tbuf), "%d", XkbSAGroup(act));
795 snprintf(tbuf, sizeof(tbuf), "+%d", XkbSAGroup(act));
797 if (act->type == XkbSA_LockGroup)
799 if (act->flags & XkbSA_ClearLocks)
801 if (act->flags & XkbSA_LatchToLock)
809 XkbPtrAction *act;
813 act = &action->ptr;
814 x = XkbPtrActionX(act);
815 y = XkbPtrActionY(act);
816 if ((act->flags & XkbSA_MoveAbsoluteX) || (x < 0))
822 if ((act->flags & XkbSA_MoveAbsoluteY) || (y < 0))
827 if (act->flags & XkbSA_NoAcceleration)
835 XkbPtrBtnAction *act;
838 act = &action->btn;
840 if ((act->button > 0) && (act->button < 6)) {
841 snprintf(tbuf, sizeof(tbuf), "%d", act->button);
846 if (act->count > 0) {
847 snprintf(tbuf, sizeof(tbuf), ",count=%d", act->count);
851 switch (act->flags & (XkbSA_LockNoUnlock | XkbSA_LockNoLock)) {
872 XkbPtrDfltAction *act;
875 act = &action->dflt;
876 if (act->affect == XkbSA_AffectDfltBtn) {
878 if ((act->flags & XkbSA_DfltBtnAbsolute) ||
879 (XkbSAPtrDfltValue(act) < 0))
880 snprintf(tbuf, sizeof(tbuf), "%d", XkbSAPtrDfltValue(act));
882 snprintf(tbuf, sizeof(tbuf), "+%d", XkbSAPtrDfltValue(act));
891 XkbISOAction *act;
895 act = &action->iso;
896 if (act->flags & XkbSA_ISODfltIsGroup) {
898 if (act->flags & XkbSA_GroupAbsolute)
899 snprintf(tbuf, sizeof(tbuf), "%d", XkbSAGroup(act) + 1);
900 else if (XkbSAGroup(act) < 0)
901 snprintf(tbuf, sizeof(tbuf), "%d", XkbSAGroup(act));
903 snprintf(tbuf, sizeof(tbuf), "+%d", XkbSAGroup(act));
909 tmp = XkbModActionVMods(act);
911 if (act->flags & XkbSA_UseModMapMods)
913 else if (act->real_mods || tmp) {
914 if (act->real_mods) {
915 TryCopyStr(buf, XkbModMaskText(act->real_mods, XkbXKBFile), sz);
926 if ((act->affect & XkbSA_ISOAffectMask) == 0)
931 if ((act->affect & XkbSA_ISONoAffectMods) == 0) {
935 if ((act->affect & XkbSA_ISONoAffectGroup) == 0) {
940 if ((act->affect & XkbSA_ISONoAffectPtr) == 0) {
945 if ((act->affect & XkbSA_ISONoAffectCtrls) == 0) {
957 XkbSwitchScreenAction *act;
960 act = &action->screen;
961 if ((act->flags & XkbSA_SwitchAbsolute) || (XkbSAScreen(act) < 0))
962 snprintf(tbuf, sizeof(tbuf), "screen=%d", XkbSAScreen(act));
964 snprintf(tbuf, sizeof(tbuf), "screen=+%d", XkbSAScreen(act));
966 if (act->flags & XkbSA_SwitchApplication)
976 XkbCtrlsAction *act;
980 act = &action->ctrls;
981 tmp = XkbActionCtrls(act);
1068 XkbMessageAction *act;
1072 act = &action->msg;
1075 if ((act->flags & all) == 0)
1077 else if ((act->flags & all) == all)
1079 else if (act->flags & XkbSA_MessageOnPress)
1083 snprintf(tbuf, sizeof(tbuf), ",data[0]=0x%02x", act->message[0]);
1085 snprintf(tbuf, sizeof(tbuf), ",data[1]=0x%02x", act->message[1]);
1087 snprintf(tbuf, sizeof(tbuf), ",data[2]=0x%02x", act->message[2]);
1089 snprintf(tbuf, sizeof(tbuf), ",data[3]=0x%02x", act->message[3]);
1091 snprintf(tbuf, sizeof(tbuf), ",data[4]=0x%02x", act->message[4]);
1093 snprintf(tbuf, sizeof(tbuf), ",data[5]=0x%02x", act->message[5]);
1101 XkbRedirectKeyAction *act;
1106 act = &action->redirect;
1107 kc = act->new_key;
1108 vmods = XkbSARedirectVMods(act);
1109 vmods_mask = XkbSARedirectVModsMask(act);
1120 if ((act->mods_mask == 0) && (vmods_mask == 0))
1122 if ((act->mods_mask == XkbAllModifiersMask) &&
1124 tmp = XkbVModMaskText(xkb, act->mods, vmods, XkbXKBFile);
1129 if ((act->mods_mask & act->mods) || (vmods_mask & vmods)) {
1130 tmp = XkbVModMaskText(xkb, act->mods_mask & act->mods,
1135 if ((act->mods_mask & (~act->mods)) || (vmods_mask & (~vmods))) {
1136 tmp = XkbVModMaskText(xkb, act->mods_mask & (~act->mods),
1148 XkbDeviceBtnAction *act;
1151 act = &action->devbtn;
1152 snprintf(tbuf, sizeof(tbuf), "device= %d", act->device);
1155 snprintf(tbuf, sizeof(tbuf), "%d", act->button);
1157 if (act->count > 0) {
1158 snprintf(tbuf, sizeof(tbuf), ",count=%d", act->count);
1162 switch (act->flags & (XkbSA_LockNoUnlock | XkbSA_LockNoLock)) {
1183 XkbAnyAction *act;
1186 act = &action->any;
1187 snprintf(tbuf, sizeof(tbuf), "type=0x%02x", act->type);
1189 snprintf(tbuf, sizeof(tbuf), ",data[0]=0x%02x", act->data[0]);
1191 snprintf(tbuf, sizeof(tbuf), ",data[1]=0x%02x", act->data[1]);
1193 snprintf(tbuf, sizeof(tbuf), ",data[2]=0x%02x", act->data[2]);
1195 snprintf(tbuf, sizeof(tbuf), ",data[3]=0x%02x", act->data[3]);
1197 snprintf(tbuf, sizeof(tbuf), ",data[4]=0x%02x", act->data[4]);
1199 snprintf(tbuf, sizeof(tbuf), ",data[5]=0x%02x", act->data[5]);
1201 snprintf(tbuf, sizeof(tbuf), ",data[6]=0x%02x", act->data[6]);