Author Topic: Ignore controller  (Read 3296 times)

jcbadboy

  • Newbie
  • *
  • Thank You
  • -Given: 7
  • -Receive: 0
  • Posts: 9
    • View Profile
Ignore controller
« on: February 22, 2016, 04:36:19 PM »
Guys, i´m trying to ignore joystick from script. At run time, I tryed to set uicamera to ignore joystick inputs without success.
How i would do that:

UICamera.ignoreControllerInput = true;

or

UICamera.current.useController = false;

or

UICamera.disableController = true

or what?


thanks
« Last Edit: February 22, 2016, 05:27:34 PM by jcbadboy »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Ignore controller
« Reply #1 on: February 22, 2016, 07:20:15 PM »
In most cases you should be using:
  1. UICamera.disableController = true;
UICamera.ignoreControllerInput is set by passing -noJoystick parameter to your application.