Get curent rebinded input for an action ?

#1
How to get the curent rebinded key for an action ?

for example:

i know how to get the defaut input for an action with the code:

Code: Select all

const char* CurrentInput = pProfile->GetActionMap("player")->GetAction(CCryName(action))->GetActionInput(0)->input;
and i know how to rebind an action with the code:

Code: Select all

pProfile->GetActionMap("player")->ReBindActionInput(CCryName(action), CurrentInput, NewInput);
but how to get the curent rebinded key ? something like "GetRebindedAction..."

ty
ManuKor
www.HeathenGame.com
Image

Re: Get curent rebinded input for an action ?

#2
Hi, I do not know if I understood what you want, but if your intention and recovered a modified action just make a new query, every action and consulted by the actionid performing the rebind this id will not change.

Code: Select all

const char* input = pActionMapManager->GetActionMap("player")->GetAction(CCryName("moveleft"))->GetActionInput(0)->input; // input = "a" | where "moveleft" is id pActionMapManager->GetActionMap("player")->ReBindActionInput(CCryName("moveleft"), input, "q"); const char* input2 = pActionMapManager->GetActionMap("player")->GetAction(CCryName("moveleft"))->GetActionInput(0)->input; // input2 = "q"
I hope I have helped.

Who is online

Users browsing this forum: No registered users and 3 guests