InputSystem = xinput

Having technical difficulties with Supermodel? Last-minute wardrobe malfunction? Get help here.
Forum rules
Keep it classy!

  • No ROM requests or links.
  • Do not ask to be a play tester.
  • Do not ask about release dates.
  • No drama!

InputSystem = xinput

Postby RedTail » Mon Aug 07, 2017 4:27 am

I'm trying to use "InputSystem = xinput" in the config file to gain proper use of the 360 pad's triggers, but all it seems to do completely disable them. My settings:

Code: Select all
;
; Supermodel Configuration File
;


[ Global ]

InputSystem = xinput
InputJoy1XDeadZone = 2
InputJoy1XSaturation = 150
PowerPCFrequency = 100
XResolution = 1920
YResolution = 1080
FullScreen = 1
WideScreen = 1
New3DEngine = 1
InputStart1 = KEY_1,JOY1_BUTTON8
InputStart2 = KEY_2,JOY2_BUTTON9
InputCoin1 = KEY_3,JOY1_BUTTON10
InputCoin2 = KEY_4,JOY2_BUTTON10
InputServiceA = KEY_5
InputServiceB = KEY_7
InputTestA = KEY_6
InputTestB = KEY_8
InputJoyUp = KEY_UP,JOY1_UP
InputJoyDown = KEY_DOWN,JOY1_DOWN
InputJoyLeft = KEY_LEFT,JOY1_LEFT
InputJoyRight = KEY_RIGHT,JOY1_RIGHT
InputJoyUp2 = JOY2_UP
InputJoyDown2 = JOY2_DOWN
InputJoyLeft2 = JOY2_LEFT
InputJoyRight2 = JOY2_RIGHT
InputPunch = KEY_A,JOY1_BUTTON1
InputKick = KEY_S,JOY1_BUTTON2
InputGuard = KEY_D,JOY1_BUTTON3
InputEscape = KEY_F,JOY1_BUTTON4
InputPunch2 = JOY2_BUTTON1
InputKick2 = JOY2_BUTTON2
InputGuard2 = JOY2_BUTTON3
InputEscape2 = JOY2_BUTTON4
InputShift = KEY_A,JOY1_BUTTON1
InputBeat = KEY_S,JOY1_BUTTON2
InputCharge = KEY_D,JOY1_BUTTON3
InputJump = KEY_F,JOY1_BUTTON4
InputShortPass = KEY_A,JOY1_BUTTON1
InputLongPass = KEY_S,JOY1_BUTTON2
InputShoot = KEY_D,JOY1_BUTTON3
InputShortPass2 = JOY2_BUTTON1
InputLongPass2 = JOY2_BUTTON2
InputShoot2 = JOY2_BUTTON3
InputSteeringLeft = KEY_LEFT
InputSteeringRight = KEY_RIGHT
InputSteering = JOY1_XAXIS
InputAccelerator = KEY_UP,JOY1_ZAXIS_NEG
InputBrake = KEY_DOWN,JOY1_ZAXIS_POS
InputGearShiftUp = KEY_Y
InputGearShiftDown = KEY_H
InputGearShift1 = JOY1_BUTTON3
InputGearShift2 = JOY1_BUTTON1
InputGearShift3 = JOY1_BUTTON4
InputGearShift4 = JOY1_BUTTON2
InputGearShiftN = KEY_T
InputVR1 = KEY_A
InputVR2 = KEY_S
InputVR3 = KEY_D
InputVR4 = KEY_F
InputViewChange = KEY_A,JOY1_BUTTON1
InputHandBrake = KEY_S,JOY1_BUTTON2
InputRearBrake = KEY_S,JOY1_BUTTON2
InputMusicSelect = KEY_D,JOY1_BUTTON3
InputTwinJoyTurnLeft = KEY_Q,JOY1_RXAXIS_NEG
InputTwinJoyTurnRight = KEY_W,JOY1_RXAXIS_POS
InputTwinJoyForward = KEY_UP,JOY1_YAXIS_NEG
InputTwinJoyReverse = KEY_DOWN,JOY1_YAXIS_POS
InputTwinJoyStrafeLeft = KEY_LEFT,JOY1_XAXIS_NEG
InputTwinJoyStrafeRight = KEY_RIGHT,JOY1_XAXIS_POS
InputTwinJoyJump = KEY_E,JOY1_BUTTON1
InputTwinJoyCrouch = KEY_R,JOY1_BUTTON2
InputTwinJoyLeft1 = NONE
InputTwinJoyLeft2 = NONE
InputTwinJoyRight1 = NONE
InputTwinJoyRight2 = NONE
InputTwinJoyUp1 = NONE
InputTwinJoyUp2 = NONE
InputTwinJoyDown1 = NONE
InputTwinJoyDown2 = NONE
InputTwinJoyShot1 = KEY_A,JOY1_BUTTON5
InputTwinJoyShot2 = KEY_S,JOY1_BUTTON6
InputTwinJoyTurbo1 = KEY_Z,JOY1_BUTTON7
InputTwinJoyTurbo2 = KEY_X,JOY1_BUTTON8
InputAnalogJoyLeft = KEY_LEFT
InputAnalogJoyRight = KEY_RIGHT
InputAnalogJoyUp = KEY_UP
InputAnalogJoyDown = KEY_DOWN
InputAnalogJoyX = JOY_XAXIS,MOUSE_XAXIS
InputAnalogJoyY = JOY_YAXIS,MOUSE_YAXIS
InputAnalogJoyTrigger = KEY_A,JOY_BUTTON1,MOUSE_LEFT_BUTTON
InputAnalogJoyEvent = KEY_S,JOY_BUTTON2,MOUSE_RIGHT_BUTTON
InputAnalogJoyTrigger2 = KEY_D,JOY_BUTTON2
InputAnalogJoyEvent2 = NONE
InputGunLeft = KEY_LEFT
InputGunRight = KEY_RIGHT
InputGunUp = KEY_UP
InputGunDown = KEY_DOWN
InputGunX = MOUSE_XAXIS,JOY1_XAXIS
InputGunY = MOUSE_YAXIS,JOY1_YAXIS
InputTrigger = KEY_A,JOY1_BUTTON1,MOUSE_LEFT_BUTTON
InputOffscreen = KEY_S,JOY1_BUTTON2,MOUSE_RIGHT_BUTTON
InputAutoTrigger = 0
InputGunLeft2 = NONE
InputGunRight2 = NONE
InputGunUp2 = NONE
InputGunDown2 = NONE
InputGunX2 = JOY2_XAXIS
InputGunY2 = JOY2_YAXIS
InputTrigger2 = JOY2_BUTTON1
InputOffscreen2 = JOY2_BUTTON2
InputAutoTrigger2 = 0
InputAnalogGunLeft = KEY_LEFT
InputAnalogGunRight = KEY_RIGHT
InputAnalogGunUp = KEY_UP
InputAnalogGunDown = KEY_DOWN
InputAnalogGunX = MOUSE_XAXIS,JOY1_XAXIS
InputAnalogGunY = MOUSE_YAXIS,JOY1_YAXIS
InputAnalogTriggerLeft = KEY_A,JOY1_BUTTON1,MOUSE_LEFT_BUTTON
InputAnalogTriggerRight = KEY_S,JOY1_BUTTON2,MOUSE_RIGHT_BUTTON
InputAnalogGunLeft2 = NONE
InputAnalogGunRight2 = NONE
InputAnalogGunUp2 = NONE
InputAnalogGunDown2 = NONE
InputAnalogGunX2 = NONE
InputAnalogGunY2 = NONE
InputAnalogTriggerLeft2 = NONE
InputAnalogTriggerRight2 = NONE
InputSkiLeft = KEY_LEFT
InputSkiRight = KEY_RIGHT
InputSkiUp = KEY_UP
InputSkiDown = KEY_DOWN
InputSkiX = JOY1_XAXIS
InputSkiY = JOY1_YAXIS
InputSkiPollLeft = KEY_A,JOY1_BUTTON1
InputSkiPollRight = KEY_S,JOY1_BUTTON2
InputSkiSelect1 = KEY_Q,JOY1_BUTTON3
InputSkiSelect2 = KEY_W,JOY1_BUTTON4
InputSkiSelect3 = KEY_E,JOY1_BUTTON5
InputMagicalLeverUp1 = KEY_UP
InputMagicalLeverDown1 = KEY_DOWN
InputMagicalLeverUp2 = NONE
InputMagicalLeverDown2 = NONE
InputMagicalLever1 = JOY1_YAXIS
InputMagicalLever2 = JOY2_YAXIS
InputMagicalPedal1 = KEY_A,JOY1_BUTTON1
InputMagicalPedal2 = KEY_S,JOY2_BUTTON1
InputFishingRodLeft = KEY_LEFT
InputFishingRodRight = KEY_RIGHT
InputFishingRodUp = KEY_UP
InputFishingRodDown = KEY_DOWN
InputFishingStickLeft = KEY_A
InputFishingStickRight = KEY_D
InputFishingStickUp = KEY_W
InputFishingStickDown = KEY_S
InputFishingRodX = JOY1_XAXIS
InputFishingRodY = JOY1_YAXIS
InputFishingStickX = JOY1_RXAXIS
InputFishingStickY = JOY1_RYAXIS
InputFishingReel = KEY_SPACE,JOY1_ZAXIS_POS
InputFishingCast = KEY_Z,JOY1_BUTTON1
InputFishingSelect = KEY_X,JOY1_BUTTON2


Where am I going wrong here?
RedTail
 
Posts: 16
Joined: Mon Jun 05, 2017 10:47 pm

Re: InputSystem = xinput

Postby Bart » Mon Aug 07, 2017 9:00 am

Which version of Supermodel are you running?
User avatar
Bart
Site Admin
 
Posts: 2038
Joined: Thu Sep 01, 2011 2:13 pm
Location: New York City

Re: InputSystem = xinput

Postby RedTail » Mon Aug 07, 2017 9:48 am

Bart wrote:Which version of Supermodel are you running?


SVN 619, Bart.
RedTail
 
Posts: 16
Joined: Mon Jun 05, 2017 10:47 pm

Re: InputSystem = xinput

Postby Bart » Mon Aug 07, 2017 10:46 am

I'll have to check when I get home but I presume you'd like to use them as pedals in racing games. This looks wrong:

Code: Select all
InputAccelerator = KEY_UP,JOY1_ZAXIS_NEG
InputBrake = KEY_DOWN,JOY1_ZAXIS_POS


You've got the same axis mapped to both. When xinput is enabled, the triggers appear as independent axes. I forget offhand what they are called (there may be a thread that lists them on the forum) but the easiest way to solve this problem is to run 'supermodel -config-inputs' and remap them from there. Let me know if that works. I think one ends up being ZAXIS and the other RZAXIS or something like that.
User avatar
Bart
Site Admin
 
Posts: 2038
Joined: Thu Sep 01, 2011 2:13 pm
Location: New York City

Re: InputSystem = xinput

Postby RedTail » Mon Aug 07, 2017 1:56 pm

Bart wrote:I'll have to check when I get home but I presume you'd like to use them as pedals in racing games. This looks wrong:

Code: Select all
InputAccelerator = KEY_UP,JOY1_ZAXIS_NEG
InputBrake = KEY_DOWN,JOY1_ZAXIS_POS


You've got the same axis mapped to both. When xinput is enabled, the triggers appear as independent axes. I forget offhand what they are called (there may be a thread that lists them on the forum) but the easiest way to solve this problem is to run 'supermodel -config-inputs' and remap them from there. Let me know if that works. I think one ends up being ZAXIS and the other RZAXIS or something like that.


That did the trick! If anyone is searching this in the future, these are the exact inputs:

Code: Select all
InputAccelerator = JOY1_RZAXIS_POS
InputBrake = JOY1_ZAXIS_POS


Thanks, Bart!
RedTail
 
Posts: 16
Joined: Mon Jun 05, 2017 10:47 pm

Re: InputSystem = xinput

Postby Bart » Mon Aug 07, 2017 4:09 pm

I just got home and you beat me to it. Nice :) Glad it's working now.
User avatar
Bart
Site Admin
 
Posts: 2038
Joined: Thu Sep 01, 2011 2:13 pm
Location: New York City


Return to The Fitting Room

Who is online

Users browsing this forum: No registered users and 2 guests

cron