internal InteractiveJoystickEventArgs(InteractiveEventType type, string id, InteractiveParticipant participant, double x, double y) : base(type)
 {
     ControlID   = id;
     Participant = participant;
     X           = x;
     // We invert the y-axis to match Unity conventions. In Unity up is positive and down is negative.
     Y = -1 * y;
 }
 internal InteractiveCoordinatesChangedEventArgs(
     string id,
     InteractiveParticipant participant,
     Vector3 position) : base(InteractiveEventType.Coordinates)
 {
     ControlID   = id;
     Participant = participant;
     Position    = position;
 }
Пример #3
0
 internal InteractiveMouseButtonEventArgs(
     string id,
     InteractiveParticipant participant,
     bool isPressed,
     Vector3 position) : base(InteractiveEventType.MouseButton)
 {
     ControlID   = id;
     Participant = participant;
     IsPressed   = isPressed;
     Position    = position;
 }
 internal InteractiveTextEventArgs(
     InteractiveEventType type,
     string id,
     InteractiveParticipant participant,
     string text,
     string transactionID) : base(type)
 {
     ControlID     = id;
     Participant   = participant;
     Text          = text;
     TransactionID = transactionID;
 }
 internal InteractiveButtonEventArgs(
     InteractiveEventType type,
     string id,
     InteractiveParticipant participant,
     bool isPressed,
     uint cost,
     string transactionID) : base(type)
 {
     ControlID     = id;
     Participant   = participant;
     Cost          = cost;
     IsPressed     = isPressed;
     TransactionID = transactionID;
 }
 internal InteractiveParticipantStateChangedEventArgs(InteractiveEventType type, InteractiveParticipant participant, InteractiveParticipantState state) : base(type)
 {
     Participant = participant;
     State       = state;
 }
Пример #7
0
 internal InteractiveButtonEventArgs(InteractiveEventType type, string id, InteractiveParticipant participant, bool isPressed) : base(type)
 {
 }
Пример #8
0
 internal InteractiveJoystickEventArgs(InteractiveEventType type, string id, InteractiveParticipant participant, double x, double y) : base(type)
 {
 }