Forum rules - please read before posting.

Detect which control scheme via action list?

I see action list options to detect which platform the game is running on, but is there a way to detect which control scheme is running. I want to show controller button UI if the user is using Controller or Keyboard method, but not if using the Mouse & Keyboard.

Comments

  • How are you letting the player change the input method? A quick way to do this would be to just update a Global Variable's value at the same time. A PopUp variable, for example, could be set to "Mouse And Keyboard" at the same time as you update AC's input method.

    Assuming your input method change survives game exiting and restarting, you'd want this variable to be stored in options data. A similar approach is taken in the screen-resolution option tutorial.

    Otherwise, you could implement a custom Action that reads the current inputMethod, i.e.:

    AC.KickStarter.settingsManager.inputMethod
    

    I can assist if necessary, but see if the first suggestion is valid first.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.