Jump to content

[SOLVED] Key press events


photo

Recommended Posts

Hello

 

Is there a way to forward any keyboard input to a custom c++ plugin?

The external plugins renders a webpage with the possibility to insert data (text).

 

We need now a way to pass each key-event by itself to the plugin.

 

These two condition we have:

 

- Event is send when a key is pressed

- Event is send when a key is released

 

I found UnigineApp::getKeyState but this not event based and seems the wrong direction.

 

Thanks

Manuel

Link to comment

Set a script based handler to the engine.gui.setKeyPressCallback() function and pass a key into the external function.

It the handler function returns 1 the engine key processing will be terminated.

Link to comment
×
×
  • Create New...