-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathOculusTouchEventTrigger.cs
605 lines (467 loc) · 25.1 KB
/
OculusTouchEventTrigger.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.EventSystems;
using UnityEngine.Serialization;
namespace Tengio {
[AddComponentMenu("Event/Oculus Touch Event Trigger")]
public class OculusTouchEventTrigger : MonoBehaviour,
IPointerEnterHandler,
IPointerExitHandler,
ILeftIndexTriggerHandler,
ILeftIndexTriggerDownHandler,
ILeftIndexTriggerUpHandler,
IRightIndexTriggerHandler,
IRightIndexTriggerDownHandler,
IRightIndexTriggerUpHandler,
ILeftHandTriggerHandler,
ILeftHandTriggerDownHandler,
ILeftHandTriggerUpHandler,
IRightHandTriggerHandler,
IRightHandTriggerDownHandler,
IRightHandTriggerUpHandler,
IAButtonHandler,
IAButtonDownHandler,
IAButtonUpHandler,
IXButtonHandler,
IXButtonDownHandler,
IXButtonUpHandler,
IBButtonHandler,
IBButtonDownHandler,
IBButtonUpHandler,
IYButtonHandler,
IYButtonDownHandler,
IYButtonUpHandler,
ILeftPointerEnterHandler,
ILeftPointerExitHandler,
IRightPointerEnterHandler,
IRightPointerExitHandler {
[Serializable]
public class TriggerEvent : UnityEvent<BaseEventData> { }
[Serializable]
public class Entry {
public OculusTouchEventTriggerType eventID = OculusTouchEventTriggerType.PointerEnter;
public TriggerEvent callback = new TriggerEvent();
}
[FormerlySerializedAs("delegates")]
[SerializeField]
private List<Entry> m_Delegates;
//protected EventTrigger() { }
public List<Entry> triggers {
get {
if (m_Delegates == null)
m_Delegates = new List<Entry>();
return m_Delegates;
}
set { m_Delegates = value; }
}
private void Execute(OculusTouchEventTriggerType id, BaseEventData eventData) {
for (int i = 0, imax = triggers.Count; i < imax; ++i) {
var ent = triggers[i];
if (ent.eventID == id && ent.callback != null)
ent.callback.Invoke(eventData);
}
}
#region Events Functions
public virtual void OnPointerEnter(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.PointerEnter, eventData);
}
public virtual void OnPointerExit(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.PointerExit, eventData);
}
public virtual void OnLeftPointerEnter(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.LeftPointerEnter, eventData);
}
public virtual void OnLeftPointerExit(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.LeftPointerExit, eventData);
}
public virtual void OnRightPointerEnter(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.RightPointerEnter, eventData);
}
public virtual void OnRightPointerExit(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.RightPointerExit, eventData);
}
public virtual void OnLeftIndexTrigger(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.LeftIndexTrigger, eventData);
}
public virtual void OnLeftIndexTriggerDown(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.LeftIndexTriggerDown, eventData);
}
public virtual void OnLeftIndexTriggerUp(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.LeftIndexTriggerUp, eventData);
}
public virtual void OnRightIndexTrigger(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.RightIndexTrigger, eventData);
}
public virtual void OnRightIndexTriggerDown(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.RightIndexTriggerDown, eventData);
}
public virtual void OnRightIndexTriggerUp(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.RightIndexTriggerUp, eventData);
}
public virtual void OnLeftHandTrigger(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.LeftHandTrigger, eventData);
}
public virtual void OnLeftHandTriggerDown(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.LeftHandTriggerDown, eventData);
}
public virtual void OnLeftHandTriggerUp(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.LeftHandTriggerUp, eventData);
}
public virtual void OnRightHandTrigger(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.RightHandTrigger, eventData);
}
public virtual void OnRightHandTriggerDown(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.RightHandTriggerDown, eventData);
}
public virtual void OnRightHandTriggerUp(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.RightHandTriggerUp, eventData);
}
public virtual void OnAButton(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.AButton, eventData);
}
public virtual void OnAButtonDown(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.AButtonDown, eventData);
}
public virtual void OnAButtonUp(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.AButtonUp, eventData);
}
public virtual void OnXButton(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.XButton, eventData);
}
public virtual void OnXButtonDown(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.XButtonDown, eventData);
}
public virtual void OnXButtonUp(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.XButtonUp, eventData);
}
public virtual void OnBButton(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.BButton, eventData);
}
public virtual void OnBButtonDown(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.BButtonDown, eventData);
}
public virtual void OnBButtonUp(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.BButtonUp, eventData);
}
public virtual void OnYButton(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.YButton, eventData);
}
public virtual void OnYButtonDown(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.YButtonDown, eventData);
}
public virtual void OnYButtonUp(BaseEventData eventData) {
Execute(OculusTouchEventTriggerType.YButtonUp, eventData);
}
#endregion
}
public static class OculusTouchEvent {
#region Execution Handlers
private static readonly ExecuteEvents.EventFunction<IPointerEnterHandler> s_PointerEnterHandler = Execute;
private static void Execute(IPointerEnterHandler handler, BaseEventData eventData) {
handler.OnPointerEnter(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
private static readonly ExecuteEvents.EventFunction<IPointerExitHandler> s_PointerExitHandler = Execute;
private static void Execute(IPointerExitHandler handler, BaseEventData eventData) {
handler.OnPointerExit(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
private static readonly ExecuteEvents.EventFunction<ILeftPointerEnterHandler> s_LeftPointerEnterHandler = Execute;
private static void Execute(ILeftPointerEnterHandler handler, BaseEventData eventData) {
handler.OnLeftPointerEnter(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
private static readonly ExecuteEvents.EventFunction<ILeftPointerExitHandler> s_LeftPointerExitHandler = Execute;
private static void Execute(ILeftPointerExitHandler handler, BaseEventData eventData) {
handler.OnLeftPointerExit(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
private static readonly ExecuteEvents.EventFunction<IRightPointerEnterHandler> s_RightPointerEnterHandler = Execute;
private static void Execute(IRightPointerEnterHandler handler, BaseEventData eventData) {
handler.OnRightPointerEnter(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
private static readonly ExecuteEvents.EventFunction<IRightPointerExitHandler> s_RightPointerExitHandler = Execute;
private static void Execute(IRightPointerExitHandler handler, BaseEventData eventData) {
handler.OnRightPointerExit(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
private static readonly ExecuteEvents.EventFunction<ILeftIndexTriggerHandler> s_LeftIndexTriggerHandler = Execute;
private static void Execute(ILeftIndexTriggerHandler handler, BaseEventData eventData) {
handler.OnLeftIndexTrigger(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
private static readonly ExecuteEvents.EventFunction<ILeftIndexTriggerDownHandler> s_LeftIndexTriggerDownHandler = Execute;
private static void Execute(ILeftIndexTriggerDownHandler handler, BaseEventData eventData) {
handler.OnLeftIndexTriggerDown(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
private static readonly ExecuteEvents.EventFunction<ILeftIndexTriggerUpHandler> s_LeftIndexTriggerUpHandler = Execute;
private static void Execute(ILeftIndexTriggerUpHandler handler, BaseEventData eventData) {
handler.OnLeftIndexTriggerUp(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
private static readonly ExecuteEvents.EventFunction<IRightIndexTriggerHandler> s_RightIndexTriggerHandler = Execute;
private static void Execute(IRightIndexTriggerHandler handler, BaseEventData eventData) {
handler.OnRightIndexTrigger(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
private static readonly ExecuteEvents.EventFunction<IRightIndexTriggerDownHandler> s_RightIndexTriggerDownHandler = Execute;
private static void Execute(IRightIndexTriggerDownHandler handler, BaseEventData eventData) {
handler.OnRightIndexTriggerDown(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
private static readonly ExecuteEvents.EventFunction<IRightIndexTriggerUpHandler> s_RightIndexTriggerUpHandler = Execute;
private static void Execute(IRightIndexTriggerUpHandler handler, BaseEventData eventData) {
handler.OnRightIndexTriggerUp(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
private static readonly ExecuteEvents.EventFunction<ILeftHandTriggerHandler> s_LeftHandTriggerHandler = Execute;
private static void Execute(ILeftHandTriggerHandler handler, BaseEventData eventData) {
handler.OnLeftHandTrigger(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
private static readonly ExecuteEvents.EventFunction<ILeftHandTriggerDownHandler> s_LeftHandTriggerDownHandler = Execute;
private static void Execute(ILeftHandTriggerDownHandler handler, BaseEventData eventData) {
handler.OnLeftHandTriggerDown(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
private static readonly ExecuteEvents.EventFunction<ILeftHandTriggerUpHandler> s_LeftHandTriggerUpHandler = Execute;
private static void Execute(ILeftHandTriggerUpHandler handler, BaseEventData eventData) {
handler.OnLeftHandTriggerUp(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
private static readonly ExecuteEvents.EventFunction<IRightHandTriggerHandler> s_RightHandTriggerHandler = Execute;
private static void Execute(IRightHandTriggerHandler handler, BaseEventData eventData) {
handler.OnRightHandTrigger(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
private static readonly ExecuteEvents.EventFunction<IRightHandTriggerDownHandler> s_RightHandTriggerDownHandler = Execute;
private static void Execute(IRightHandTriggerDownHandler handler, BaseEventData eventData) {
handler.OnRightHandTriggerDown(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
private static readonly ExecuteEvents.EventFunction<IRightHandTriggerUpHandler> s_RightHandTriggerUpHandler = Execute;
private static void Execute(IRightHandTriggerUpHandler handler, BaseEventData eventData) {
handler.OnRightHandTriggerUp(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
private static readonly ExecuteEvents.EventFunction<IAButtonHandler> s_AButtonHandler = Execute;
private static void Execute(IAButtonHandler handler, BaseEventData eventData) {
handler.OnAButton(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
private static readonly ExecuteEvents.EventFunction<IAButtonDownHandler> s_AButtonDownHandler = Execute;
private static void Execute(IAButtonDownHandler handler, BaseEventData eventData) {
handler.OnAButtonDown(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
private static readonly ExecuteEvents.EventFunction<IAButtonUpHandler> s_AButtonUpHandler = Execute;
private static void Execute(IAButtonUpHandler handler, BaseEventData eventData) {
handler.OnAButtonUp(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
private static readonly ExecuteEvents.EventFunction<IXButtonHandler> s_XButtonHandler = Execute;
private static void Execute(IXButtonHandler handler, BaseEventData eventData) {
handler.OnXButton(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
private static readonly ExecuteEvents.EventFunction<IXButtonDownHandler> s_XButtonDownHandler = Execute;
private static void Execute(IXButtonDownHandler handler, BaseEventData eventData) {
handler.OnXButtonDown(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
private static readonly ExecuteEvents.EventFunction<IXButtonUpHandler> s_XButtonUpHandler = Execute;
private static void Execute(IXButtonUpHandler handler, BaseEventData eventData) {
handler.OnXButtonUp(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
private static readonly ExecuteEvents.EventFunction<IBButtonHandler> s_BButtonHandler = Execute;
private static void Execute(IBButtonHandler handler, BaseEventData eventData) {
handler.OnBButton(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
private static readonly ExecuteEvents.EventFunction<IBButtonDownHandler> s_BButtonDownHandler = Execute;
private static void Execute(IBButtonDownHandler handler, BaseEventData eventData) {
handler.OnBButtonDown(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
private static readonly ExecuteEvents.EventFunction<IBButtonUpHandler> s_BButtonUpHandler = Execute;
private static void Execute(IBButtonUpHandler handler, BaseEventData eventData) {
handler.OnBButtonUp(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
private static readonly ExecuteEvents.EventFunction<IYButtonHandler> s_YButtonHandler = Execute;
private static void Execute(IYButtonHandler handler, BaseEventData eventData) {
handler.OnYButton(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
private static readonly ExecuteEvents.EventFunction<IYButtonDownHandler> s_YButtonDownHandler = Execute;
private static void Execute(IYButtonDownHandler handler, BaseEventData eventData) {
handler.OnYButtonDown(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
private static readonly ExecuteEvents.EventFunction<IYButtonUpHandler> s_YButtonUpHandler = Execute;
private static void Execute(IYButtonUpHandler handler, BaseEventData eventData) {
handler.OnYButtonUp(ExecuteEvents.ValidateEventData<BaseEventData>(eventData));
}
#endregion
#region Execution Accessors
public static ExecuteEvents.EventFunction<IPointerEnterHandler> pointerEnterHandler {
get { return s_PointerEnterHandler; }
}
public static ExecuteEvents.EventFunction<IPointerExitHandler> pointerExitHandler {
get { return s_PointerExitHandler; }
}
public static ExecuteEvents.EventFunction<ILeftPointerEnterHandler> leftPointerEnterHandler {
get { return s_LeftPointerEnterHandler; }
}
public static ExecuteEvents.EventFunction<ILeftPointerExitHandler> leftPointerExitHandler {
get { return s_LeftPointerExitHandler; }
}
public static ExecuteEvents.EventFunction<IRightPointerEnterHandler> rightPointerEnterHandler {
get { return s_RightPointerEnterHandler; }
}
public static ExecuteEvents.EventFunction<IRightPointerExitHandler> rightPointerExitHandler {
get { return s_RightPointerExitHandler; }
}
public static ExecuteEvents.EventFunction<ILeftIndexTriggerHandler> leftIndexTriggerHandler {
get { return s_LeftIndexTriggerHandler; }
}
public static ExecuteEvents.EventFunction<ILeftIndexTriggerDownHandler> leftIndexTriggerDownHandler {
get { return s_LeftIndexTriggerDownHandler; }
}
public static ExecuteEvents.EventFunction<ILeftIndexTriggerUpHandler> leftIndexTriggerUpHandler {
get { return s_LeftIndexTriggerUpHandler; }
}
public static ExecuteEvents.EventFunction<IRightIndexTriggerHandler> rightIndexTriggerHandler {
get { return s_RightIndexTriggerHandler; }
}
public static ExecuteEvents.EventFunction<IRightIndexTriggerDownHandler> rightIndexTriggerDownHandler {
get { return s_RightIndexTriggerDownHandler; }
}
public static ExecuteEvents.EventFunction<IRightIndexTriggerUpHandler> rightIndexTriggerUpHandler {
get { return s_RightIndexTriggerUpHandler; }
}
public static ExecuteEvents.EventFunction<ILeftHandTriggerHandler> leftHandTriggerHandler {
get { return s_LeftHandTriggerHandler; }
}
public static ExecuteEvents.EventFunction<ILeftHandTriggerDownHandler> leftHandTriggerDownHandler {
get { return s_LeftHandTriggerDownHandler; }
}
public static ExecuteEvents.EventFunction<ILeftHandTriggerUpHandler> leftHandTriggerUpHandler {
get { return s_LeftHandTriggerUpHandler; }
}
public static ExecuteEvents.EventFunction<IRightHandTriggerHandler> rightHandTriggerHandler {
get { return s_RightHandTriggerHandler; }
}
public static ExecuteEvents.EventFunction<IRightHandTriggerDownHandler> rightHandTriggerDownHandler {
get { return s_RightHandTriggerDownHandler; }
}
public static ExecuteEvents.EventFunction<IRightHandTriggerUpHandler> rightHandTriggerUpHandler {
get { return s_RightHandTriggerUpHandler; }
}
public static ExecuteEvents.EventFunction<IAButtonHandler> aButtonHandler {
get { return s_AButtonHandler; }
}
public static ExecuteEvents.EventFunction<IAButtonDownHandler> aButtonDownHandler {
get { return s_AButtonDownHandler; }
}
public static ExecuteEvents.EventFunction<IAButtonUpHandler> aButtonUpHandler {
get { return s_AButtonUpHandler; }
}
public static ExecuteEvents.EventFunction<IXButtonHandler> xButtonHandler {
get { return s_XButtonHandler; }
}
public static ExecuteEvents.EventFunction<IXButtonDownHandler> xButtonDownHandler {
get { return s_XButtonDownHandler; }
}
public static ExecuteEvents.EventFunction<IXButtonUpHandler> xButtonUpHandler {
get { return s_XButtonUpHandler; }
}
public static ExecuteEvents.EventFunction<IBButtonHandler> bButtonHandler {
get { return s_BButtonHandler; }
}
public static ExecuteEvents.EventFunction<IBButtonDownHandler> bButtonDownHandler {
get { return s_BButtonDownHandler; }
}
public static ExecuteEvents.EventFunction<IBButtonUpHandler> bButtonUpHandler {
get { return s_BButtonUpHandler; }
}
public static ExecuteEvents.EventFunction<IYButtonHandler> yButtonHandler {
get { return s_YButtonHandler; }
}
public static ExecuteEvents.EventFunction<IYButtonDownHandler> yButtonDownHandler {
get { return s_YButtonDownHandler; }
}
public static ExecuteEvents.EventFunction<IYButtonUpHandler> yButtonUpHandler {
get { return s_YButtonUpHandler; }
}
#endregion
}
#region Events Interfaces
public interface IPointerEnterHandler : IEventSystemHandler {
void OnPointerEnter(BaseEventData eventData);
}
public interface IPointerExitHandler : IEventSystemHandler {
void OnPointerExit(BaseEventData eventData);
}
public interface ILeftHandTriggerDownHandler : IEventSystemHandler {
void OnLeftHandTriggerDown(BaseEventData eventData);
}
public interface ILeftPointerEnterHandler : IEventSystemHandler {
void OnLeftPointerEnter(BaseEventData eventData);
}
public interface ILeftPointerExitHandler : IEventSystemHandler {
void OnLeftPointerExit(BaseEventData eventData);
}
public interface IRightPointerEnterHandler : IEventSystemHandler {
void OnRightPointerEnter(BaseEventData eventData);
}
public interface IRightPointerExitHandler : IEventSystemHandler {
void OnRightPointerExit(BaseEventData eventData);
}
public interface ILeftIndexTriggerHandler : IEventSystemHandler {
void OnLeftIndexTrigger(BaseEventData eventData);
}
public interface ILeftIndexTriggerDownHandler : IEventSystemHandler {
void OnLeftIndexTriggerDown(BaseEventData eventData);
}
public interface ILeftIndexTriggerUpHandler : IEventSystemHandler {
void OnLeftIndexTriggerUp(BaseEventData eventData);
}
public interface IRightIndexTriggerHandler : IEventSystemHandler {
void OnRightIndexTrigger(BaseEventData eventData);
}
public interface IRightIndexTriggerDownHandler : IEventSystemHandler {
void OnRightIndexTriggerDown(BaseEventData eventData);
}
public interface IRightIndexTriggerUpHandler : IEventSystemHandler {
void OnRightIndexTriggerUp(BaseEventData eventData);
}
public interface ILeftHandTriggerHandler : IEventSystemHandler {
void OnLeftHandTrigger(BaseEventData eventData);
}
public interface ILeftHandTriggerUpHandler : IEventSystemHandler {
void OnLeftHandTriggerUp(BaseEventData eventData);
}
public interface IRightHandTriggerHandler : IEventSystemHandler {
void OnRightHandTrigger(BaseEventData eventData);
}
public interface IRightHandTriggerDownHandler : IEventSystemHandler {
void OnRightHandTriggerDown(BaseEventData eventData);
}
public interface IRightHandTriggerUpHandler : IEventSystemHandler {
void OnRightHandTriggerUp(BaseEventData eventData);
}
public interface IAButtonHandler : IEventSystemHandler {
void OnAButton(BaseEventData eventData);
}
public interface IAButtonDownHandler : IEventSystemHandler {
void OnAButtonDown(BaseEventData eventData);
}
public interface IAButtonUpHandler : IEventSystemHandler {
void OnAButtonUp(BaseEventData eventData);
}
public interface IXButtonHandler : IEventSystemHandler {
void OnXButton(BaseEventData eventData);
}
public interface IXButtonDownHandler : IEventSystemHandler {
void OnXButtonDown(BaseEventData eventData);
}
public interface IXButtonUpHandler : IEventSystemHandler {
void OnXButtonUp(BaseEventData eventData);
}
public interface IBButtonHandler : IEventSystemHandler {
void OnBButton(BaseEventData eventData);
}
public interface IBButtonDownHandler : IEventSystemHandler {
void OnBButtonDown(BaseEventData eventData);
}
public interface IBButtonUpHandler : IEventSystemHandler {
void OnBButtonUp(BaseEventData eventData);
}
public interface IYButtonHandler : IEventSystemHandler {
void OnYButton(BaseEventData eventData);
}
public interface IYButtonDownHandler : IEventSystemHandler {
void OnYButtonDown(BaseEventData eventData);
}
public interface IYButtonUpHandler : IEventSystemHandler {
void OnYButtonUp(BaseEventData eventData);
}
#endregion
}