Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Disastercake on January 18, 2014, 07:35:04 PM

Title: UIButtonKeys does not work with Xbox 360 Dpad
Post by: Disastercake on January 18, 2014, 07:35:04 PM
Currently the UIButtonkeys does not register the Dpad on the Xbox 360 controller for the navigation of the menu.  I'm not sure if this was a design choice or an oversight, but I personally can't think of a commercial game that doesn't allow menu navigation with the dpad (some actually only use the Dpad for menus).  This is an easy fix on my end by just adding the Dpad keys to the input checks in UICamera, but it's a fix I have to make every update.  Is it possible to include it in the base code?
Title: Re: UIButtonKeys does not work with Xbox 360 Dpad
Post by: ArenMook on January 18, 2014, 09:55:57 PM
You need to add that logic yourself as it's not a standard method of input. Keep in mind that 360 controller axes differ from platform from platform. Windows is different from OSX, and from Linux.
Title: Re: UIButtonKeys does not work with Xbox 360 Dpad
Post by: Dreamzle on July 24, 2014, 11:19:05 AM
I second this old request (but now with UIKey Navigation) - it is standard UI design to control the UI with the d-pad, at first I thought the UIKey Navigation wasn't working at all because it wasn't responding to the d-pad.
Title: Re: UIButtonKeys does not work with Xbox 360 Dpad
Post by: ArenMook on July 25, 2014, 01:51:39 AM
Just change the axes used by UICamera, Dreamzle. It uses Horizontal and Vertical axes by default, so just select it and change the values in inspector to ones that map to your D-Pad.