Java 类com.badlogic.gdx.controllers.ControlType 实例源码
项目:libgdxcn
文件:OisControllers.java
public int getControlCount (ControlType type) {
switch (type) {
case button:
return joystick.getButtonCount();
case axis:
return joystick.getAxisCount();
case slider:
return joystick.getSliderCount();
case pov:
return joystick.getPovCount();
}
return 0;
}
项目:shadow-engine
文件:OisControllers.java
public int getControlCount (ControlType type) {
switch (type) {
case button:
return joystick.getButtonCount();
case axis:
return joystick.getAxisCount();
case slider:
return joystick.getSliderCount();
case pov:
return joystick.getPovCount();
}
return 0;
}