com.badlogic.gdx.graphics.Cursor.SystemCursor Java Examples

The following examples show how to use com.badlogic.gdx.graphics.Cursor.SystemCursor. 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: IbeamListener.java    From skin-composer with MIT License 4 votes vote down vote up
@Override
public void exit(InputEvent event, float x, float y, int pointer, Actor toActor) {
    if (pointer == -1) {
        Gdx.graphics.setSystemCursor(SystemCursor.Arrow);
    }
}
 
Example #2
Source File: IbeamListener.java    From skin-composer with MIT License 4 votes vote down vote up
@Override
public void enter(InputEvent event, float x, float y, int pointer, Actor fromActor) {
    if (!(event.getListenerActor() instanceof Disableable) || !((Disableable) event.getListenerActor()).isDisabled())
        Gdx.graphics.setSystemCursor(SystemCursor.Ibeam);
}
 
Example #3
Source File: IOSMini2DxGraphics.java    From mini2Dx with Apache License 2.0 4 votes vote down vote up
@Override
public void setSystemCursor (SystemCursor systemCursor) {
}
 
Example #4
Source File: Lwjgl3Mini2DxGraphics.java    From mini2Dx with Apache License 2.0 4 votes vote down vote up
@Override
public void setSystemCursor(SystemCursor systemCursor) {
	Lwjgl3Mini2DxCursor.setSystemCursor(getWindow().getWindowHandle(), systemCursor);
}