コード例 #1
0
 protected static InputControlMapping LeftStickLeftMapping(InputControlSource analog)
 {
     return(new InputControlMapping {
         Handle = "Left Stick Left",
         Target = InputControlType.LeftStickLeft,
         Source = analog,
         SourceRange = InputRange.ZeroToMinusOne,
         TargetRange = InputRange.ZeroToOne
     });
 }
コード例 #2
0
 protected static InputControlMapping DPadDownMapping2(InputControlSource analog)
 {
     return(new InputControlMapping
     {
         Handle = "DPad Down",
         Target = InputControlType.DPadDown,
         Source = analog,
         SourceRange = InputRange.ZeroToMinusOne,
         TargetRange = InputRange.ZeroToOne
     });
 }
コード例 #3
0
 protected static InputControlMapping DPadRightMapping(InputControlSource analog)
 {
     return(new InputControlMapping
     {
         Handle = "DPad Right",
         Target = InputControlType.DPadRight,
         Source = analog,
         SourceRange = InputRange.ZeroToOne,
         TargetRange = InputRange.ZeroToOne
     });
 }
コード例 #4
0
 protected static InputControlMapping RightStickDownMapping(InputControlSource analog)
 {
     return(new InputControlMapping
     {
         Handle = "Right Stick Down",
         Target = InputControlType.RightStickDown,
         Source = analog,
         SourceRange = InputRange.ZeroToOne,
         TargetRange = InputRange.ZeroToOne
     });
 }
コード例 #5
0
 protected static InputControlMapping RightTriggerMapping(InputControlSource analog)
 {
     return(new InputControlMapping {
         Handle = "Right Trigger",
         Target = InputControlType.RightTrigger,
         Source = analog,
         SourceRange = InputRange.MinusOneToOne,
         TargetRange = InputRange.ZeroToOne,
         IgnoreInitialZeroValue = true
     });
 }
コード例 #6
0
        protected static InputControlMapping DPadDownMapping2(InputControlSource analog)
        {
            InputControlMapping inputControlMapping = new InputControlMapping();

            inputControlMapping.Handle      = "DPad Down";
            inputControlMapping.Target      = InputControlType.DPadDown;
            inputControlMapping.Source      = analog;
            inputControlMapping.SourceRange = InputRange.ZeroToMinusOne;
            inputControlMapping.TargetRange = InputRange.ZeroToOne;
            return(inputControlMapping);
        }
コード例 #7
0
        protected static InputControlMapping RightStickDownMapping(InputControlSource analog)
        {
            InputControlMapping inputControlMapping = new InputControlMapping();

            inputControlMapping.Handle      = "Right Stick Down";
            inputControlMapping.Target      = InputControlType.RightStickDown;
            inputControlMapping.Source      = analog;
            inputControlMapping.SourceRange = InputRange.ZeroToOne;
            inputControlMapping.TargetRange = InputRange.ZeroToOne;
            return(inputControlMapping);
        }
コード例 #8
0
        protected static InputControlMapping LeftStickUpMapping(InputControlSource analog)
        {
            InputControlMapping inputControlMapping = new InputControlMapping();

            inputControlMapping.Handle      = "Left Stick Up";
            inputControlMapping.Target      = InputControlType.LeftStickUp;
            inputControlMapping.Source      = analog;
            inputControlMapping.SourceRange = InputRange.ZeroToMinusOne;
            inputControlMapping.TargetRange = InputRange.ZeroToOne;
            return(inputControlMapping);
        }
コード例 #9
0
        protected static InputControlMapping RightTriggerMapping(InputControlSource analog)
        {
            InputControlMapping inputControlMapping = new InputControlMapping();

            inputControlMapping.Handle                 = "Right Trigger";
            inputControlMapping.Target                 = InputControlType.RightTrigger;
            inputControlMapping.Source                 = analog;
            inputControlMapping.SourceRange            = InputRange.MinusOneToOne;
            inputControlMapping.TargetRange            = InputRange.ZeroToOne;
            inputControlMapping.IgnoreInitialZeroValue = true;
            return(inputControlMapping);
        }
コード例 #10
0
 protected static InputControlMapping RightTriggerMapping( InputControlSource analog )
 {
     return new InputControlMapping {
         Handle = "Right Trigger",
         Target = InputControlType.RightTrigger,
         Source = analog,
         SourceRange = InputRange.MinusOneToOne,
         TargetRange = InputRange.ZeroToOne,
         IgnoreInitialZeroValue = true
     };
 }
コード例 #11
0
 protected static InputControlMapping RightStickUpMapping( InputControlSource analog )
 {
     return new InputControlMapping {
         Handle = "Right Stick Up",
         Target = InputControlType.RightStickUp,
         Source = analog,
         SourceRange = InputRange.ZeroToMinusOne,
         TargetRange = InputRange.ZeroToOne
     };
 }
コード例 #12
0
 protected static InputControlMapping LeftStickRightMapping( InputControlSource analog )
 {
     return new InputControlMapping {
         Handle = "Left Stick Right",
         Target = InputControlType.LeftStickRight,
         Source = analog,
         SourceRange = InputRange.ZeroToOne,
         TargetRange = InputRange.ZeroToOne
     };
 }
コード例 #13
0
 protected static InputControlMapping DPadUpMapping2( InputControlSource analog )
 {
     return new InputControlMapping {
         Handle = "DPad Up",
         Target = InputControlType.DPadUp,
         Source = analog,
         SourceRange = InputRange.ZeroToOne,
         TargetRange = InputRange.ZeroToOne
     };
 }