mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-25 07:05:40 +00:00
Harry Tuttle's fixes to fishing controls: invert fishing rod y and fishing stick y axis values so setting a negative axis is not necessary. Also changed reel to an analog input (similar to a pedal), whose neutral position is 0.
This commit is contained in:
parent
4ca7d5ef0e
commit
006260be47
|
@ -218,8 +218,6 @@ InputFishingRodLeft = "KEY_LEFT"
|
|||
InputFishingRodRight = "KEY_RIGHT"
|
||||
InputFishingRodUp = "KEY_UP"
|
||||
InputFishingRodDown = "KEY_DOWN"
|
||||
InputFishingReelFaster = "KEY_Q"
|
||||
InputFishingReelSlower = "KEY_E"
|
||||
InputFishingStickLeft = "KEY_A"
|
||||
InputFishingStickRight = "KEY_D"
|
||||
InputFishingStickUp = "KEY_W"
|
||||
|
@ -228,6 +226,6 @@ InputFishingRodX = "JOY1_XAXIS"
|
|||
InputFishingRodY = "JOY1_YAXIS"
|
||||
InputFishingStickX = "JOY1_RXAXIS"
|
||||
InputFishingStickY = "JOY1_RYAXIS"
|
||||
InputFishingReel = "JOY1_ZAXIS"
|
||||
InputFishingReel = "KEY_SPACE,JOY1_ZAXIS_POS"
|
||||
InputFishingCast = "KEY_Z,JOY1_BUTTON1"
|
||||
InputFishingSelect = "KEY_X,JOY1_BUTTON2"
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
|
||||
#include "Supermodel.h"
|
||||
#include "Game.h"
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
@ -256,18 +255,16 @@ CInputs::CInputs(CInputSystem *system)
|
|||
CAnalogInput *fishingRodRight = AddAnalogInput("FishingRodRight", "Rod Right", Game::INPUT_FISHING, "NONE");
|
||||
CAnalogInput *fishingRodUp = AddAnalogInput("FishingRodUp", "Rod Up", Game::INPUT_FISHING, "NONE");
|
||||
CAnalogInput *fishingRodDown = AddAnalogInput("FishingRodDown", "Rod Down", Game::INPUT_FISHING, "NONE");
|
||||
CAnalogInput *fishingReelFaster = AddAnalogInput("FishingReelFaster", "Reel Faster", Game::INPUT_FISHING, "NONE");
|
||||
CAnalogInput *fishingReelSlower = AddAnalogInput("FishingReelSlower", "Reel Slower", Game::INPUT_FISHING, "NONE");
|
||||
CAnalogInput *fishingStickLeft = AddAnalogInput("FishingStickLeft", "Stick Left", Game::INPUT_FISHING, "NONE");
|
||||
CAnalogInput *fishingStickRight = AddAnalogInput("FishingStickRight", "Stick Right", Game::INPUT_FISHING, "NONE");
|
||||
CAnalogInput *fishingStickUp = AddAnalogInput("FishingStickUp", "Stick Up", Game::INPUT_FISHING, "NONE");
|
||||
CAnalogInput *fishingStickDown = AddAnalogInput("FishingStickDown", "Stick Down", Game::INPUT_FISHING, "NONE");
|
||||
|
||||
fishingRodX = AddAxisInput( "FishingRodX", "Rod X-Axis", Game::INPUT_FISHING, "NONE", fishingRodLeft, fishingRodRight, 0, 0x80, 0xFF);
|
||||
fishingRodY = AddAxisInput( "FishingRodY", "Rod Y-Axis", Game::INPUT_FISHING, "NONE", fishingRodUp, fishingRodDown, 0xFF, 0x80, 0);
|
||||
fishingReel = AddAxisInput( "FishingReel", "Reel Speed", Game::INPUT_FISHING, "NONE", fishingReelSlower, fishingReelFaster, 0, 0x80, 0xFF);
|
||||
fishingRodY = AddAxisInput( "FishingRodY", "Rod Y-Axis", Game::INPUT_FISHING, "NONE", fishingRodUp, fishingRodDown, 0, 0x80, 0xFF);
|
||||
fishingReel = AddAnalogInput( "FishingReel", "Reel Speed", Game::INPUT_FISHING, "NONE");
|
||||
fishingStickX = AddAxisInput( "FishingStickX", "Stick X-Axis", Game::INPUT_FISHING, "NONE", fishingStickLeft, fishingStickRight, 0, 0x80, 0xFF);
|
||||
fishingStickY = AddAxisInput( "FishingStickY", "Stick Y-Axis", Game::INPUT_FISHING, "NONE", fishingStickUp, fishingStickDown, 0xFF, 0x80, 0);
|
||||
fishingStickY = AddAxisInput( "FishingStickY", "Stick Y-Axis", Game::INPUT_FISHING, "NONE", fishingStickUp, fishingStickDown, 0, 0x80, 0xFF);
|
||||
fishingCast = AddSwitchInput( "FishingCast", "Cast", Game::INPUT_FISHING, "NONE");
|
||||
fishingSelect = AddSwitchInput( "FishingSelect", "Select", Game::INPUT_FISHING, "NONE");
|
||||
}
|
||||
|
|
|
@ -224,7 +224,7 @@ public:
|
|||
// Sega Bass Fishing controls
|
||||
CAxisInput *fishingRodX;
|
||||
CAxisInput *fishingRodY;
|
||||
CAxisInput *fishingReel;
|
||||
CAnalogInput *fishingReel;
|
||||
CAxisInput *fishingStickX;
|
||||
CAxisInput *fishingStickY;
|
||||
CSwitchInput *fishingCast;
|
||||
|
|
Loading…
Reference in a new issue