Hello. I am having a slight problem with the oapiOpenInputBox function.
resetRef() simply updates the reference of a thruster. The problem is, tV DOES get inputed with the vector the user enters, however resetRef() doesn't update the thruster position until the next time you press SHIFT + R. This makes me wonder if oapiOpenInputBox really opens the modal dialog at the end of the timestep or something. How does this exactly work?
Code:
// in consumekeybuffered
case OAPI_KEY_R:
{
oapiOpenInputBox("Enter new ref", VectorInput, 0, 20, &v->tV);
v->resetRef();
return true;
}
resetRef() simply updates the reference of a thruster. The problem is, tV DOES get inputed with the vector the user enters, however resetRef() doesn't update the thruster position until the next time you press SHIFT + R. This makes me wonder if oapiOpenInputBox really opens the modal dialog at the end of the timestep or something. How does this exactly work?