mirror of
https://github.com/coah80/LegacyVulkEdition.git
synced 2026-07-18 22:48:08 +00:00
controls menu uses the real art now
Made-with: Cursor
This commit is contained in:
@@ -10,20 +10,66 @@ extern "C" void AppleInput_HandleKey(int, int) {}
|
||||
|
||||
C_4JInput InputManager;
|
||||
|
||||
void C_4JInput::Initialise(int iInputStateC, unsigned char ucMapC, unsigned char ucActionC, unsigned char ucMenuActionC) {}
|
||||
static unsigned int g_stubJoypadMaps[8][256] = {};
|
||||
static unsigned char g_stubJoypadMapVals[XUSER_MAX_COUNT] = {};
|
||||
static unsigned int g_stubAxisMaps[XUSER_MAX_COUNT][4] = {};
|
||||
static unsigned int g_stubTriggerMaps[XUSER_MAX_COUNT][2] = {};
|
||||
|
||||
void C_4JInput::Initialise(int iInputStateC, unsigned char ucMapC, unsigned char ucActionC, unsigned char ucMenuActionC)
|
||||
{
|
||||
for (int map = 0; map < 8; ++map) {
|
||||
for (int action = 0; action < 256; ++action) {
|
||||
g_stubJoypadMaps[map][action] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
for (int iPad = 0; iPad < XUSER_MAX_COUNT; ++iPad) {
|
||||
g_stubJoypadMapVals[iPad] = 0;
|
||||
g_stubAxisMaps[iPad][AXIS_MAP_LX] = AXIS_MAP_LX;
|
||||
g_stubAxisMaps[iPad][AXIS_MAP_LY] = AXIS_MAP_LY;
|
||||
g_stubAxisMaps[iPad][AXIS_MAP_RX] = AXIS_MAP_RX;
|
||||
g_stubAxisMaps[iPad][AXIS_MAP_RY] = AXIS_MAP_RY;
|
||||
g_stubTriggerMaps[iPad][TRIGGER_MAP_0] = TRIGGER_MAP_0;
|
||||
g_stubTriggerMaps[iPad][TRIGGER_MAP_1] = TRIGGER_MAP_1;
|
||||
}
|
||||
}
|
||||
void C_4JInput::Tick(void) {}
|
||||
void C_4JInput::SetDeadzoneAndMovementRange(unsigned int uiDeadzone, unsigned int uiMovementRangeMax) {}
|
||||
void C_4JInput::SetGameJoypadMaps(unsigned char ucMap, unsigned char ucAction, unsigned int uiActionVal) {}
|
||||
unsigned int C_4JInput::GetGameJoypadMaps(unsigned char ucMap, unsigned char ucAction) { return 0; }
|
||||
void C_4JInput::SetJoypadMapVal(int iPad, unsigned char ucMap) {}
|
||||
unsigned char C_4JInput::GetJoypadMapVal(int iPad) { return 0; }
|
||||
void C_4JInput::SetGameJoypadMaps(unsigned char ucMap, unsigned char ucAction, unsigned int uiActionVal)
|
||||
{
|
||||
if (ucMap >= 8) return;
|
||||
g_stubJoypadMaps[ucMap][ucAction] = uiActionVal;
|
||||
}
|
||||
unsigned int C_4JInput::GetGameJoypadMaps(unsigned char ucMap, unsigned char ucAction)
|
||||
{
|
||||
if (ucMap >= 8) return 0;
|
||||
return g_stubJoypadMaps[ucMap][ucAction];
|
||||
}
|
||||
void C_4JInput::SetJoypadMapVal(int iPad, unsigned char ucMap)
|
||||
{
|
||||
if (iPad < 0 || iPad >= XUSER_MAX_COUNT) return;
|
||||
g_stubJoypadMapVals[iPad] = ucMap;
|
||||
}
|
||||
unsigned char C_4JInput::GetJoypadMapVal(int iPad)
|
||||
{
|
||||
if (iPad < 0 || iPad >= XUSER_MAX_COUNT) return 0;
|
||||
return g_stubJoypadMapVals[iPad];
|
||||
}
|
||||
void C_4JInput::SetJoypadSensitivity(int iPad, float fSensitivity) {}
|
||||
unsigned int C_4JInput::GetValue(int iPad, unsigned char ucAction, bool bRepeat) { return 0; }
|
||||
bool C_4JInput::ButtonPressed(int iPad, unsigned char ucAction) { return false; }
|
||||
bool C_4JInput::ButtonReleased(int iPad, unsigned char ucAction) { return false; }
|
||||
bool C_4JInput::ButtonDown(int iPad, unsigned char ucAction) { return false; }
|
||||
void C_4JInput::SetJoypadStickAxisMap(int iPad, unsigned int uiFrom, unsigned int uiTo) {}
|
||||
void C_4JInput::SetJoypadStickTriggerMap(int iPad, unsigned int uiFrom, unsigned int uiTo) {}
|
||||
void C_4JInput::SetJoypadStickAxisMap(int iPad, unsigned int uiFrom, unsigned int uiTo)
|
||||
{
|
||||
if (iPad < 0 || iPad >= XUSER_MAX_COUNT || uiFrom >= 4) return;
|
||||
g_stubAxisMaps[iPad][uiFrom] = uiTo;
|
||||
}
|
||||
void C_4JInput::SetJoypadStickTriggerMap(int iPad, unsigned int uiFrom, unsigned int uiTo)
|
||||
{
|
||||
if (iPad < 0 || iPad >= XUSER_MAX_COUNT || uiFrom >= 2) return;
|
||||
g_stubTriggerMaps[iPad][uiFrom] = uiTo;
|
||||
}
|
||||
void C_4JInput::SetKeyRepeatRate(float fRepeatDelaySecs, float fRepeatRateSecs) {}
|
||||
void C_4JInput::SetDebugSequence(const char *chSequenceA, int (*Func)(LPVOID), LPVOID lpParam) {}
|
||||
FLOAT C_4JInput::GetIdleSeconds(int iPad) { return 0.0f; }
|
||||
|
||||
Reference in New Issue
Block a user