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
75 /* modules local to Xi */
127 /* Masks for XI events have to be aligned with core event (partially anyway).
377 * ProcIDispatch - main dispatch routine for requests to this extension.
397 * Main swapped dispatch routine for requests to this extension.
424 /* This is common to all replies */
512 SEventDeviceValuator(deviceValuator * from, deviceValuator * to)
517 *to = *from;
518 swaps(&to->sequenceNumber);
519 swaps(&to->device_state);
520 ip = &to->valuator0;
527 SEventFocus(deviceFocus * from, deviceFocus * to)
529 *to = *from;
530 swaps(&to->sequenceNumber);
531 swapl(&to->time);
532 swapl(&to->window);
536 SDeviceStateNotifyEvent(deviceStateNotify * from, deviceStateNotify * to)
541 *to = *from;
542 swaps(&to->sequenceNumber);
543 swapl(&to->time);
544 ip = &to->valuator0;
552 deviceKeyStateNotify * to)
554 *to = *from;
555 swaps(&to->sequenceNumber);
560 deviceButtonStateNotify * to)
562 *to = *from;
563 swaps(&to->sequenceNumber);
567 SChangeDeviceNotifyEvent(changeDeviceNotify * from, changeDeviceNotify * to)
569 *to = *from;
570 swaps(&to->sequenceNumber);
571 swapl(&to->time);
575 SDeviceMappingNotifyEvent(deviceMappingNotify * from, deviceMappingNotify * to)
577 *to = *from;
578 swaps(&to->sequenceNumber);
579 swapl(&to->time);
584 devicePresenceNotify * to)
586 *to = *from;
587 swaps(&to->sequenceNumber);
588 swapl(&to->time);
589 swaps(&to->control);
594 devicePropertyNotify * to)
596 *to = *from;
597 swaps(&to->sequenceNumber);
598 swapl(&to->time);
599 swapl(&to->atom);
603 SDeviceLeaveNotifyEvent(xXILeaveEvent * from, xXILeaveEvent * to)
605 *to = *from;
606 swaps(&to->sequenceNumber);
607 swapl(&to->length);
608 swaps(&to->evtype);
609 swaps(&to->deviceid);
610 swapl(&to->time);
611 swapl(&to->root);
612 swapl(&to->event);
613 swapl(&to->child);
614 swapl(&to->root_x);
615 swapl(&to->root_y);
616 swapl(&to->event_x);
617 swapl(&to->event_y);
618 swaps(&to->sourceid);
619 swaps(&to->buttons_len);
620 swapl(&to->mods.base_mods);
621 swapl(&to->mods.latched_mods);
622 swapl(&to->mods.locked_mods);
626 SDeviceChangedEvent(xXIDeviceChangedEvent * from, xXIDeviceChangedEvent * to)
631 *to = *from;
632 memcpy(&to[1], &from[1], from->length * 4);
634 any = (xXIAnyInfo *) &to[1];
635 for (i = 0; i < to->num_classes; i++) {
682 swaps(&to->sequenceNumber);
683 swapl(&to->length);
684 swaps(&to->evtype);
685 swaps(&to->deviceid);
686 swapl(&to->time);
687 swaps(&to->num_classes);
688 swaps(&to->sourceid);
693 SDeviceEvent(xXIDeviceEvent * from, xXIDeviceEvent * to)
699 memcpy(to, from, sizeof(xEvent) + from->length * 4);
701 swaps(&to->sequenceNumber);
702 swapl(&to->length);
703 swaps(&to->evtype);
704 swaps(&to->deviceid);
705 swapl(&to->time);
706 swapl(&to->detail);
707 swapl(&to->root);
708 swapl(&to->event);
709 swapl(&to->child);
710 swapl(&to->root_x);
711 swapl(&to->root_y);
712 swapl(&to->event_x);
713 swapl(&to->event_y);
714 swaps(&to->buttons_len);
715 swaps(&to->valuators_len);
716 swaps(&to->sourceid);
717 swapl(&to->mods.base_mods);
718 swapl(&to->mods.latched_mods);
719 swapl(&to->mods.locked_mods);
720 swapl(&to->mods.effective_mods);
721 swapl(&to->flags);
723 ptr = (char *) (&to[1]);
738 SDeviceHierarchyEvent(xXIHierarchyEvent * from, xXIHierarchyEvent * to)
743 *to = *from;
744 memcpy(&to[1], &from[1], from->length * 4);
745 swaps(&to->sequenceNumber);
746 swapl(&to->length);
747 swaps(&to->evtype);
748 swaps(&to->deviceid);
749 swapl(&to->time);
750 swapl(&to->flags);
751 swaps(&to->num_info);
753 info = (xXIHierarchyInfo *) &to[1];
762 SXIPropertyEvent(xXIPropertyEvent * from, xXIPropertyEvent * to)
764 *to = *from;
765 swaps(&to->sequenceNumber);
766 swapl(&to->length);
767 swaps(&to->evtype);
768 swaps(&to->deviceid);
769 swapl(&to->property);
773 SRawEvent(xXIRawEvent * from, xXIRawEvent * to)
779 memcpy(to, from, sizeof(xEvent) + from->length * 4);
781 swaps(&to->sequenceNumber);
782 swapl(&to->length);
783 swaps(&to->evtype);
784 swaps(&to->deviceid);
785 swapl(&to->time);
786 swapl(&to->detail);
788 mask = (unsigned char *) &to[1];
807 swaps(&to->valuators_len);
811 STouchOwnershipEvent(xXITouchOwnershipEvent * from, xXITouchOwnershipEvent * to)
813 *to = *from;
814 swaps(&to->sequenceNumber);
815 swapl(&to->length);
816 swaps(&to->evtype);
817 swaps(&to->deviceid);
818 swapl(&to->time);
819 swaps(&to->sourceid);
820 swapl(&to->touchid);
821 swapl(&to->flags);
822 swapl(&to->root);
823 swapl(&to->event);
824 swapl(&to->child);
829 xXIBarrierEvent * to) {
831 *to = *from;
833 swaps(&to->sequenceNumber);
834 swapl(&to->length);
835 swaps(&to->evtype);
836 swapl(&to->time);
837 swaps(&to->deviceid);
838 swaps(&to->sourceid);
839 swapl(&to->event);
840 swapl(&to->root);
841 swapl(&to->root_x);
842 swapl(&to->root_y);
844 swapl(&to->dx.integral);
845 swapl(&to->dx.frac);
846 swapl(&to->dy.integral);
847 swapl(&to->dy.frac);
848 swapl(&to->dtime);
849 swapl(&to->barrier);
850 swapl(&to->eventid);
855 xXIGesturePinchEvent* to)
857 *to = *from;
859 swaps(&to->sequenceNumber);
860 swapl(&to->length);
861 swaps(&to->evtype);
862 swaps(&to->deviceid);
863 swapl(&to->time);
864 swapl(&to->detail);
865 swapl(&to->root);
866 swapl(&to->event);
867 swapl(&to->child);
868 swapl(&to->root_x);
869 swapl(&to->root_y);
870 swapl(&to->event_x);
871 swapl(&to->event_y);
873 swapl(&to->delta_x);
874 swapl(&to->delta_y);
875 swapl(&to->delta_unaccel_x);
876 swapl(&to->delta_unaccel_y);
877 swapl(&to->scale);
878 swapl(&to->delta_angle);
879 swaps(&to->sourceid);
881 swapl(&to->mods.base_mods);
882 swapl(&to->mods.latched_mods);
883 swapl(&to->mods.locked_mods);
884 swapl(&to->mods.effective_mods);
885 swapl(&to->flags);
890 xXIGestureSwipeEvent* to)
892 *to = *from;
894 swaps(&to->sequenceNumber);
895 swapl(&to->length);
896 swaps(&to->evtype);
897 swaps(&to->deviceid);
898 swapl(&to->time);
899 swapl(&to->detail);
900 swapl(&to->root);
901 swapl(&to->event);
902 swapl(&to->child);
903 swapl(&to->root_x);
904 swapl(&to->root_y);
905 swapl(&to->event_x);
906 swapl(&to->event_y);
908 swapl(&to->delta_x);
909 swapl(&to->delta_y);
910 swapl(&to->delta_unaccel_x);
911 swapl(&to->delta_unaccel_y);
912 swaps(&to->sourceid);
914 swapl(&to->mods.base_mods);
915 swapl(&to->mods.latched_mods);
916 swapl(&to->mods.locked_mods);
917 swapl(&to->mods.effective_mods);
918 swapl(&to->flags);
923 XI2EventSwap(xGenericEvent *from, xGenericEvent *to)
930 SDeviceLeaveNotifyEvent((xXILeaveEvent *) from, (xXILeaveEvent *) to);
934 (xXIDeviceChangedEvent *) to);
938 (xXIHierarchyEvent *) to);
941 SXIPropertyEvent((xXIPropertyEvent *) from, (xXIPropertyEvent *) to);
951 SDeviceEvent((xXIDeviceEvent *) from, (xXIDeviceEvent *) to);
955 (xXITouchOwnershipEvent *) to);
965 SRawEvent((xXIRawEvent *) from, (xXIRawEvent *) to);
970 (xXIBarrierEvent *) to);
976 (xXIGesturePinchEvent*) to);
982 (xXIGestureSwipeEvent*) to);
985 ErrorF("[Xi] Unknown event type to swap. This is a bug.\n");
997 * 0-63 in the EventInfo array as the "type" to be used to look up this
999 * DevicePointerMotionHint must have access to the same constants.
1012 * Assign the specified mask to the specified event.
1115 * This function restores extension event types and masks to their
1202 * Assign an id and type to an input device.
1235 #define DO_SWAP(func,type) func ((type *)from, (type *)to)
1238 SEventIDispatch(xEvent *from, xEvent *to)
1245 SKeyButtonPtrEvent(from, to);
1246 to->u.keyButtonPointer.pad1 = from->u.keyButtonPointer.pad1;
1249 SKeyButtonPtrEvent(from, to);
1250 to->u.keyButtonPointer.pad1 = from->u.keyButtonPointer.pad1;
1253 SKeyButtonPtrEvent(from, to);
1254 to->u.keyButtonPointer.pad1 = from->u.keyButtonPointer.pad1;
1257 SKeyButtonPtrEvent(from, to);
1258 to->u.keyButtonPointer.pad1 = from->u.keyButtonPointer.pad1;
1261 SKeyButtonPtrEvent(from, to);
1262 to->u.keyButtonPointer.pad1 = from->u.keyButtonPointer.pad1;
1269 SKeyButtonPtrEvent(from, to);
1270 to->u.keyButtonPointer.pad1 = from->u.keyButtonPointer.pad1;
1273 SKeyButtonPtrEvent(from, to);
1274 to->u.keyButtonPointer.pad1 = from->u.keyButtonPointer.pad1;
1304 * XI is mandatory nowadays, so if we fail to init XI, we die.
1334 FatalError("Failed to add resource type for XI.\n");