Author Topic: UIButtonKeys does not work with Xbox 360 Dpad  (Read 3812 times)

Disastercake

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 87
  • www.disastercake.com
    • View Profile
    • Disastercake
UIButtonKeys does not work with Xbox 360 Dpad
« 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?
Creator of Soul Saga.
http://www.disastercake.com

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIButtonKeys does not work with Xbox 360 Dpad
« Reply #1 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.

Dreamzle

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: UIButtonKeys does not work with Xbox 360 Dpad
« Reply #2 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIButtonKeys does not work with Xbox 360 Dpad
« Reply #3 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.