예제 #1
0
 public XboxGamepadBackInterfaceAxis Bind(XboxInputLabel.ThumbSticks label)
 {
     _sources.Add(Device.CreateThumbStickSource(label));
     return(this);
 }
예제 #2
0
 public static XboxInputLabel.Buttons ToButton(this XboxInputLabel.ThumbSticks thumbStickLabel)
 {
     return((XboxInputLabel.Buttons)((int)thumbStickLabel << 6));
 }
 public XboxGamepadThumbStickInputSource(XboxGamepadDevice device, XboxInputLabel.ThumbSticks inputLabel) : base(device)
 {
     InputLabel   = inputLabel;
     ThumbStickId = (int)InputLabel;
 }
예제 #4
0
 public XboxGamepadThumbStickInputSource CreateThumbStickSource(XboxInputLabel.ThumbSticks label)
 {
     return(new XboxGamepadThumbStickInputSource(this, label));
 }