- Home /
Question by
defenceplox · Jul 07, 2013 at 04:00 PM ·
getaxismain menu
Main Menu GetAxis woes
So I've been working on a main menu. As Im making my game for the Ouya, I need a main main controlled get a controller. I've got a grid of buttons set up but when I put in the input on the joystick, it keeps scrolling extremely fast through the options. Is there any way to pause the script after every input so it cant do this? Using JS.
Comment
Answer by tw1st3d · Jul 09, 2013 at 05:53 PM
I don't know the method names or anything, so here's some pseudo-code.
var isScrolling : bool = false;
function OnScroll()
{
if(!isScrolling)
{
//Do your code
isScrolling = true;
}
}
function OnEndScroll()
{
if(isScrolling)
isScrolling = false;
}
Your answer
Follow this Question
Related Questions
How to make new Axis? 2 Answers
Looping animation on rightmousebutton? 1 Answer
Shutting a function when another function calling. 1 Answer
Assigning a variable to animation 2 Answers
Network (gameobject)player list JS 0 Answers