DGLux and keyboard
Hi everyone, I was wondering if there's a way to make a list in DGLux through which you could go by using keyboard arrows. For example, you have DGLux page names listed, you click on one name in that list, it shows that page in a layout for pages, Now, when you press down arrow, it'll select the second page in the list and show it in a layout for pages, the same with other pages in the list. It seems to me that DGLux is mostly mouse and touchpad oriented.
phildunlap last edited by
In DGLux 2.5, I do not believe so. I don't think there is an event propagation model like in HTML, so there is no way built in to catch all keypresses by a single object.... but then, for almost all objects except explicit inputs it is not possible to catch any keypresses.
So, there's the hack-it-together solution: use an input with a change trigger that invokes a script. The Script would read the text input and perform any behaviors necessary then set the input back to blank if it wasn't already. You wouldn't be able to use the arrow keys, since they probably don't have a value to the input field, but you could use WADS, the num pad or something.