Java Code Examples for com.badlogic.gdx.scenes.scene2d.InputEvent#stop()
The following examples show how to use
com.badlogic.gdx.scenes.scene2d.InputEvent#stop() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PatchGrid.java From gdx-texture-packer-gui with Apache License 2.0 | 6 votes |
@Override public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) { if (button==0) { for (PatchLine patchLine : patchLines) { if (patchLine.hovered) { draggingLines.add(patchLine); patchLine.startDragging(x, y); } } if (draggingLines.size > 0) { event.handle(); event.stop(); return true; } } return false; }
Example 2
Source File: PreviewPane.java From gdx-skineditor with Apache License 2.0 | 4 votes |
@Override public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { event.stop(); return false; }