[XInput] RJoyStick working, need to do vanilla acceleration and sensitivity

This commit is contained in:
INeedBots 2021-01-03 00:32:58 -06:00
parent 75d6be1939
commit 198a39c3db
3 changed files with 7 additions and 0 deletions

View File

@ -43,6 +43,9 @@ namespace Components
cmd->rightmove = static_cast<BYTE>(xiState->Gamepad.sThumbLX / 256);
cmd->forwardmove = static_cast<BYTE>(xiState->Gamepad.sThumbLY / 256);
Game::cl_angles[0] -= (xiState->Gamepad.sThumbRY / 32767.0f);
Game::cl_angles[1] -= (xiState->Gamepad.sThumbRX / 32767.0f);
}
}

View File

@ -349,6 +349,8 @@ namespace Game
source_t **sourceFiles = reinterpret_cast<source_t **>(0x7C4A98);
keywordHash_t **menuParseKeywordHash = reinterpret_cast<keywordHash_t **>(0x63AE928);
float* cl_angles = reinterpret_cast<float*>(0xB2F8D0);
int* svs_time = reinterpret_cast<int*>(0x31D9384);
int* svs_numclients = reinterpret_cast<int*>(0x31D938C);
client_t* svs_clients = reinterpret_cast<client_t*>(0x31D9390);

View File

@ -790,6 +790,8 @@ namespace Game
extern cmd_function_t** cmd_functions;
extern float* cl_angles;
extern int* svs_time;
extern int* svs_numclients;
extern client_t* svs_clients;