Author Topic: UISlider & Game Controller  (Read 2909 times)

mmuller

  • Guest
UISlider & Game Controller
« on: January 24, 2013, 07:37:00 AM »
Quick question: is there a built in utility to affect the value of the slider when using a gamecontroller - ie: once highlighted using UIButtonKeys, is it possible to use the left/right to add/reduce the value of the slider?

If not I'm guessing its time to break out some custom events to listen for those keys if highlighted?

Regards,

Mark

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UISlider & Game Controller
« Reply #1 on: January 24, 2013, 09:53:04 AM »
Sliders already respond to that. Check the controller menu example that comes with NGUI.

mmuller

  • Guest
Re: UISlider & Game Controller
« Reply #2 on: January 24, 2013, 11:12:37 AM »
Sweet, sorry I was flying solo in preparation of putting my app out on the new GameStick device - which wont be delivered until March... Does the draggable panel also respond to up/down scrolling too by any chance?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UISlider & Game Controller
« Reply #3 on: January 24, 2013, 11:43:30 AM »
No, not the draggable panel.

mmuller

  • Guest
Re: UISlider & Game Controller
« Reply #4 on: January 24, 2013, 11:55:47 AM »
Okay, I'll have a play and see what I can come up with. Would be nice to be able to scroll my panels using the controller pad up and down