keyboard character input?
george
06 Dec 2013, 01:57Another recent thread made me wonder if Quest supports character-mode input (i.e. you press a key and it inputs automatically without you pressing the enter key). I did some searching here and didn't find anything. so does anyone know if this is possible or if it's been done? If Quest doesn't support it natively what is the JS workaround?

Pertex
06 Dec 2013, 06:50How do you want to use this feature? Some keys like "arrowup" or "arrowdown" do have such a behaviour
george
06 Dec 2013, 15:10Take a look at the image in the first post of this thread, viewtopic.php?f=10&t=4035 , and imagine it used only with keyboard characters like the arrow keys and enter (even though the OPer there wants to use the mouse, I'm curious if it can be done with keyboard).

jaynabonne
07 Dec 2013, 11:00Attached is one way to do it. It has a simple JavaScript function that hooks the keyboard on the GameContent element and sends an ASLEvent to the passed function when any key is pressed (including things like Shift and Control). Perhaps that can be modified for your needs. Note that you get keys always, even if the user is entering commands into the command line.
george
07 Dec 2013, 18:51Perfect example Jay, thanks!