Logo Search packages:      
Sourcecode: jinput version File versions  Download package

void net::java::games::input::LinuxNativeTypesMap::reInit (  )  [inline, private]

Do the work.

Definition at line 54 of file LinuxNativeTypesMap.java.

Referenced by LinuxNativeTypesMap().

                          {
        buttonIDs[NativeDefinitions.KEY_ESC] = Component.Identifier.Key.ESCAPE;
        buttonIDs[NativeDefinitions.KEY_1] = Component.Identifier.Key._1;
        buttonIDs[NativeDefinitions.KEY_2] = Component.Identifier.Key._2;
        buttonIDs[NativeDefinitions.KEY_3] = Component.Identifier.Key._3;
        buttonIDs[NativeDefinitions.KEY_4] = Component.Identifier.Key._4;
        buttonIDs[NativeDefinitions.KEY_5] = Component.Identifier.Key._5;
        buttonIDs[NativeDefinitions.KEY_6] = Component.Identifier.Key._6;
        buttonIDs[NativeDefinitions.KEY_7] = Component.Identifier.Key._7;
        buttonIDs[NativeDefinitions.KEY_8] = Component.Identifier.Key._8;
        buttonIDs[NativeDefinitions.KEY_9] = Component.Identifier.Key._9;
        buttonIDs[NativeDefinitions.KEY_0] = Component.Identifier.Key._0;
        buttonIDs[NativeDefinitions.KEY_MINUS] = Component.Identifier.Key.MINUS;
        buttonIDs[NativeDefinitions.KEY_EQUAL] = Component.Identifier.Key.EQUALS;
        buttonIDs[NativeDefinitions.KEY_BACKSPACE] = Component.Identifier.Key.BACK;
        buttonIDs[NativeDefinitions.KEY_TAB] = Component.Identifier.Key.TAB;
        buttonIDs[NativeDefinitions.KEY_Q] = Component.Identifier.Key.Q;
        buttonIDs[NativeDefinitions.KEY_W] = Component.Identifier.Key.W;
        buttonIDs[NativeDefinitions.KEY_E] = Component.Identifier.Key.E;
        buttonIDs[NativeDefinitions.KEY_R] = Component.Identifier.Key.R;
        buttonIDs[NativeDefinitions.KEY_T] = Component.Identifier.Key.T;
        buttonIDs[NativeDefinitions.KEY_Y] = Component.Identifier.Key.Y;
        buttonIDs[NativeDefinitions.KEY_U] = Component.Identifier.Key.U;
        buttonIDs[NativeDefinitions.KEY_I] = Component.Identifier.Key.I;
        buttonIDs[NativeDefinitions.KEY_O] = Component.Identifier.Key.O;
        buttonIDs[NativeDefinitions.KEY_P] = Component.Identifier.Key.P;
        buttonIDs[NativeDefinitions.KEY_LEFTBRACE] = Component.Identifier.Key.LBRACKET;
        buttonIDs[NativeDefinitions.KEY_RIGHTBRACE] = Component.Identifier.Key.RBRACKET;
        buttonIDs[NativeDefinitions.KEY_ENTER] = Component.Identifier.Key.RETURN;
        buttonIDs[NativeDefinitions.KEY_LEFTCTRL] = Component.Identifier.Key.LCONTROL;
        buttonIDs[NativeDefinitions.KEY_A] = Component.Identifier.Key.A;
        buttonIDs[NativeDefinitions.KEY_S] = Component.Identifier.Key.S;
        buttonIDs[NativeDefinitions.KEY_D] = Component.Identifier.Key.D;
        buttonIDs[NativeDefinitions.KEY_F] = Component.Identifier.Key.F;
        buttonIDs[NativeDefinitions.KEY_G] = Component.Identifier.Key.G;
        buttonIDs[NativeDefinitions.KEY_H] = Component.Identifier.Key.H;
        buttonIDs[NativeDefinitions.KEY_J] = Component.Identifier.Key.J;
        buttonIDs[NativeDefinitions.KEY_K] = Component.Identifier.Key.K;
        buttonIDs[NativeDefinitions.KEY_L] = Component.Identifier.Key.L;
        buttonIDs[NativeDefinitions.KEY_SEMICOLON] = Component.Identifier.Key.SEMICOLON;
        buttonIDs[NativeDefinitions.KEY_APOSTROPHE] = Component.Identifier.Key.APOSTROPHE;
        buttonIDs[NativeDefinitions.KEY_GRAVE] = Component.Identifier.Key.GRAVE;
        buttonIDs[NativeDefinitions.KEY_LEFTSHIFT] = Component.Identifier.Key.LSHIFT;
        buttonIDs[NativeDefinitions.KEY_BACKSLASH] = Component.Identifier.Key.BACKSLASH;
        buttonIDs[NativeDefinitions.KEY_Z] = Component.Identifier.Key.Z;
        buttonIDs[NativeDefinitions.KEY_X] = Component.Identifier.Key.X;
        buttonIDs[NativeDefinitions.KEY_C] = Component.Identifier.Key.C;
        buttonIDs[NativeDefinitions.KEY_V] = Component.Identifier.Key.V;
        buttonIDs[NativeDefinitions.KEY_B] = Component.Identifier.Key.B;
        buttonIDs[NativeDefinitions.KEY_N] = Component.Identifier.Key.N;
        buttonIDs[NativeDefinitions.KEY_M] = Component.Identifier.Key.M;
        buttonIDs[NativeDefinitions.KEY_COMMA] = Component.Identifier.Key.COMMA;
        buttonIDs[NativeDefinitions.KEY_DOT] = Component.Identifier.Key.PERIOD;
        buttonIDs[NativeDefinitions.KEY_SLASH] = Component.Identifier.Key.SLASH;
        buttonIDs[NativeDefinitions.KEY_RIGHTSHIFT] = Component.Identifier.Key.RSHIFT;
        buttonIDs[NativeDefinitions.KEY_KPASTERISK] = Component.Identifier.Key.MULTIPLY;
        buttonIDs[NativeDefinitions.KEY_LEFTALT] = Component.Identifier.Key.LALT;
        buttonIDs[NativeDefinitions.KEY_SPACE] = Component.Identifier.Key.SPACE;
        buttonIDs[NativeDefinitions.KEY_CAPSLOCK] = Component.Identifier.Key.CAPITAL;
        buttonIDs[NativeDefinitions.KEY_F1] = Component.Identifier.Key.F1;
        buttonIDs[NativeDefinitions.KEY_F2] = Component.Identifier.Key.F2;
        buttonIDs[NativeDefinitions.KEY_F3] = Component.Identifier.Key.F3;
        buttonIDs[NativeDefinitions.KEY_F4] = Component.Identifier.Key.F4;
        buttonIDs[NativeDefinitions.KEY_F5] = Component.Identifier.Key.F5;
        buttonIDs[NativeDefinitions.KEY_F6] = Component.Identifier.Key.F6;
        buttonIDs[NativeDefinitions.KEY_F7] = Component.Identifier.Key.F7;
        buttonIDs[NativeDefinitions.KEY_F8] = Component.Identifier.Key.F8;
        buttonIDs[NativeDefinitions.KEY_F9] = Component.Identifier.Key.F9;
        buttonIDs[NativeDefinitions.KEY_F10] = Component.Identifier.Key.F10;
        buttonIDs[NativeDefinitions.KEY_NUMLOCK] = Component.Identifier.Key.NUMLOCK;
        buttonIDs[NativeDefinitions.KEY_SCROLLLOCK] = Component.Identifier.Key.SCROLL;
        buttonIDs[NativeDefinitions.KEY_KP7] = Component.Identifier.Key.NUMPAD7;
        buttonIDs[NativeDefinitions.KEY_KP8] = Component.Identifier.Key.NUMPAD8;
        buttonIDs[NativeDefinitions.KEY_KP9] = Component.Identifier.Key.NUMPAD9;
        buttonIDs[NativeDefinitions.KEY_KPMINUS] = Component.Identifier.Key.SUBTRACT;
        buttonIDs[NativeDefinitions.KEY_KP4] = Component.Identifier.Key.NUMPAD4;
        buttonIDs[NativeDefinitions.KEY_KP5] = Component.Identifier.Key.NUMPAD5;
        buttonIDs[NativeDefinitions.KEY_KP6] = Component.Identifier.Key.NUMPAD6;
        buttonIDs[NativeDefinitions.KEY_KPPLUS] = Component.Identifier.Key.ADD;
        buttonIDs[NativeDefinitions.KEY_KP1] = Component.Identifier.Key.NUMPAD1;
        buttonIDs[NativeDefinitions.KEY_KP2] = Component.Identifier.Key.NUMPAD2;
        buttonIDs[NativeDefinitions.KEY_KP3] = Component.Identifier.Key.NUMPAD3;
        buttonIDs[NativeDefinitions.KEY_KP0] = Component.Identifier.Key.NUMPAD0;
        buttonIDs[NativeDefinitions.KEY_KPDOT] = Component.Identifier.Key.DECIMAL;
//        buttonIDs[NativeDefinitions.KEY_103RD] = null;
        buttonIDs[NativeDefinitions.KEY_F13] = Component.Identifier.Key.F13;
        buttonIDs[NativeDefinitions.KEY_102ND] = null;
        buttonIDs[NativeDefinitions.KEY_F11] = Component.Identifier.Key.F11;
        buttonIDs[NativeDefinitions.KEY_F12] = Component.Identifier.Key.F12;
        buttonIDs[NativeDefinitions.KEY_F14] = Component.Identifier.Key.F14;
        buttonIDs[NativeDefinitions.KEY_F15] = Component.Identifier.Key.F15;
        buttonIDs[NativeDefinitions.KEY_F16] = null;
        buttonIDs[NativeDefinitions.KEY_F17] = null;
        buttonIDs[NativeDefinitions.KEY_F18] = null;
        buttonIDs[NativeDefinitions.KEY_F19] = null;
        buttonIDs[NativeDefinitions.KEY_F20] = null;
        buttonIDs[NativeDefinitions.KEY_KPENTER] = Component.Identifier.Key.NUMPADENTER;
        buttonIDs[NativeDefinitions.KEY_RIGHTCTRL] = Component.Identifier.Key.RCONTROL;
        buttonIDs[NativeDefinitions.KEY_KPSLASH] = Component.Identifier.Key.DIVIDE;
        buttonIDs[NativeDefinitions.KEY_SYSRQ] = Component.Identifier.Key.SYSRQ;
        buttonIDs[NativeDefinitions.KEY_RIGHTALT] = Component.Identifier.Key.RALT;
        buttonIDs[NativeDefinitions.KEY_LINEFEED] = null;
        buttonIDs[NativeDefinitions.KEY_HOME] = Component.Identifier.Key.HOME;
        buttonIDs[NativeDefinitions.KEY_UP] = Component.Identifier.Key.UP;
        buttonIDs[NativeDefinitions.KEY_PAGEUP] = Component.Identifier.Key.PAGEUP;
        buttonIDs[NativeDefinitions.KEY_LEFT] = Component.Identifier.Key.LEFT;
        buttonIDs[NativeDefinitions.KEY_RIGHT] = Component.Identifier.Key.RIGHT;
        buttonIDs[NativeDefinitions.KEY_END] = Component.Identifier.Key.END;
        buttonIDs[NativeDefinitions.KEY_DOWN] = Component.Identifier.Key.DOWN;
        buttonIDs[NativeDefinitions.KEY_PAGEDOWN] = Component.Identifier.Key.PAGEDOWN;
        buttonIDs[NativeDefinitions.KEY_INSERT] = Component.Identifier.Key.INSERT;
        buttonIDs[NativeDefinitions.KEY_DELETE] = Component.Identifier.Key.DELETE;
        buttonIDs[NativeDefinitions.KEY_PAUSE] = Component.Identifier.Key.PAUSE;
/*        buttonIDs[NativeDefinitions.KEY_MACRO] = "Macro";
        buttonIDs[NativeDefinitions.KEY_MUTE] = "Mute";
        buttonIDs[NativeDefinitions.KEY_VOLUMEDOWN] = "Volume Down";
        buttonIDs[NativeDefinitions.KEY_VOLUMEUP] = "Volume Up";
        buttonIDs[NativeDefinitions.KEY_POWER] = "Power";*/
        buttonIDs[NativeDefinitions.KEY_KPEQUAL] = Component.Identifier.Key.NUMPADEQUAL;
        //buttonIDs[NativeDefinitions.KEY_KPPLUSMINUS] = "KeyPad +/-";
/*        buttonIDs[NativeDefinitions.KEY_F21] = "F21";
        buttonIDs[NativeDefinitions.KEY_F22] = "F22";
        buttonIDs[NativeDefinitions.KEY_F23] = "F23";
        buttonIDs[NativeDefinitions.KEY_F24] = "F24";
        buttonIDs[NativeDefinitions.KEY_KPCOMMA] = "KeyPad comma";
        buttonIDs[NativeDefinitions.KEY_LEFTMETA] = "LH Meta";
        buttonIDs[NativeDefinitions.KEY_RIGHTMETA] = "RH Meta";
        buttonIDs[NativeDefinitions.KEY_COMPOSE] = "Compose";
        buttonIDs[NativeDefinitions.KEY_STOP] = "Stop";
        buttonIDs[NativeDefinitions.KEY_AGAIN] = "Again";
        buttonIDs[NativeDefinitions.KEY_PROPS] = "Properties";
        buttonIDs[NativeDefinitions.KEY_UNDO] = "Undo";
        buttonIDs[NativeDefinitions.KEY_FRONT] = "Front";
        buttonIDs[NativeDefinitions.KEY_COPY] = "Copy";
        buttonIDs[NativeDefinitions.KEY_OPEN] = "Open";
        buttonIDs[NativeDefinitions.KEY_PASTE] = "Paste";
        buttonIDs[NativeDefinitions.KEY_FIND] = "Find";
        buttonIDs[NativeDefinitions.KEY_CUT] = "Cut";
        buttonIDs[NativeDefinitions.KEY_HELP] = "Help";
        buttonIDs[NativeDefinitions.KEY_MENU] = "Menu";
        buttonIDs[NativeDefinitions.KEY_CALC] = "Calculator";
        buttonIDs[NativeDefinitions.KEY_SETUP] = "Setup";*/
        buttonIDs[NativeDefinitions.KEY_SLEEP] = Component.Identifier.Key.SLEEP;
        /*buttonIDs[NativeDefinitions.KEY_WAKEUP] = "Wakeup";
        buttonIDs[NativeDefinitions.KEY_FILE] = "File";
        buttonIDs[NativeDefinitions.KEY_SENDFILE] = "Send File";
        buttonIDs[NativeDefinitions.KEY_DELETEFILE] = "Delete File";
        buttonIDs[NativeDefinitions.KEY_XFER] = "Transfer";
        buttonIDs[NativeDefinitions.KEY_PROG1] = "Program 1";
        buttonIDs[NativeDefinitions.KEY_PROG2] = "Program 2";
        buttonIDs[NativeDefinitions.KEY_WWW] = "Web Browser";
        buttonIDs[NativeDefinitions.KEY_MSDOS] = "DOS mode";
        buttonIDs[NativeDefinitions.KEY_COFFEE] = "Coffee";
        buttonIDs[NativeDefinitions.KEY_DIRECTION] = "Direction";
        buttonIDs[NativeDefinitions.KEY_CYCLEWINDOWS] = "Window cycle";
        buttonIDs[NativeDefinitions.KEY_MAIL] = "Mail";
        buttonIDs[NativeDefinitions.KEY_BOOKMARKS] = "Book Marks";
        buttonIDs[NativeDefinitions.KEY_COMPUTER] = "Computer";
        buttonIDs[NativeDefinitions.KEY_BACK] = "Back";
        buttonIDs[NativeDefinitions.KEY_FORWARD] = "Forward";
        buttonIDs[NativeDefinitions.KEY_CLOSECD] = "Close CD";
        buttonIDs[NativeDefinitions.KEY_EJECTCD] = "Eject CD";
        buttonIDs[NativeDefinitions.KEY_EJECTCLOSECD] = "Eject / Close CD";
        buttonIDs[NativeDefinitions.KEY_NEXTSONG] = "Next Song";
        buttonIDs[NativeDefinitions.KEY_PLAYPAUSE] = "Play and Pause";
        buttonIDs[NativeDefinitions.KEY_PREVIOUSSONG] = "Previous Song";
        buttonIDs[NativeDefinitions.KEY_STOPCD] = "Stop CD";
        buttonIDs[NativeDefinitions.KEY_RECORD] = "Record";
        buttonIDs[NativeDefinitions.KEY_REWIND] = "Rewind";
        buttonIDs[NativeDefinitions.KEY_PHONE] = "Phone";
        buttonIDs[NativeDefinitions.KEY_ISO] = "ISO";
        buttonIDs[NativeDefinitions.KEY_CONFIG] = "Config";
        buttonIDs[NativeDefinitions.KEY_HOMEPAGE] = "Home";
        buttonIDs[NativeDefinitions.KEY_REFRESH] = "Refresh";
        buttonIDs[NativeDefinitions.KEY_EXIT] = "Exit";
        buttonIDs[NativeDefinitions.KEY_MOVE] = "Move";
        buttonIDs[NativeDefinitions.KEY_EDIT] = "Edit";
        buttonIDs[NativeDefinitions.KEY_SCROLLUP] = "Scroll Up";
        buttonIDs[NativeDefinitions.KEY_SCROLLDOWN] = "Scroll Down";
        buttonIDs[NativeDefinitions.KEY_KPLEFTPAREN] = "KeyPad LH parenthesis";
        buttonIDs[NativeDefinitions.KEY_KPRIGHTPAREN] = "KeyPad RH parenthesis";
        buttonIDs[NativeDefinitions.KEY_INTL1] = "Intl 1";
        buttonIDs[NativeDefinitions.KEY_INTL2] = "Intl 2";
        buttonIDs[NativeDefinitions.KEY_INTL3] = "Intl 3";
        buttonIDs[NativeDefinitions.KEY_INTL4] = "Intl 4";
        buttonIDs[NativeDefinitions.KEY_INTL5] = "Intl 5";
        buttonIDs[NativeDefinitions.KEY_INTL6] = "Intl 6";
        buttonIDs[NativeDefinitions.KEY_INTL7] = "Intl 7";
        buttonIDs[NativeDefinitions.KEY_INTL8] = "Intl 8";
        buttonIDs[NativeDefinitions.KEY_INTL9] = "Intl 9";
        buttonIDs[NativeDefinitions.KEY_LANG1] = "Language 1";
        buttonIDs[NativeDefinitions.KEY_LANG2] = "Language 2";
        buttonIDs[NativeDefinitions.KEY_LANG3] = "Language 3";
        buttonIDs[NativeDefinitions.KEY_LANG4] = "Language 4";
        buttonIDs[NativeDefinitions.KEY_LANG5] = "Language 5";
        buttonIDs[NativeDefinitions.KEY_LANG6] = "Language 6";
        buttonIDs[NativeDefinitions.KEY_LANG7] = "Language 7";
        buttonIDs[NativeDefinitions.KEY_LANG8] = "Language 8";
        buttonIDs[NativeDefinitions.KEY_LANG9] = "Language 9";
        buttonIDs[NativeDefinitions.KEY_PLAYCD] = "Play CD";
        buttonIDs[NativeDefinitions.KEY_PAUSECD] = "Pause CD";
        buttonIDs[NativeDefinitions.KEY_PROG3] = "Program 3";
        buttonIDs[NativeDefinitions.KEY_PROG4] = "Program 4";
        buttonIDs[NativeDefinitions.KEY_SUSPEND] = "Suspend";
        buttonIDs[NativeDefinitions.KEY_CLOSE] = "Close";*/
        buttonIDs[NativeDefinitions.KEY_UNKNOWN] = Component.Identifier.Key.UNLABELED;
        /*buttonIDs[NativeDefinitions.KEY_BRIGHTNESSDOWN] = "Brightness Down";
        buttonIDs[NativeDefinitions.KEY_BRIGHTNESSUP] = "Brightness Up";*/
        
        //Misc keys
        buttonIDs[NativeDefinitions.BTN_0] = Component.Identifier.Button._0;
        buttonIDs[NativeDefinitions.BTN_1] = Component.Identifier.Button._1;
        buttonIDs[NativeDefinitions.BTN_2] = Component.Identifier.Button._2;
        buttonIDs[NativeDefinitions.BTN_3] = Component.Identifier.Button._3;
        buttonIDs[NativeDefinitions.BTN_4] = Component.Identifier.Button._4;
        buttonIDs[NativeDefinitions.BTN_5] = Component.Identifier.Button._5;
        buttonIDs[NativeDefinitions.BTN_6] = Component.Identifier.Button._6;
        buttonIDs[NativeDefinitions.BTN_7] = Component.Identifier.Button._7;
        buttonIDs[NativeDefinitions.BTN_8] = Component.Identifier.Button._8;
        buttonIDs[NativeDefinitions.BTN_9] = Component.Identifier.Button._9;
        
        // Mouse
        buttonIDs[NativeDefinitions.BTN_LEFT] = Component.Identifier.Button.LEFT;
        buttonIDs[NativeDefinitions.BTN_RIGHT] = Component.Identifier.Button.RIGHT;
        buttonIDs[NativeDefinitions.BTN_MIDDLE] = Component.Identifier.Button.MIDDLE;
        buttonIDs[NativeDefinitions.BTN_SIDE] = Component.Identifier.Button.SIDE;
        buttonIDs[NativeDefinitions.BTN_EXTRA] = Component.Identifier.Button.EXTRA;
        buttonIDs[NativeDefinitions.BTN_FORWARD] = Component.Identifier.Button.FORWARD;
        buttonIDs[NativeDefinitions.BTN_BACK] = Component.Identifier.Button.BACK;
        
        // Joystick
        buttonIDs[NativeDefinitions.BTN_TRIGGER] = Component.Identifier.Button.TRIGGER;
        buttonIDs[NativeDefinitions.BTN_THUMB] = Component.Identifier.Button.THUMB;
        buttonIDs[NativeDefinitions.BTN_THUMB2] = Component.Identifier.Button.THUMB2;
        buttonIDs[NativeDefinitions.BTN_TOP] = Component.Identifier.Button.TOP;
        buttonIDs[NativeDefinitions.BTN_TOP2] = Component.Identifier.Button.TOP2;
        buttonIDs[NativeDefinitions.BTN_PINKIE] = Component.Identifier.Button.PINKIE;
        buttonIDs[NativeDefinitions.BTN_BASE] = Component.Identifier.Button.BASE;
        buttonIDs[NativeDefinitions.BTN_BASE2] = Component.Identifier.Button.BASE2;
        buttonIDs[NativeDefinitions.BTN_BASE3] = Component.Identifier.Button.BASE3;
        buttonIDs[NativeDefinitions.BTN_BASE4] = Component.Identifier.Button.BASE4;
        buttonIDs[NativeDefinitions.BTN_BASE5] = Component.Identifier.Button.BASE5;
        buttonIDs[NativeDefinitions.BTN_BASE6] = Component.Identifier.Button.BASE6;
        buttonIDs[NativeDefinitions.BTN_DEAD] = Component.Identifier.Button.DEAD;
        
        // Gamepad
        buttonIDs[NativeDefinitions.BTN_A] = Component.Identifier.Button.A;
        buttonIDs[NativeDefinitions.BTN_B] = Component.Identifier.Button.B;
        buttonIDs[NativeDefinitions.BTN_C] = Component.Identifier.Button.C;
        buttonIDs[NativeDefinitions.BTN_X] = Component.Identifier.Button.X;
        buttonIDs[NativeDefinitions.BTN_Y] = Component.Identifier.Button.Y;
        buttonIDs[NativeDefinitions.BTN_Z] = Component.Identifier.Button.Z;
        buttonIDs[NativeDefinitions.BTN_TL] = Component.Identifier.Button.LEFT_THUMB;
        buttonIDs[NativeDefinitions.BTN_TR] = Component.Identifier.Button.RIGHT_THUMB;
        buttonIDs[NativeDefinitions.BTN_TL2] = Component.Identifier.Button.LEFT_THUMB2;
        buttonIDs[NativeDefinitions.BTN_TR2] = Component.Identifier.Button.RIGHT_THUMB2;
        buttonIDs[NativeDefinitions.BTN_SELECT] = Component.Identifier.Button.SELECT;
        buttonIDs[NativeDefinitions.BTN_MODE] = Component.Identifier.Button.MODE;
        buttonIDs[NativeDefinitions.BTN_THUMBL] = Component.Identifier.Button.LEFT_THUMB3;
        buttonIDs[NativeDefinitions.BTN_THUMBR] = Component.Identifier.Button.RIGHT_THUMB3;
        
        // Digitiser
        buttonIDs[NativeDefinitions.BTN_TOOL_PEN] = Component.Identifier.Button.TOOL_PEN;
        buttonIDs[NativeDefinitions.BTN_TOOL_RUBBER] = Component.Identifier.Button.TOOL_RUBBER;
        buttonIDs[NativeDefinitions.BTN_TOOL_BRUSH] = Component.Identifier.Button.TOOL_BRUSH;
        buttonIDs[NativeDefinitions.BTN_TOOL_PENCIL] = Component.Identifier.Button.TOOL_PENCIL;
        buttonIDs[NativeDefinitions.BTN_TOOL_AIRBRUSH] = Component.Identifier.Button.TOOL_AIRBRUSH;
        buttonIDs[NativeDefinitions.BTN_TOOL_FINGER] = Component.Identifier.Button.TOOL_FINGER;
        buttonIDs[NativeDefinitions.BTN_TOOL_MOUSE] = Component.Identifier.Button.TOOL_MOUSE;
        buttonIDs[NativeDefinitions.BTN_TOOL_LENS] = Component.Identifier.Button.TOOL_LENS;
        buttonIDs[NativeDefinitions.BTN_TOUCH] = Component.Identifier.Button.TOUCH;
        buttonIDs[NativeDefinitions.BTN_STYLUS] = Component.Identifier.Button.STYLUS;
        buttonIDs[NativeDefinitions.BTN_STYLUS2] = Component.Identifier.Button.STYLUS2;
        
        relAxesIDs[NativeDefinitions.REL_X] = Component.Identifier.Axis.X;
        relAxesIDs[NativeDefinitions.REL_Y] = Component.Identifier.Axis.Y;
        relAxesIDs[NativeDefinitions.REL_Z] = Component.Identifier.Axis.Z;
        relAxesIDs[NativeDefinitions.REL_WHEEL] = Component.Identifier.Axis.Z;
        // There are guesses as I have no idea what they would be used for
        relAxesIDs[NativeDefinitions.REL_HWHEEL] = Component.Identifier.Axis.SLIDER;
        relAxesIDs[NativeDefinitions.REL_DIAL] = Component.Identifier.Axis.SLIDER;
        relAxesIDs[NativeDefinitions.REL_MISC] = Component.Identifier.Axis.SLIDER;
        
        absAxesIDs[NativeDefinitions.ABS_X] = Component.Identifier.Axis.X;
        absAxesIDs[NativeDefinitions.ABS_Y] = Component.Identifier.Axis.Y;
        absAxesIDs[NativeDefinitions.ABS_Z] = Component.Identifier.Axis.Z;
        absAxesIDs[NativeDefinitions.ABS_RX] = Component.Identifier.Axis.RX;
        absAxesIDs[NativeDefinitions.ABS_RY] = Component.Identifier.Axis.RY;
        absAxesIDs[NativeDefinitions.ABS_RZ] = Component.Identifier.Axis.RZ;
        absAxesIDs[NativeDefinitions.ABS_THROTTLE] = Component.Identifier.Axis.SLIDER;
        absAxesIDs[NativeDefinitions.ABS_RUDDER] = Component.Identifier.Axis.RZ;
        absAxesIDs[NativeDefinitions.ABS_WHEEL] = Component.Identifier.Axis.Y;
        absAxesIDs[NativeDefinitions.ABS_GAS] = Component.Identifier.Axis.SLIDER;
        absAxesIDs[NativeDefinitions.ABS_BRAKE] = Component.Identifier.Axis.SLIDER;
        // Hats are done this way as they are mapped from two axis down to one
        absAxesIDs[NativeDefinitions.ABS_HAT0X] = Component.Identifier.Axis.POV;
        absAxesIDs[NativeDefinitions.ABS_HAT0Y] = Component.Identifier.Axis.POV;
        absAxesIDs[NativeDefinitions.ABS_HAT1X] = Component.Identifier.Axis.POV;
        absAxesIDs[NativeDefinitions.ABS_HAT1Y] = Component.Identifier.Axis.POV;
        absAxesIDs[NativeDefinitions.ABS_HAT2X] = Component.Identifier.Axis.POV;
        absAxesIDs[NativeDefinitions.ABS_HAT2Y] = Component.Identifier.Axis.POV;
        absAxesIDs[NativeDefinitions.ABS_HAT3X] = Component.Identifier.Axis.POV;
        absAxesIDs[NativeDefinitions.ABS_HAT3Y] = Component.Identifier.Axis.POV;
        // erm, yeah
        absAxesIDs[NativeDefinitions.ABS_PRESSURE] = null;
        absAxesIDs[NativeDefinitions.ABS_DISTANCE] = null;
        absAxesIDs[NativeDefinitions.ABS_TILT_X] = null;
        absAxesIDs[NativeDefinitions.ABS_TILT_Y] = null;
        absAxesIDs[NativeDefinitions.ABS_MISC] = null;
    }


Generated by  Doxygen 1.6.0   Back to index