コード例 #1
0
        public static void AddReceiver(InputReceiver receiver)
        {
            // Add the receiver in priority order
            int index = receivers.BinarySearch(receiver, new ByPriority());

            if (index < 0)
            {
                index = ~index;
            }
            receivers.Insert(index, receiver);
        }
コード例 #2
0
 public static void RemoveReceiver(InputReceiver receiver) => receivers.Remove(receiver);