package com.xugame.bean;

import android.view.KeyEvent;

public class InputCode {
    public static class JoypadBindSet {
        // Joypad
        public static final int JOYPAD_BIND_START = 0;

        public static final int JOYPAD_B = 0;
        public static final int JOYPAD_Y = 1;
        public static final int JOYPAD_SELECT = 2;
        public static final int JOYPAD_START = 3;
        public static final int JOYPAD_UP = 4;
        public static final int JOYPAD_DOWN = 5;     
        public static final int JOYPAD_LEFT = 6;     
        public static final int JOYPAD_RIGHT = 7;
        public static final int JOYPAD_A = 8;        
        public static final int JOYPAD_X = 9;        
        public static final int JOYPAD_L = 10;       
        public static final int JOYPAD_R = 11;
        public static final int JOYPAD_L2 = 12;      
        public static final int JOYPAD_R2 = 13;      
        public static final int JOYPAD_L3 = 14;      
        public static final int JOYPAD_R3 = 15;

        public static final int JOYPAD_BIND_END = 16;
    }

    public static class AnalogBindSet {
        // Analog
        public static final int LIGHTGUN_BIND_START = 16;

        public static final int ANALOG_LEFT_X_PLUS = 16;
        public static final int ANALOG_LEFT_X_MINUS = 17;
        public static final int ANALOG_LEFT_Y_PLUS = 18;
        public static final int ANALOG_LEFT_Y_MINUS = 19;
        public static final int ANALOG_RIGHT_X_PLUS = 20;
        public static final int ANALOG_RIGHT_X_MINUS = 21;
        public static final int ANALOG_RIGHT_Y_PLUS = 22;
        public static final int ANALOG_RIGHT_Y_MINUS = 23;
        public static final int ANALOG_BIND_LIST_END = 24;

        public static final int ANALOG_BIND_END = 25;
    }

    public static class LightgunBindSet {
        public static final int LIGHTGUN_BIND_START = 37;

        public static final int LIGHTGUN_TRIGGER = 25;
        public static final int LIGHTGUN_RELOAD = 26;
        public static final int LIGHTGUN_AUX_A = 27;
        public static final int LIGHTGUN_AUX_B = 28;
        public static final int LIGHTGUN_AUX_C = 29;
        public static final int LIGHTGUN_START = 30;
        public static final int LIGHTGUN_SELECT = 31;
        public static final int LIGHTGUN_DPAD_UP = 32;
        public static final int LIGHTGUN_DPAD_DOWN = 33;
        public static final int LIGHTGUN_DPAD_LEFT = 34;
        public static final int LIGHTGUN_DPAD_RIGHT = 35;
        public static final int LIGHTGUN_BIND_LIST_END = 36;

        public static final int LIGHTGUN_BIND_END = 37;
    }

    public static class JoypadBindKeySet {
        public static final int JOYPAD_NONE                = -1;
        public static final int JOYPAD_BTN_B               = KeyEvent.KEYCODE_BUTTON_B;
        public static final int JOYPAD_BTN_Y               = KeyEvent.KEYCODE_BUTTON_Y;
        public static final int JOYPAD_BTN_SELECT          = KeyEvent.KEYCODE_BUTTON_SELECT;
        public static final int JOYPAD_BTN_START           = KeyEvent.KEYCODE_BUTTON_START;
        // public static final int JOYPAD_BTN_UP              = KeyEvent.KEYCODE_DPAD_UP;
        // public static final int JOYPAD_BTN_DOWN            = KeyEvent.KEYCODE_DPAD_DOWN;
        // public static final int JOYPAD_BTN_LEFT            = KeyEvent.KEYCODE_DPAD_LEFT;
        // public static final int JOYPAD_BTN_RIGHT           = KeyEvent.KEYCODE_DPAD_RIGHT;
        public static final int JOYPAD_BTN_A               = KeyEvent.KEYCODE_BUTTON_A;
        public static final int JOYPAD_BTN_X               = KeyEvent.KEYCODE_BUTTON_X;
        public static final int JOYPAD_BTN_L               = KeyEvent.KEYCODE_BUTTON_L1;
        public static final int JOYPAD_BTN_R               = KeyEvent.KEYCODE_BUTTON_R1;
        public static final int JOYPAD_BTN_L2              = KeyEvent.KEYCODE_BUTTON_L2;
        public static final int JOYPAD_BTN_R2              = KeyEvent.KEYCODE_BUTTON_R2;
        public static final int JOYPAD_BTN_L3              = KeyEvent.KEYCODE_BUTTON_THUMBL;
        public static final int JOYPAD_BTN_R3              = KeyEvent.KEYCODE_BUTTON_THUMBR;
        public static final int JOYPAD_HAT_UP              = 1 << 15;
        public static final int JOYPAD_HAT_DOWN            = 1 << 14;
        public static final int JOYPAD_HAT_LEFT            = 1 << 13;
        public static final int JOYPAD_HAT_RIGHT           = 1 << 12;
        public static final int JOYPAD_AXIS_X_PLUS         = 0 - 65536;
        public static final int JOYPAD_AXIS_X_MINIS        = 0 * 65536 + 65535;
        public static final int JOYPAD_AXIS_Y_PLUS         = 1 - 65536;
        public static final int JOYPAD_AXIS_Y_MINIS        = 1 * 65536 + 65535;
        public static final int JOYPAD_AXIS_Z_PLUS         = 2 - 65536;
        public static final int JOYPAD_AXIS_Z_MINIS        = 2 * 65536 + 65535;
        public static final int JOYPAD_AXIS_RZ_PLUS        = 3 - 65536;
        public static final int JOYPAD_AXIS_RZ_MINIS       = 3 * 65536 + 65535;
        public static final int JOYPAD_AXIS_HAT_X_PLUS     = 4 - 65536;
        public static final int JOYPAD_AXIS_HAT_X_MINIS    = 4 * 65536 + 65535;
        public static final int JOYPAD_AXIS_HAT_Y_PLUS     = 5 - 65536;
        public static final int JOYPAD_AXIS_HAT_Y_MINIS    = 5 * 65536 + 65535;
        public static final int JOYPAD_AXIS_LTRIGGER_PLUS  = 6 - 65536;
        public static final int JOYPAD_AXIS_LTRIGGER_MINIS = 6 * 65536 + 65535;
        public static final int JOYPAD_AXIS_RTRIGGER_PLUS  = 7 - 65536;
        public static final int JOYPAD_AXIS_RTRIGGER_MINIS = 7 * 65536 + 65535;
        public static final int JOYPAD_AXIS_BRAKE_PLUS     = 2 - 65536;
        public static final int JOYPAD_AXIS_BRAKE_MINIS    = 2 * 65536 + 65535;
        public static final int JOYPAD_AXIS_GAS_PLUS       = 3 - 65536;
        public static final int JOYPAD_AXIS_GAS_MINIS      = 3 * 65536 + 65535;
    }

    public static final int INPUT_CODE_END = 24;
}
