Menu Problem
FreshlyMinted
Member Posts: 14
So I'm making a menu and I am using a keyboard interface to move around a little highlighter icon around the screen to show the user what option they currently have highlighted.
I'm using a bunch of position checkers to see where the highlighter icon is on the screen and using that information to control where it moves for a given keypress event.
The problem that I'm running into is that for some menu instances I need the menu to be at least 3 high and when the keypress event happens, the move is instantaneous and so it recognizes "both" screen positions at once. I solved it by making the menu items incremental in y position, but in the future if I were to want to use menu items that were not in perfect intervals, what would be the best solution?
I'm using a bunch of position checkers to see where the highlighter icon is on the screen and using that information to control where it moves for a given keypress event.
The problem that I'm running into is that for some menu instances I need the menu to be at least 3 high and when the keypress event happens, the move is instantaneous and so it recognizes "both" screen positions at once. I solved it by making the menu items incremental in y position, but in the future if I were to want to use menu items that were not in perfect intervals, what would be the best solution?
Comments