@@ -0,0 +1,2108 @@
+%0D%0Apackage com.annimon.jecp;%0D%0A%0D%0A/**%0D%0A * Keyboard codes.%0D%0A * @author aNNiMON%0D%0A */%0D%0Apublic class Keys %7B%0D%0A    %0D%0A    public static boolean wasdAsDpad = false;%0D%0A    public static boolean numericdAsDpad = false;%0D%0A    %0D%0A    public static final int%0D%0A            DPAD_LEFT = -501,%0D%0A            DPAD_UP = -502,%0D%0A            DPAD_RIGHT = -503,%0D%0A            DPAD_DOWN = -504,%0D%0A            DPAD_FIRE = -505;%0D%0A    %0D%0A    /** Java ME keys */%0D%0A    public static final int%0D%0A            KEY_NUM0 = 48,%0D%0A            KEY_NUM1 = 49,%0D%0A            KEY_NUM2 = 50,%0D%0A            KEY_NUM3 = 51,%0D%0A            KEY_NUM4 = 52,%0D%0A            KEY_NUM5 = 53,%0D%0A            KEY_NUM6 = 54,%0D%0A            KEY_NUM7 = 55,%0D%0A            KEY_NUM8 = 56,%0D%0A            KEY_NUM9 = 57,%0D%0A            KEY_STAR = 42,%0D%0A            KEY_POUND = 35;%0D%0A    %0D%0A    /** Java SE keys */%0D%0A    public static final int%0D%0A            VK_LEFT = 37,%0D%0A            VK_UP = 38,%0D%0A            VK_RIGHT = 39,%0D%0A            VK_DOWN = 40,%0D%0A            VK_ENTER = 10,%0D%0A            VK_SPACE = 32,%0D%0A            VK_W = 87,%0D%0A            VK_S = 83,%0D%0A            VK_A = 65,%0D%0A            VK_D = 68;%0D%0A    %0D%0A    public static final int convertToDpad(int key) %7B%0D%0A        if (wasdAsDpad) %7B%0D%0A            switch(key) %7B%0D%0A                case VK_W: return DPAD_UP;%0D%0A                case VK_S: return DPAD_DOWN;%0D%0A                case VK_A: return DPAD_LEFT;%0D%0A                case VK_D: return DPAD_RIGHT;%0D%0A                case VK_ENTER: return DPAD_FIRE;%0D%0A                case VK_SPACE: return DPAD_FIRE;%0D%0A            %7D%0D%0A        %7D%0D%0A        if (numericdAsDpad) %7B%0D%0A            switch(key) %7B%0D%0A                case KEY_NUM2: return DPAD_UP;%0D%0A                case KEY_NUM8: return DPAD_DOWN;%0D%0A                case KEY_NUM4: return DPAD_LEFT;%0D%0A                case KEY_NUM6: return DPAD_RIGHT;%0D%0A                case KEY_NUM5: return DPAD_FIRE;%0D%0A            %7D%0D%0A        %7D%0D%0A        switch(key) %7B%0D%0A            case VK_UP: return DPAD_UP;%0D%0A            case VK_DOWN: return DPAD_DOWN;%0D%0A            case VK_LEFT: return DPAD_LEFT;%0D%0A            case VK_RIGHT: return DPAD_RIGHT;%0D%0A        %7D%0D%0A        return 0;%0D%0A    %7D%0D%0A%7D%0D%0A

Add keys class