mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-30 01:25:49 +00:00
8835d6fe36
- hooked up the remaining controls in Supermodel (except for Magical Truck Adventure which does not work at all yet). The new controls are: * InputAnalogJoyTrigger2 and InputAnalogJoyEvent2 for the additional second trigger and event buttons that were missing from Star Wars Trilogy, * InputRearBrake and InputMusicSelect for the rear brake and music selection buttons that were missing from Harley Davidson, * InputAnalogGunXXX, InputAnalogTriggerXXX, InputAnalogGunXXX2 and InputAnalogTriggerXXX2 for the analogue guns of Ocean Hunter and LA Machineguns (NOTE: these controls must be calibrated in the games' service menus otherwise they will not work properly. Also, the alignment of the gun cursor does not line up very well with the mouse position at the moment, but at least the games are a bit more playable now, although still with numerous graphical glitches...) * InputSkiXXX for the controls of Ski Champ, making the game playable now. - hooked up existing InputViewChange control to Harley Davidson's view change button - improved the handling of InputGearShiftUp/Down inputs so that they work better with the driving games. With Dirt Devils, ECA, Harley and LeMans this means they map directly to the game's own shift up/down controls, while with the 4-speed games such as Daytona 2, Scud Racer and Sega Rally 2, they simulate the user shifting up and down through the gears - added defaults for the new controls to Supermodel.ini - other small code tweaks: * fix small bug with handling of pos/neg inputs mapping to a control with inverted range (0XFF to 0x00) - this was needed to get Ski Champ's X-axis to work properly * removed Wait method from InputSystem and added to CThread as CThread::Sleep instead * added FrameTimings struct to hold all frame timings in a single place No networking code yet as just haven't had a chance to work on it since initial progress at the beginning of the year - am *hoping* might have some time to pick it up again over Christmas...
204 lines
6.9 KiB
INI
204 lines
6.9 KiB
INI
;;
|
|
;; Supermodel Configuration File
|
|
;; Default settings for Version 0.2a.
|
|
;;
|
|
|
|
|
|
;
|
|
; Quick Overview
|
|
; --------------
|
|
;
|
|
; All settings are case sensitive. Numbers must be 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_5"
|
|
InputServiceB = "KEY_7"
|
|
InputTestA = "KEY_6"
|
|
InputTestB = "KEY_8"
|
|
|
|
; 4-way digital joysticks
|
|
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"
|
|
|
|
; Fighting game buttons
|
|
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"
|
|
|
|
; Spikeout buttons
|
|
InputShift = "KEY_A,JOY1_BUTTON1"
|
|
InputBeat = "KEY_S,JOY1_BUTTON2"
|
|
InputCharge = "KEY_D,JOY1_BUTTON3"
|
|
InputJump = "KEY_F,JOY1_BUTTON4"
|
|
|
|
; Virtua Striker buttons
|
|
InputShortPass = "KEY_A,JOY1_BUTTON1"
|
|
InputLongPass = "KEY_S,JOY1_BUTTON2"
|
|
InputShoot = "KEY_D,JOY1_BUTTON3"
|
|
InputShortPass2 = "JOY2_BUTTON1"
|
|
InputLongPass2 = "JOY2_BUTTON2"
|
|
InputShoot2 = "JOY2_BUTTON3"
|
|
|
|
; Steering wheel
|
|
InputSteeringLeft = "KEY_LEFT" ; digital, turn wheel left
|
|
InputSteeringRight = "KEY_RIGHT" ; digital, turn wheel right
|
|
InputSteering = "JOY1_XAXIS" ; analog, full steering range
|
|
|
|
; Pedals
|
|
InputAccelerator = "KEY_UP,JOY1_UP"
|
|
InputBrake = "KEY_DOWN,JOY1_DOWN"
|
|
|
|
; Up/down shifter manual transmission (all racers)
|
|
InputGearShiftUp = "KEY_Y" ; sequential shift up
|
|
InputGearShiftDown = "KEY_H" ; sequential shift down
|
|
|
|
; 4-Speed manual transmission (Daytona 2, Sega Rally 2, Scud Race)
|
|
InputGearShift1 = "KEY_Q,JOY1_BUTTON5"
|
|
InputGearShift2 = "KEY_W,JOY1_BUTTON6"
|
|
InputGearShift3 = "KEY_E,JOY1_BUTTON7"
|
|
InputGearShift4 = "KEY_R,JOY1_BUTTON8"
|
|
InputGearShiftN = "KEY_T"
|
|
|
|
; VR4 view change buttons (Daytona 2, Le Mans 24, Scud Race)
|
|
InputVR1 = "KEY_A,JOY1_BUTTON1"
|
|
InputVR2 = "KEY_S,JOY1_BUTTON2"
|
|
InputVR3 = "KEY_D,JOY1_BUTTON3"
|
|
InputVR4 = "KEY_F,JOY1_BUTTON4"
|
|
|
|
; Single view change button (Dirt Devils, ECA, Harley-Davidson, Sega Rally 2)
|
|
InputViewChange = "KEY_A,JOY1_BUTTON1"
|
|
|
|
; Handbrake (Dirt Devils, Sega Rally 2)
|
|
InputHandBrake = "KEY_S,JOY1_BUTTON2"
|
|
|
|
; Harley-Davidson controls
|
|
InputRearBrake = "KEY_S,JOY1_BUTTON2"
|
|
InputMusicSelect = "KEY_D,JOY1_BUTTON3"
|
|
|
|
; 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 = "NONE"
|
|
InputTwinJoyLeft2 = "NONE"
|
|
InputTwinJoyRight1 = "NONE"
|
|
InputTwinJoyRight2 = "NONE"
|
|
InputTwinJoyUp1 = "NONE"
|
|
InputTwinJoyUp2 = "NONE"
|
|
InputTwinJoyDown1 = "NONE"
|
|
InputTwinJoyDown2 = "NONE"
|
|
|
|
; Virtual On buttons
|
|
InputTwinJoyShot1 = "KEY_A,JOY1_BUTTON5"
|
|
InputTwinJoyShot2 = "KEY_S,JOY1_BUTTON6"
|
|
InputTwinJoyTurbo1 = "KEY_Z,JOY1_BUTTON7"
|
|
InputTwinJoyTurbo2 = "KEY_X,JOY1_BUTTON8"
|
|
|
|
; Analog joystick (Star Wars Trilogy)
|
|
InputAnalogJoyLeft = "KEY_LEFT" ; digital, move left
|
|
InputAnalogJoyRight = "KEY_RIGHT" ; digital, move right
|
|
InputAnalogJoyUp = "KEY_UP" ; digital, move up
|
|
InputAnalogJoyDown = "KEY_DOWN" ; digital, move down
|
|
InputAnalogJoyX = "JOY_XAXIS,MOUSE_XAXIS" ; analog, full X axis
|
|
InputAnalogJoyY = "JOY_YAXIS,MOUSE_YAXIS" ; analog, full Y axis
|
|
InputAnalogJoyTrigger = "KEY_A,JOY_BUTTON1,MOUSE_LEFT_BUTTON"
|
|
InputAnalogJoyEvent = "KEY_S,JOY_BUTTON2,MOUSE_RIGHT_BUTTON"
|
|
InputAnalogJoyTrigger2 = "KEY_D,JOY_BUTTON2"
|
|
InputAnalogJoyEvent2 = "NONE"
|
|
|
|
; Light guns (Lost World)
|
|
InputGunLeft = "KEY_LEFT" ; digital, move gun left
|
|
InputGunRight = "KEY_RIGHT" ; digital, move gun right
|
|
InputGunUp = "KEY_UP" ; digital, move gun up
|
|
InputGunDown = "KEY_DOWN" ; digital, move gun down
|
|
InputGunX = "MOUSE_XAXIS,JOY1_XAXIS" ; analog, full X axis
|
|
InputGunY = "MOUSE_YAXIS,JOY1_YAXIS" ; analog, full Y axis
|
|
InputTrigger = "KEY_A,JOY1_BUTTON1,MOUSE_LEFT_BUTTON"
|
|
InputOffscreen = "KEY_S,JOY1_BUTTON2,MOUSE_RIGHT_BUTTON" ; point off-screen
|
|
InputAutoTrigger = 0 ; automatic reload when off-screen
|
|
InputGunLeft2 = "NONE"
|
|
InputGunRight2 = "NONE"
|
|
InputGunUp2 = "NONE"
|
|
InputGunDown2 = "NONE"
|
|
InputGunX2 = "JOY2_XAXIS"
|
|
InputGunY2 = "JOY2_YAXIS"
|
|
InputTrigger2 = "JOY2_BUTTON1"
|
|
InputOffscreen2 = "JOY2_BUTTON2"
|
|
InputAutoTrigger2 = 0
|
|
|
|
; Analog guns (Ocean Hunter, LA Machineguns)
|
|
InputAnalogGunLeft = "KEY_LEFT" ; digital, move gun left
|
|
InputAnalogGunRight = "KEY_RIGHT" ; digital, move gun right
|
|
InputAnalogGunUp = "KEY_UP" ; digital, move gun up
|
|
InputAnalogGunDown = "KEY_DOWN" ; digital, move gun down
|
|
InputAnalogGunX = "MOUSE_XAXIS,JOY1_XAXIS" ; analog, full X axis
|
|
InputAnalogGunY = "MOUSE_YAXIS,JOY1_YAXIS" ; analog, full Y axis
|
|
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"
|
|
|
|
; Ski Champ controls
|
|
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" |