package com.xugame.app;

import com.xugame.bean.InputCode;
import com.xugame.bean.InputDescriptorBean;

public class AppSystem {
    public static final int MAX_USERS = 16;

    public static final int DEVICE_NONE = 0;
    public static final int DEVICE_JOYPAD = 1;
    public static final int DEVICE_ANALOG = 5;

    public static final int DEVICE_ID_JOYPAD_B = 0;
    public static final int DEVICE_ID_JOYPAD_Y = 1;
    public static final int DEVICE_ID_JOYPAD_SELECT = 2;
    public static final int DEVICE_ID_JOYPAD_START = 3;
    public static final int DEVICE_ID_JOYPAD_UP = 4;
    public static final int DEVICE_ID_JOYPAD_DOWN = 5;
    public static final int DEVICE_ID_JOYPAD_LEFT = 6;
    public static final int DEVICE_ID_JOYPAD_RIGHT = 7;
    public static final int DEVICE_ID_JOYPAD_A = 8;
    public static final int DEVICE_ID_JOYPAD_X = 9;
    public static final int DEVICE_ID_JOYPAD_L = 10;
    public static final int DEVICE_ID_JOYPAD_R = 11;
    public static final int DEVICE_ID_JOYPAD_L2 = 12;
    public static final int DEVICE_ID_JOYPAD_R2 = 13;
    public static final int DEVICE_ID_JOYPAD_L3 = 14;
    public static final int DEVICE_ID_JOYPAD_R3 = 15;

    public static final int DEVICE_ID_ANALOG_X = 0;
    public static final int DEVICE_ID_ANALOG_Y = 1;

    public static final int DEVICE_INDEX_ANALOG_LEFT = 0;
    public static final int DEVICE_INDEX_ANALOG_RIGHT = 1;
    public static final int DEVICE_INDEX_ANALOG_BUTTON = 2;

    public String[][] inputDescriptors;
    public boolean hasInputDescriptors;

    public AppSystem() {
        this.inputDescriptors = new String[MAX_USERS][InputCode.INPUT_CODE_END];
        this.hasInputDescriptors = false;
    }
}
