Lines Matching refs:act

682 XkbModAction *	act;
685 act= &action->mods;
686 tmp= XkbModActionVMods(act);
688 if (act->flags&XkbSA_UseModMapMods)
690 else if (act->real_mods || tmp) {
692 XkbVModMaskText(xkb,act->real_mods,tmp,XkbXKBFile),
696 if (act->type==XkbSA_LockMods)
698 if (act->flags&XkbSA_ClearLocks)
700 if (act->flags&XkbSA_LatchToLock)
710 XkbGroupAction * act;
713 act= &action->group;
715 if (act->flags&XkbSA_GroupAbsolute)
716 sprintf(tbuf,"%d",XkbSAGroup(act)+1);
717 else if (XkbSAGroup(act)<0)
718 sprintf(tbuf,"%d",XkbSAGroup(act));
719 else sprintf(tbuf,"+%d",XkbSAGroup(act));
721 if (act->type==XkbSA_LockGroup)
723 if (act->flags&XkbSA_ClearLocks)
725 if (act->flags&XkbSA_LatchToLock)
734 XkbPtrAction * act;
738 act= &action->ptr;
739 x= XkbPtrActionX(act);
740 y= XkbPtrActionY(act);
741 if ((act->flags&XkbSA_MoveAbsoluteX)||(x<0))
746 if ((act->flags&XkbSA_MoveAbsoluteY)||(y<0))
750 if (act->flags&XkbSA_NoAcceleration)
759 XkbPtrBtnAction * act;
762 act= &action->btn;
764 if ((act->button>0)&&(act->button<6)) {
765 sprintf(tbuf,"%d",act->button);
769 if (act->count>0) {
770 sprintf(tbuf,",count=%d",act->count);
774 switch (act->flags&(XkbSA_LockNoUnlock|XkbSA_LockNoLock)) {
794 XkbPtrDfltAction * act;
797 act= &action->dflt;
798 if (act->affect==XkbSA_AffectDfltBtn) {
800 if ((act->flags&XkbSA_DfltBtnAbsolute)||(XkbSAPtrDfltValue(act)<0))
801 sprintf(tbuf,"%d",XkbSAPtrDfltValue(act));
802 else sprintf(tbuf,"+%d",XkbSAPtrDfltValue(act));
811 XkbISOAction * act;
814 act= &action->iso;
815 if (act->flags&XkbSA_ISODfltIsGroup) {
817 if (act->flags&XkbSA_GroupAbsolute)
818 sprintf(tbuf,"%d",XkbSAGroup(act)+1);
819 else if (XkbSAGroup(act)<0)
820 sprintf(tbuf,"%d",XkbSAGroup(act));
821 else sprintf(tbuf,"+%d",XkbSAGroup(act));
826 tmp= XkbModActionVMods(act);
828 if (act->flags&XkbSA_UseModMapMods)
830 else if (act->real_mods || tmp) {
831 if (act->real_mods) {
832 TryCopyStr(buf,XkbModMaskText(act->real_mods,XkbXKBFile),sz);
842 if ((act->affect&XkbSA_ISOAffectMask)==0)
846 if ((act->affect&XkbSA_ISONoAffectMods)==0) {
850 if ((act->affect&XkbSA_ISONoAffectGroup)==0) {
855 if ((act->affect&XkbSA_ISONoAffectPtr)==0) {
860 if ((act->affect&XkbSA_ISONoAffectCtrls)==0) {
874 XkbSwitchScreenAction * act;
877 act= &action->screen;
878 if ((act->flags&XkbSA_SwitchAbsolute)||(XkbSAScreen(act)<0))
879 sprintf(tbuf,"screen=%d",XkbSAScreen(act));
880 else sprintf(tbuf,"screen=+%d",XkbSAScreen(act));
882 if (act->flags&XkbSA_SwitchApplication)
893 XkbCtrlsAction * act;
897 act= &action->ctrls;
898 tmp= XkbActionCtrls(act);
980 XkbMessageAction * act;
984 act= &action->msg;
987 if ((act->flags&all)==0)
989 else if ((act->flags&all)==all)
991 else if (act->flags&XkbSA_MessageOnPress)
994 sprintf(tbuf,",data[0]=0x%02x",act->message[0]); TryCopyStr(buf,tbuf,sz);
995 sprintf(tbuf,",data[1]=0x%02x",act->message[1]); TryCopyStr(buf,tbuf,sz);
996 sprintf(tbuf,",data[2]=0x%02x",act->message[2]); TryCopyStr(buf,tbuf,sz);
997 sprintf(tbuf,",data[3]=0x%02x",act->message[3]); TryCopyStr(buf,tbuf,sz);
998 sprintf(tbuf,",data[4]=0x%02x",act->message[4]); TryCopyStr(buf,tbuf,sz);
999 sprintf(tbuf,",data[5]=0x%02x",act->message[5]); TryCopyStr(buf,tbuf,sz);
1007 XkbRedirectKeyAction * act;
1012 act= &action->redirect;
1013 kc= act->new_key;
1014 vmods= XkbSARedirectVMods(act);
1015 vmods_mask= XkbSARedirectVModsMask(act);
1024 if ((act->mods_mask==0)&&(vmods_mask==0))
1026 if ((act->mods_mask==XkbAllModifiersMask)&&
1028 tmp= XkbVModMaskText(xkb,act->mods,vmods,XkbXKBFile);
1033 if ((act->mods_mask&act->mods)||(vmods_mask&vmods)) {
1034 tmp= XkbVModMaskText(xkb,act->mods_mask&act->mods,
1039 if ((act->mods_mask&(~act->mods))||(vmods_mask&(~vmods))) {
1040 tmp= XkbVModMaskText(xkb,act->mods_mask&(~act->mods),
1054 XkbDeviceBtnAction * act;
1057 act= &action->devbtn;
1058 sprintf(tbuf,"device= %d",act->device); TryCopyStr(buf,tbuf,sz);
1060 sprintf(tbuf,"%d",act->button);
1062 if (act->count>0) {
1063 sprintf(tbuf,",count=%d",act->count);
1067 switch (act->flags&(XkbSA_LockNoUnlock|XkbSA_LockNoLock)) {
1086 XkbAnyAction * act;
1089 act= &action->any;
1090 sprintf(tbuf,"type=0x%02x",act->type); TryCopyStr(buf,tbuf,sz);
1091 sprintf(tbuf,",data[0]=0x%02x",act->data[0]); TryCopyStr(buf,tbuf,sz);
1092 sprintf(tbuf,",data[1]=0x%02x",act->data[1]); TryCopyStr(buf,tbuf,sz);
1093 sprintf(tbuf,",data[2]=0x%02x",act->data[2]); TryCopyStr(buf,tbuf,sz);
1094 sprintf(tbuf,",data[3]=0x%02x",act->data[3]); TryCopyStr(buf,tbuf,sz);
1095 sprintf(tbuf,",data[4]=0x%02x",act->data[4]); TryCopyStr(buf,tbuf,sz);
1096 sprintf(tbuf,",data[5]=0x%02x",act->data[5]); TryCopyStr(buf,tbuf,sz);
1097 sprintf(tbuf,",data[6]=0x%02x",act->data[6]); TryCopyStr(buf,tbuf,sz);