Page 1 of 1

Integrating Input System

Posted: Mon Dec 31, 2018 10:51 pm
by Lyton
Hey I just had a question about integrating a couple of systems I have created already for my game. Primarily wanted to integrate my input scripts that work with another asset, InControl. I was wondering if you could lead me in the right direction to integrate it with your Dialogue Manager.

Re: Integrating Input System

Posted: Tue Jan 01, 2019 9:35 am
by Tony Li
Hi,

The Dialogue Manager GameObject has an InputDeviceManager script with two delegate functions:
  • InputDeviceManager.IsButtonDown(string buttonName)
  • InputDeviceManager.GetAxis(string axisName)
By default, InputDeviceManager.IsButtonDown reads Input.GetButtonDown, and InputDeviceManager.GetAxis reads Input.GetAxis. Simply assign functions to read from InControl instead.