ashea-code / BLUI

Rich HTML UI engine for UE4
MIT License
860 stars 258 forks source link

How to get keyboard input? #16

Closed gotwig closed 9 years ago

gotwig commented 9 years ago

I really dont know how?

It seems the two events Get Key Down and Get Event Char are needed, however I dont find a widget which provides those.

ashea-code commented 9 years ago

My suggestion would be to create separate widgets for each web panel you are tying to do, and overriding their key input

gotwig commented 9 years ago

so basicly creating your own UWidget or what? I dont know how to do this.

ashea-code commented 9 years ago

Just creating a new User Widget in editor, spawning those instead of trying to do everything inside one HUD widget

Then handle mouse events in each of them separately. If you want to keep it one Widget you'll need to do some math to figure out the correct x,y coordinate to give to BLUI