Getting non-ascii character events

Ah, Panda does support a generic event mode. It’s just not enabled by default. You can enable it with code like this:

NodePath btnp = get_window()->get_mouse().get_child(0);
ButtonThrower *bt = DCAST(ButtonThrower, btnp.node());
bt->set_button_down_event("generic_button");

(It’s a little unfortunate that the WindowFramework design doesn’t provide a direct handle to the ButtonThrower’s NodePath, and you have to assume it’s the child of the mouse. I’ve just added the missing interface to fix this.)

When you receive the event, you can get the first EventParameter, which will be the string that is associated with the button name.

Since Panda uses strings instead of keycodes, we can safely add support for ñ and any other keyboard-specific keys to the KeyboardButton table.

David