Lines Matching refs:to

5 Permission to use, copy, modify, distribute, and sell this software and its
22 used in advertising or otherwise to promote the sale, use or other dealings
29 Permission to use, copy, modify, and distribute this software and its
34 used in advertising or publicity pertaining to distribution of the
77 /* modules local to Xi */
131 /* Masks for XI events have to be aligned with core event (partially anyway).
405 * ProcIDispatch - main dispatch routine for requests to this extension.
424 * Main swapped dispatch routine for requests to this extension.
449 { /* This is common to all replies */
536 SEventDeviceValuator(deviceValuator * from, deviceValuator * to)
542 *to = *from;
543 swaps(&to->sequenceNumber, n);
544 swaps(&to->device_state, n);
545 ip = &to->valuator0;
552 SEventFocus(deviceFocus * from, deviceFocus * to)
556 *to = *from;
557 swaps(&to->sequenceNumber, n);
558 swapl(&to->time, n);
559 swapl(&to->window, n);
563 SDeviceStateNotifyEvent(deviceStateNotify * from, deviceStateNotify * to)
569 *to = *from;
570 swaps(&to->sequenceNumber, n);
571 swapl(&to->time, n);
572 ip = &to->valuator0;
580 deviceKeyStateNotify * to)
584 *to = *from;
585 swaps(&to->sequenceNumber, n);
590 deviceButtonStateNotify * to)
594 *to = *from;
595 swaps(&to->sequenceNumber, n);
599 SChangeDeviceNotifyEvent(changeDeviceNotify * from, changeDeviceNotify * to)
603 *to = *from;
604 swaps(&to->sequenceNumber, n);
605 swapl(&to->time, n);
609 SDeviceMappingNotifyEvent(deviceMappingNotify * from, deviceMappingNotify * to)
613 *to = *from;
614 swaps(&to->sequenceNumber, n);
615 swapl(&to->time, n);
619 SDevicePresenceNotifyEvent (devicePresenceNotify *from, devicePresenceNotify *to)
623 *to = *from;
624 swaps(&to->sequenceNumber,n);
625 swapl(&to->time, n);
626 swaps(&to->control, n);
630 SDevicePropertyNotifyEvent (devicePropertyNotify *from, devicePropertyNotify *to)
634 *to = *from;
635 swaps(&to->sequenceNumber,n);
636 swapl(&to->time, n);
637 swapl(&to->atom, n);
641 SDeviceLeaveNotifyEvent (xXILeaveEvent *from, xXILeaveEvent *to)
645 *to = *from;
646 swaps(&to->sequenceNumber,n);
647 swapl(&to->length, n);
648 swaps(&to->evtype, n);
649 swaps(&to->deviceid, n);
650 swapl(&to->time, n);
651 swapl(&to->root, n);
652 swapl(&to->event, n);
653 swapl(&to->child, n);
654 swapl(&to->root_x, n);
655 swapl(&to->root_y, n);
656 swapl(&to->event_x, n);
657 swapl(&to->event_y, n);
658 swaps(&to->sourceid, n);
659 swaps(&to->buttons_len, n);
660 swapl(&to->mods.base_mods, n);
661 swapl(&to->mods.latched_mods, n);
662 swapl(&to->mods.locked_mods, n);
666 SDeviceChangedEvent(xXIDeviceChangedEvent* from, xXIDeviceChangedEvent* to)
672 *to = *from;
673 memcpy(&to[1], &from[1], from->length * 4);
675 any = (xXIAnyInfo*)&to[1];
676 for (i = 0; i < to->num_classes; i++)
722 swaps(&to->sequenceNumber, n);
723 swapl(&to->length, n);
724 swaps(&to->evtype, n);
725 swaps(&to->deviceid, n);
726 swapl(&to->time, n);
727 swaps(&to->num_classes, n);
728 swaps(&to->sourceid, n);
732 static void SDeviceEvent(xXIDeviceEvent *from, xXIDeviceEvent *to)
739 memcpy(to, from, sizeof(xEvent) + from->length * 4);
741 swaps(&to->sequenceNumber, n);
742 swapl(&to->length, n);
743 swaps(&to->evtype, n);
744 swaps(&to->deviceid, n);
745 swapl(&to->time, n);
746 swapl(&to->detail, n);
747 swapl(&to->root, n);
748 swapl(&to->event, n);
749 swapl(&to->child, n);
750 swapl(&to->root_x, n);
751 swapl(&to->root_y, n);
752 swapl(&to->event_x, n);
753 swapl(&to->event_y, n);
754 swaps(&to->buttons_len, n);
755 swaps(&to->valuators_len, n);
756 swaps(&to->sourceid, n);
757 swapl(&to->mods.base_mods, n);
758 swapl(&to->mods.latched_mods, n);
759 swapl(&to->mods.locked_mods, n);
760 swapl(&to->mods.effective_mods, n);
761 swapl(&to->flags, n);
763 ptr = (char*)(&to[1]);
780 xXIHierarchyEvent *to)
786 *to = *from;
787 memcpy(&to[1], &from[1], from->length * 4);
788 swaps(&to->sequenceNumber, n);
789 swapl(&to->length, n);
790 swaps(&to->evtype, n);
791 swaps(&to->deviceid, n);
792 swapl(&to->time, n);
793 swapl(&to->flags, n);
794 swaps(&to->num_info, n);
796 info = (xXIHierarchyInfo*)&to[1];
805 static void SXIPropertyEvent(xXIPropertyEvent *from, xXIPropertyEvent *to)
809 *to = *from;
810 swaps(&to->sequenceNumber, n);
811 swapl(&to->length, n);
812 swaps(&to->evtype, n);
813 swaps(&to->deviceid, n);
814 swapl(&to->property, n);
817 static void SRawEvent(xXIRawEvent *from, xXIRawEvent *to)
824 memcpy(to, from, sizeof(xEvent) + from->length * 4);
826 swaps(&to->sequenceNumber, n);
827 swapl(&to->length, n);
828 swaps(&to->evtype, n);
829 swaps(&to->deviceid, n);
830 swapl(&to->time, n);
831 swapl(&to->detail, n);
834 mask = (unsigned char*)&to[1];
855 swaps(&to->valuators_len, n);
861 XI2EventSwap(xGenericEvent *from, xGenericEvent *to)
869 SDeviceLeaveNotifyEvent((xXILeaveEvent*)from, (xXILeaveEvent*)to);
873 (xXIDeviceChangedEvent*)to);
876 SDeviceHierarchyEvent((xXIHierarchyEvent*)from, (xXIHierarchyEvent*)to);
880 (xXIPropertyEvent*)to);
887 SDeviceEvent((xXIDeviceEvent*)from, (xXIDeviceEvent*)to);
894 SRawEvent((xXIRawEvent*)from, (xXIRawEvent*)to);
897 ErrorF("[Xi] Unknown event type to swap. This is a bug.\n");
904 * Allow the specified event to have its propagation suppressed.
905 * The default is to not allow suppression of propagation.
925 * 0-63 in the EventInfo array as the "type" to be used to look up this
927 * DevicePointerMotionHint must have access to the same constants.
940 * Allow the specified event to be restricted to being selected by one
942 * The default is to allow more than one client to select the event.
957 * Assign the specified mask to the specified event.
1067 * This function restores extension event types and masks to their
1151 * Assign an id and type to an input device.
1184 #define DO_SWAP(func,type) func ((type *)from, (type *)to)
1187 SEventIDispatch(xEvent * from, xEvent * to)
1194 SKeyButtonPtrEvent(from, to);
1195 to->u.keyButtonPointer.pad1 = from->u.keyButtonPointer.pad1;
1197 SKeyButtonPtrEvent(from, to);
1198 to->u.keyButtonPointer.pad1 = from->u.keyButtonPointer.pad1;
1200 SKeyButtonPtrEvent(from, to);
1201 to->u.keyButtonPointer.pad1 = from->u.keyButtonPointer.pad1;
1203 SKeyButtonPtrEvent(from, to);
1204 to->u.keyButtonPointer.pad1 = from->u.keyButtonPointer.pad1;
1206 SKeyButtonPtrEvent(from, to);
1207 to->u.keyButtonPointer.pad1 = from->u.keyButtonPointer.pad1;
1213 SKeyButtonPtrEvent(from, to);
1214 to->u.keyButtonPointer.pad1 = from->u.keyButtonPointer.pad1;
1216 SKeyButtonPtrEvent(from, to);
1217 to->u.keyButtonPointer.pad1 = from->u.keyButtonPointer.pad1;
1246 * XI is mandatory nowadays, so if we fail to init XI, we die.
1262 FatalError("Failed to add callback to XI.\n");
1274 FatalError("Failed to add resource type for XI.\n");