简体   繁体   中英

Getting input on Scene2D UI elements with non stage InputProcessor

My libgdx screen handles my input for my characters. I use Scene2D to draw the UI elements. I have a few on screen elements drawn but I can't track input on them unless I set the InputProcessor to the 'stage'.

Is there a way to overcome this and receive input on both without converting my characters into actors?

https://code.google.com/p/libgdx/wiki/InputEvent

Input Multiplexer solves this issue.

Thanks to PT

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM