Ejemplo n.º 1
0
 public KeyboardEventsSplitNode(IIOFactory factory)
 {
     KeyboardIn = factory.CreateSpread <Keyboard>(new InputAttribute("Keyboard"));
     BinSizePin = factory.CreateBinSizeOutput(new OutputAttribute("Bin Size")
     {
         Order = int.MaxValue
     });
     EventTypeOut = BinSizePin.CreateBinSizeSpread <KeyNotificationKind>(new OutputAttribute("Event Type"));
     KeyCodeOut   = BinSizePin.CreateBinSizeSpread <int>(new OutputAttribute("Key Code"));
     KeyCharOut   = BinSizePin.CreateBinSizeSpread <string>(new OutputAttribute("Key Char"));
 }
Ejemplo n.º 2
0
 public KeyboardEventsJoinNode(IIOFactory factory)
 {
     BinSizePin = factory.CreateBinSizeInput(new InputAttribute("Bin Size")
     {
         DefaultValue = InputAttribute.DefaultBinSize, Order = int.MaxValue
     });
     EventTypeIn            = BinSizePin.CreateBinSizeSpread <KeyNotificationKind>(new InputAttribute("Event Type"));
     KeyCodeIn              = BinSizePin.CreateBinSizeSpread <int>(new InputAttribute("Key Code"));
     KeyCharIn              = BinSizePin.CreateBinSizeSpread <string>(new InputAttribute("Key Char"));
     KeyboardOut            = factory.CreateSpread <Keyboard>(new OutputAttribute("Keyboard"));
     KeyboardOut.SliceCount = 0;
 }
Ejemplo n.º 3
0
 public MouseEventsSplitNode(IIOFactory factory)
 {
     MouseIn    = factory.CreateSpread <Mouse>(new InputAttribute("Mouse"));
     BinSizePin = factory.CreateBinSizeOutput(new OutputAttribute("Bin Size")
     {
         Order = int.MaxValue
     });
     EventTypeOut       = BinSizePin.CreateBinSizeSpread <MouseNotificationKind>(new OutputAttribute("Event Type"));
     PositionOut        = BinSizePin.CreateBinSizeSpread <Vector2D>(new OutputAttribute("Position"));
     MouseWheelDeltaOut = BinSizePin.CreateBinSizeSpread <int>(new OutputAttribute("Mouse Wheel Delta"));
     LeftButtonOut      = BinSizePin.CreateBinSizeSpread <bool>(new OutputAttribute("Left Button"));
     MiddleButtonOut    = BinSizePin.CreateBinSizeSpread <bool>(new OutputAttribute("Middle Button"));
     RightButtonOut     = BinSizePin.CreateBinSizeSpread <bool>(new OutputAttribute("Right Button"));
     X1ButtonOut        = BinSizePin.CreateBinSizeSpread <bool>(new OutputAttribute("X1 Button"));
     X2ButtonOut        = BinSizePin.CreateBinSizeSpread <bool>(new OutputAttribute("X2 Button"));
 }
Ejemplo n.º 4
0
 public MouseEventsJoinNode(IIOFactory factory)
 {
     BinSizePin = factory.CreateBinSizeInput(new InputAttribute("Bin Size")
     {
         DefaultValue = InputAttribute.DefaultBinSize, Order = int.MaxValue
     });
     EventTypeIn         = BinSizePin.CreateBinSizeSpread <MouseNotificationKind>(new InputAttribute("Event Type"));
     PositionIn          = BinSizePin.CreateBinSizeSpread <Vector2D>(new InputAttribute("Position"));
     MouseWheelIn        = BinSizePin.CreateBinSizeSpread <int>(new InputAttribute("Mouse Wheel Delta"));
     LeftButtonIn        = BinSizePin.CreateBinSizeSpread <bool>(new InputAttribute("Left Button"));
     MiddleButtonIn      = BinSizePin.CreateBinSizeSpread <bool>(new InputAttribute("Middle Button"));
     RightButtonIn       = BinSizePin.CreateBinSizeSpread <bool>(new InputAttribute("Right Button"));
     X1ButtonIn          = BinSizePin.CreateBinSizeSpread <bool>(new InputAttribute("X1 Button"));
     X2ButtonIn          = BinSizePin.CreateBinSizeSpread <bool>(new InputAttribute("X2 Button"));
     MouseOut            = factory.CreateSpread <Mouse>(new OutputAttribute("Mouse"));
     MouseOut.SliceCount = 0;
 }