com.badlogic.gdx.controllers.jtransc.JTranscControllerEvent Maven / Gradle / Ivy
package com.badlogic.gdx.controllers.jtransc;
import com.badlogic.gdx.controllers.PovDirection;
public class JTranscControllerEvent {
public static final int BUTTON_DOWN = 0;
public static final int BUTTON_UP = 1;
public static final int AXIS = 2;
public static final int POV = 3;
public static final int CONNECTED = 4;
public static final int DISCONNECTED = 5;
/**
* the controller the event belongs to
**/
public JTranscController controller;
/**
* the event type, see constants above
**/
public int type;
/**
* the code for the even source, e.g. button keycode, axis index
**/
public int code;
/**
* the value if this is an #AXIS, a #BUTTON_DOWN, or a #BUTTON_UP event
**/
public float amount;
/**
* the POV direction if this is a #POV event
**/
public PovDirection povDirection;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy