Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ RegisterEvents()

void ReLogic.Peripherals.RGB.SteelSeries.GameSenseConnection.RegisterEvents ( Bind_Event[] theEvents)
inlineprivate

Definition at line 104 of file GameSenseConnection.cs.

105 {
106 //IL_001b: Unknown result type (might be due to invalid IL or missing references)
107 //IL_0021: Expected O, but got Unknown
108 //IL_003b: Unknown result type (might be due to invalid IL or missing references)
109 //IL_0040: Unknown result type (might be due to invalid IL or missing references)
110 //IL_004a: Expected O, but got Unknown
111 //IL_0058: Unknown result type (might be due to invalid IL or missing references)
112 //IL_005e: Expected O, but got Unknown
113 foreach (Bind_Event bind_Event in theEvents)
114 {
115 QueueMsg queueMsg;
116 if (bind_Event.handlers == null || bind_Event.handlers.Length == 0)
117 {
118 queueMsg = (QueueMsg)new QueueMsgRegisterEvent();
119 queueMsg.data = (object)new Register_Event(GameName, bind_Event.eventName, bind_Event.minValue, bind_Event.maxValue, bind_Event.iconId);
120 }
121 else
122 {
123 bind_Event.game = GameName;
124 queueMsg = (QueueMsg)new QueueMsgBindEvent();
125 queueMsg.data = bind_Event;
126 }
127 _mMsgQueue.PEnqueue(queueMsg);
128 }
129 }

References ReLogic.Peripherals.RGB.SteelSeries.GameSenseConnection._mMsgQueue, and ReLogic.Peripherals.RGB.SteelSeries.GameSenseConnection.GameName.

Referenced by ReLogic.Peripherals.RGB.SteelSeries.GameSenseConnection._addGUIDefinedEvents(), and ReLogic.Peripherals.RGB.SteelSeries.GameSenseConnection.TryRegisteringEvents().