protected override InputMapping GetStandardMapping() { ButtonBasedInputMapping mapping = new ButtonBasedInputMapping(GetValidButtons(), GetValidAxes()); mapping.SetAxisMappings(Axis.Axis_BalanceBoard_X, Axis.Axis_BalanceBoard_Y, "Button_Left-Button_Right", "Button_B-Button_A"); mapping.SetButtonMappings("", Button.Button_Plus, Button.Button_Plus, Button.Button_Minus, Button.Button_Home, "", ""); return(mapping); }
protected override InputMapping GetStandardMapping() { ButtonBasedInputMapping mapping = new ButtonBasedInputMapping(GetValidButtons(), GetValidAxes()); mapping.SetAxisMappings("A-D", "W-S", "LeftArrow-Right", "DownArrow-Up"); mapping.SetButtonMappings("C", "Return", "Return", "NumPad0", "Space", "F", "X"); return(mapping); }
protected override InputMapping GetStandardMapping() { ButtonBasedInputMapping mapping = new ButtonBasedInputMapping(GetValidButtons(), GetValidAxes()); if (device.Properties.ProductName == "T.Flight Stick X") { mapping.SetAxisMappings(Axis.Axis_X, Axis.Axis_Y, Axis.Axis_R, Axis.Axis_POV_1); mapping.SetButtonMappings(Button.Button_11, Button.Button_4, Button.Button_4, Button.Button_10, Button.Button_2, Button.Button_5, Button.Button_1); } else { mapping.SetAxisMappings(Axis.Axis_X, Axis.Axis_Y, "Button_1-Button_3", "Button_2-Button_4"); mapping.SetButtonMappings(Button.Button_6, Button.Button_10, Button.Button_10, Button.Button_8, Button.Button_5, Button.Button_9, Button.Button_11); } return(mapping); }