Plastix / PixelPilot

A top down dogfighting game with pixel graphics.
0 stars 0 forks source link

Use LibGDX input multiplexers #92

Open Plastix opened 9 years ago

Plastix commented 9 years ago
InputMultiplexer multiplexer = new InputMultiplexer();
multiplexer.addProcessor(new GestureDetector(hudInputSystem));
multiplexer.addProcessor(new GestureDetector(objectInputSystem));
multiplexer.addProcessor(new GestureDetector(mapInputSystem));
Gdx.input.setInputProcessor(multiplexer);

world.setSystem(hudInputSystem);
world.setSystem(objectInputSystem);
world.setSystem(mapInputSystem);

Article source: http://www.chaonis.com/category/libgdx/