public static ButtonDelegateFactory CreateButtonDelegateFactory(SPMouseId id)
        {
            var spid = id.ToSPInputId();

            return((j) =>
            {
                return CreateButtonDelegate(spid, j);
            });
        }
 public static ButtonDelegate CreateButtonDelegate(SPMouseId id)
 {
     return(CreateButtonDelegate(id.ToSPInputId()));
 }
 public static AxisDelegateFactory CreateAxisDelegateFactory(SPMouseId id, bool invert = false)
 {
     return(CreateAxisDelegateFactory(id.ToSPInputId(), invert));
 }
 public static AxisDelegate CreateAxisDelegate(SPMouseId id, bool invert = false)
 {
     return(CreateAxisDelegate(id.ToSPInputId(), Joystick.All, invert));
 }
Ejemplo n.º 5
0
 public void RegisterMouseButton(TInputId button, SPMouseId spbtn)
 {
     _buttonTable[button] = InputToken.CreateButton(spbtn.ToSPInputId());
     _axisTable.Remove(button);
 }
Ejemplo n.º 6
0
 public void RegisterMouseAxis(TInputId axis, SPMouseId spaxis)
 {
     _axisTable[axis] = InputToken.CreateAxis(spaxis.ToSPInputId());
     _buttonTable.Remove(axis);
 }