Arrow Keys

I’d like to use the arrow keys to control my avatar’s movement.

I’ve managed to do this for “letter keys” with the following:

framework.define_key("w", "w-down", moveFW, 0);

If I want to use an arrow key, what should I use instead of “w”?

As described on the “Keyboard Support” manual page, you can use keynames “arrow_up”, “arrow_down”, “arrow_left”, and “arrow_right”.

David

Thanks, as soon as I sent the message I found the code in PandaFramework.h :blush:

What about if I want to use the number keys - are they implemented?

As described on the “Keyboard Support” manual page, yes they are.

David

Thanks, I hadn’t seen that page.