orxInput_IsActive("Action") is not working for me

edited May 2013 in Help request
I looked at resources project and copied its orxInput action model:

orxSTATUS orxFASTCALL Run()
{
    orxSTATUS eResult = orxSTATUS_SUCCESS;
    if (orxInput_HasNewStatus("Action") && orxInput_IsActive("Action")) {
        orxLOG("Action is active");

However, mine never gets to execute orxLog line inside if statement.

I can't find anywhere where resources project sets name "Action" in its INI file.

I even made sure that my INI file has no [Input] section.

Comments

  • edited May 2013
    In the Resource example, the inputs, including Action, are defined in the root config file.
  • edited May 2013
    Thanks. It all makes sense now. For a while I thought that action was some built-in name.
  • edited May 2013
    Nope, there are no built-in input names. :)
    (However there are hidden input sets running in the background for handling the console and the profiler.)
Sign In or Register to comment.