Author Topic: NGUI disable joystick.  (Read 3446 times)

vidjogamer

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 48
    • View Profile
NGUI disable joystick.
« on: December 18, 2013, 01:13:23 PM »
I am using NGUI + cInput to allow users to calibrate their inputs. However it seems as thought NGUI(or at least Starlink) uses joystick 1 button 0 by default to click the focused button.

The problem:
User clicks button to bind an input to an action.
cInput starts scanning inputs.
User presses joystick 1 button 0
cInput briefly binds the input to the appropriate actions
NGUI uses the joystick input to click the button again
repeat


Is that indeed what is going on? How can I disable that functionality?

vidjogamer

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 48
    • View Profile
Re: NGUI disable joystick.
« Reply #1 on: December 18, 2013, 01:53:43 PM »
Ok! That is indeed what was going on!

The UICamera class has options to disable events from certain inputs as well as which axes and keys are used for Submit, Cancel, etc, actions!