java - LibGDX, Need click event in portable application and in Stage, how? -


i creating video game libgdx, need have 2 click events, 1 on stage object, other on window.

when add stage on init method :

gdx.input.setinputprocessor(stage); 

the event onclick inherited portable application disabled...

is there solution problem ?

thank !

use gdx.input.setinputprocessor(new inputmultiplexer(otherinputprocessor, stage)); swap order of 2 if want stage take precedence.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo