Setting up custom keys

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!

Setting up custom keys

Postby LASooner » Mon Sep 26, 2011 1:04 am

Is there a way to specify the keypad keys from the numbers above the QWERTY keys?

I'm trying to get it set up with my XARCADE Tank Stick and the left Joystick uses the keypad numbers and the first 4 fire buttons are alt, control, shift and space, how would one go about specifying those keys? I see I can set KEY_ALT can be used with another key entry. But I tried KEY_ALT by itself, KEY_CTRL and KEY_SPACE and none took.
LASooner
 
Posts: 4
Joined: Mon Sep 26, 2011 12:55 am

Re: Setting up custom keys

Postby nikdd » Mon Sep 26, 2011 2:50 am

Hi LASooner,

LASooner wrote:Is there a way to specify the keypad keys from the numbers above the QWERTY keys?


Numeric keypad keys (if that's what you're referring to - not too sure from your description?) are specified in the following manner: KEY_KEYPAD0, KEY_KEYPAD1... KEY_KEYPAD9, KEY_KEYPADPERIOD, KEY_KEYPADDIVIDE, KEY_KEYPADMULTIPLY, KEY_KEYPADMINUS, KEY_KEYPADPLUS and KEY_KEYPADENTER.

LASooner wrote:I'm trying to get it set up with my XARCADE Tank Stick and the left Joystick uses the keypad numbers and the first 4 fire buttons are alt, control, shift and space, how would one go about specifying those keys? I see I can set KEY_ALT can be used with another key entry. But I tried KEY_ALT by itself, KEY_CTRL and KEY_SPACE and none took.


Yes, KEY_ALT, KEY_SHIFT, KEY_CTRL and KEY_SPACE should all work on their own, eg InputShoot = "KEY_ALT".

If for some reason KEY_ALT, KEY_SHIFT or KEY_CTRL are not working for you, then can you try using KEY_LEFTALT or KEY_RIGHTALT instead of KEY_ALT, KEY_LEFTSHIFT or KEY_RIGHTSHIFT instead of KEY_SHIFT and KEY_LEFTCTRL or KEY_RIGHTCTRL instead of KEY_CTRL and see if that works any better?

If you're using Windows and these still don't work then what happens if you run with the SDL input system (-input-system=sdl) or the RawInput input system (-input-system=rawinput)? Do you see the same behaviour?

Lastly, if you just try configuring the inputs with -config-inputs rather than editing the Supermodel.ini file by hand, does it not recognise these keys when you try mapping an input?

Thanks, Nik.
nikdd
 
Posts: 180
Joined: Fri Sep 02, 2011 10:39 am
Location: London

Re: Setting up custom keys

Postby LASooner » Mon Sep 26, 2011 11:10 pm

Thanks I'll give these a try. Much appreciated.
LASooner
 
Posts: 4
Joined: Mon Sep 26, 2011 12:55 am

Re: Setting up custom keys

Postby LASooner » Wed Sep 28, 2011 12:56 am

Here's the default Xarcade Tankstick settings, the only thing that most probably don't have is the middle mouse button, I assigned to a few games, because I replaced my 2nd joystick with a Happ Topfire and it uses the middle mouse button from the trackball that normally goes unused.


Code: Select all
;;
;; Supermodel Configuration File
;; Default settings for Version 0.2a.
;;
 

;
; Quick Overview
; --------------
;
; All settings are case sensitive. Numbers must be unsigned, base 10 integers.
; Check your spelling carefully because invalid settings are silently ignored.
; To verify that your settings are being parsed correctly, check the contents
; of error.log.
;
; Global options apply to all games. To create configuration profiles for
; individual games, place settings under sections with the same name as the
; corresponding MAME ROM set, like so:
;
;       ; Scud Race
;       [ scud ]
;
;       SoundVolume = 50
;       MusicVolume = 200
;       ; ... etc. ...
;
; Input mappings are an exceptional case: they are only allowed in the global
; section. Per-game input mappings are not supported.
;
; For a list of all valid settings, please consult README.txt. Only default
; inputs are assigned here.
;


[ Global ]  ; Input settings can only be read from the global section!

; Common
InputStart1 = "KEY_1,JOY1_BUTTON9"
InputStart2 = "KEY_2,JOY2_BUTTON9"
InputCoin1 = "KEY_3,JOY1_BUTTON10"
InputCoin2 = "KEY_4,JOY2_BUTTON10"
InputServiceA = "KEY_7"
InputServiceB = "KEY_8"
InputTestA = "KEY_9"
InputTestB = "KEY_0"

; 4-way digital joysticks
InputJoyUp = "KEY_KEYPAD8,JOY1_UP"
InputJoyDown = "KEY_KEYPAD2,JOY1_DOWN"
InputJoyLeft = "KEY_KEYPAD4,JOY1_LEFT"
InputJoyRight = "KEY_KEYPAD6,JOY1_RIGHT"
InputJoyUp2 = "KEY_R,JOY2_UP"
InputJoyDown2 = "KEY_F,JOY2_DOWN"
InputJoyLeft2 = "KEY_D,JOY2_LEFT"
InputJoyRight2 = "KEY_G,JOY2_RIGHT"

; Fighting game buttons
InputPunch = "KEY_LEFTCTRL,JOY1_BUTTON1"
InputKick = "KEY_LEFTALT,JOY1_BUTTON2"
InputGuard = "KEY_SPACE,JOY1_BUTTON3"
InputEscape = "KEY_LEFTSHIFT,JOY1_BUTTON4"
InputPunch2 = "KEY_A,JOY2_BUTTON1"
InputKick2 = "KEY_S,JOY2_BUTTON2"
InputGuard2 = "KEY_Q,JOY2_BUTTON3"
InputEscape2 = "KEY_W,JOY2_BUTTON4"

; Spikeout buttons
InputShift = "KEY_LEFTCTRL,JOY1_BUTTON1"
InputBeat = "KEY_LEFTALT,JOY1_BUTTON2"
InputCharge = "KEY_SPACE,JOY1_BUTTON3"
InputJump = "KEY_LEFTSHIFT,JOY1_BUTTON4"

; Virtua Striker buttons
InputShortPass = "KEY_LEFTCTRL,JOY1_BUTTON1"
InputLongPass = "KEY_LEFTALT,JOY1_BUTTON2"
InputShoot = "KEY_SPACE,JOY1_BUTTON3"
InputShortPass2 = "KEY_A,JOY2_BUTTON1"
InputLongPass2 = "KEY_S,JOY2_BUTTON2"
InputShoot2 = "KEY_Q,JOY2_BUTTON3"

; Steering wheel
InputSteeringLeft = "KEY_KEYPAD4"      ; digital, turn wheel left
InputSteeringRight = "KEY_KEYPAD6"    ; digital, turn wheel right
InputSteering = "MOUSE_XAXIS"        ; analog, full steering range

; Pedals
InputAccelerator = "KEY_KEYPAD8,JOY1_UP"
InputBrake = "KEY_KEYPAD2,JOY1_DOWN"

; Manual transmission
InputGearShift1 = "KEY_LEFTCTRL,JOY1_BUTTON5"
InputGearShift2 = "KEY_LEFTALT,JOY1_BUTTON6"
InputGearShift3 = "KEY_SPACE,JOY1_BUTTON7"
InputGearShift4 = "KEY_LEFTSHIFT,JOY1_BUTTON8"
InputGearShiftN = "KEY_Z"
InputGearShiftUp = "KEY_R"           ; sequential shift up  Tankstick Joy2
InputGearShiftDown = "KEY_F"         ; sequential shift down Tankstick Joy2

; View buttons
InputVR1 = "KEY_A,JOY1_BUTTON1"
InputVR2 = "KEY_S,JOY1_BUTTON2"
InputVR3 = "KEY_Q,JOY1_BUTTON3"
InputVR4 = "KEY_W,JOY1_BUTTON4"

; Miscellaneous driving game buttons: Sega Rally 2, Dirt Devils, Emergency Car
; Ambulance
InputViewChange = "KEY_A,JOY1_BUTTON1"
InputHandBrake = "KEY_S,JOY1_BUTTON2"   ; Sega Rally 2 only

; Virtual On macros
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"

; Virtual On individual joystick mapping
InputTwinJoyLeft1 = "KEY_KEYPAD4"
InputTwinJoyLeft2 = "KEY_D"
InputTwinJoyRight1 = "KEY_KEYPAD6"
InputTwinJoyRight2 = "KEY_G"
InputTwinJoyUp1 = "KEY_KEYPAD8"
InputTwinJoyUp2 = "KEY_R"
InputTwinJoyDown1 = "KEY_KEYPAD2"
InputTwinJoyDown2 = "KEY_F"

; Virtual On buttons
InputTwinJoyShot1 = "KEY_A,MOUSE_MIDDLE_BUTTON"
InputTwinJoyShot2 = "KEY_LEFTSHIFT,JOY1_BUTTON6"
InputTwinJoyTurbo1 = "KEY_C,JOY1_BUTTON7"
InputTwinJoyTurbo2 = "KEY_],JOY1_BUTTON8"

; Analog joystick (e.g. Star Wars Trilogy)
InputAnalogJoyLeft = "KEY_D"             ; digital, move left
InputAnalogJoyRight = "KEY_G"           ; digital, move right
InputAnalogJoyUp = "KEY_R"                 ; digital, move up
InputAnalogJoyDown = "KEY_F"             ; digital, move down
InputAnalogJoyX = "JOY_XAXIS,MOUSE_XAXIS"   ; analog, full X axis
InputAnalogJoyY = "JOY_YAXIS,MOUSE_YAXIS"   ; analog, full Y axis
InputAnalogJoyTrigger = "KEY_LEFTCTRL,JOY_BUTTON1,MOUSE_MIDDLE_BUTTON"
InputAnalogJoyEvent = "KEY_LEFTALT,JOY_BUTTON2,MOUSE_RIGHT_BUTTON"

; Light guns
InputGunLeft = "KEY_KEYPAD4"               ; digital, move gun left
InputGunRight = "KEY_KEYPAD6"             ; digital, move gun right
InputGunUp = "KEY_KEYPAD8"                   ; digital, move gun up
InputGunDown = "KEY_KEYPAD2"               ; digital, move gun down
InputGunX = "MOUSE_XAXIS,JOY1_XAXIS"    ; analog, full X axis
InputGunY = "MOUSE_YAXIS,JOY1_YAXIS"    ; analog, full Y axis
InputTrigger = "KEY_LEFTCTRL,JOY1_BUTTON1,MOUSE_LEFT_BUTTON"
InputOffscreen = "KEY_LEFTALT,JOY1_BUTTON2,MOUSE_RIGHT_BUTTON"    ; point off-screen
InputAutoTrigger = 0                    ; automatic reload when off-screen
InputGunLeft2 = "KEY_D"
InputGunRight2 = "KEY_G"
InputGunUp2 = "KEY_R"
InputGunDown2 = "KEY_F"
InputGunX2 = "JOY2_XAXIS"
InputGunY2 = "JOY2_YAXIS"
InputTrigger2 = "KEY_A,JOY2_BUTTON1"
InputOffscreen2 = "KEY_S,JOY2_BUTTON2"
InputAutoTrigger2 = 0

LASooner
 
Posts: 4
Joined: Mon Sep 26, 2011 12:55 am

Re: Setting up custom keys

Postby nikdd » Wed Sep 28, 2011 1:35 am

Hi LASooner,

So using KEY_LEFTALT, KEY_LEFTSHIFT and KEY_LEFTCTRL fixed it for you? If so, that's good news - I'm glad it's working for you now :-) !

One thing I've just noticed in your config - the setting for "InputTwinJoyTurbo2" has "KEY_]" as a mapping - I'm not sure that is a valid mapping? I think what you need to use is "KEY_RIGHTBRACKET" instead.

Thanks for sharing your Tankstick configuration - hopefully it'll be useful for others too.

Cheers, Nik.
nikdd
 
Posts: 180
Joined: Fri Sep 02, 2011 10:39 am
Location: London

Re: Setting up custom keys

Postby LASooner » Thu Sep 29, 2011 1:39 am

Yes specifying LEFTALT, SHIFT, etc got everything working, I'll have to check the bracket command it is the last button on player 2 side and is rarely used, so I didn't notice if it was working or not.
LASooner
 
Posts: 4
Joined: Mon Sep 26, 2011 12:55 am


Return to The Fitting Room

Who is online

Users browsing this forum: No registered users and 1 guest

cron