Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch (code) {
- case 0:
- if (inputKey == 0) {
- if (input.SHIFT.isPressed()) {
- text = text + "Q";
- System.out.println(text);
- inputKey++;
- } else {
- text = text + "q";
- System.out.println(text);
- inputKey++;
- }
- }
- case 1:
- if (inputKey == 0) {
- if (input.SHIFT.isPressed()) {
- text = text + "W";
- System.out.println(text);
- inputKey++;
- } else {
- text = text + "w";
- System.out.println(text);
- inputKey++;
- }
- }
- case 2:
- if (inputKey == 0) {
- if (input.SHIFT.isPressed()) {
- text = text + "E";
- System.out.println(text);
- inputKey++;
- } else {
- text = text + "e";
- System.out.println(text);
- inputKey++;
- }
- }
- case 3:
- if (inputKey == 0) {
- if (input.SHIFT.isPressed()) {
- text = text + "R";
- System.out.println(text);
- inputKey++;
- } else {
- text = text + "r";
- System.out.println(text);
- inputKey++;
- }
- }
- case 4:
- if (inputKey == 0) {
- if (input.SHIFT.isPressed()) {
- text = text + "T";
- System.out.println(text);
- inputKey++;
- } else {
- text = text + "t";
- System.out.println(text);
- inputKey++;
- }
- }
- case 5:
- if (inputKey == 0) {
- if (input.SHIFT.isPressed()) {
- text = text + "Y";
- System.out.println(text);
- inputKey++;
- } else {
- text = text + "y";
- System.out.println(text);
- inputKey++;
- }
- }
- case 6:
- if (inputKey == 0) {
- if (input.SHIFT.isPressed()) {
- text = text + "U";
- System.out.println(text);
- inputKey++;
- } else {
- text = text + "u";
- System.out.println(text);
- inputKey++;
- }
- }
- case 7:
- if (inputKey == 0) {
- if (input.SHIFT.isPressed()) {
- text = text + "I";
- System.out.println(text);
- inputKey++;
- } else {
- text = text + "i";
- System.out.println(text);
- inputKey++;
- }
- }
- case 8:
- if (inputKey == 0) {
- if (input.SHIFT.isPressed()) {
- text = text + "O";
- System.out.println(text);
- inputKey++;
- } else {
- text = text + "o";
- System.out.println(text);
- inputKey++;
- }
- }
- case 9:
- if (inputKey == 0) {
- if (input.SHIFT.isPressed()) {
- text = text + "P";
- System.out.println(text);
- inputKey++;
- } else {
- text = text + "p";
- System.out.println(text);
- inputKey++;
- }
- }
- case 10:
- if (inputKey == 0) {
- if (input.SHIFT.isPressed()) {
- text = text + "A";
- System.out.println(text);
- inputKey++;
- } else {
- text = text + "a";
- System.out.println(text);
- inputKey++;
- }
- }
- case 11:
- if (inputKey == 0) {
- if (input.SHIFT.isPressed()) {
- text = text + "S";
- System.out.println(text);
- inputKey++;
- } else {
- text = text + "s";
- System.out.println(text);
- inputKey++;
- }
- }
- case 12:
- if (inputKey == 0) {
- if (input.SHIFT.isPressed()) {
- text = text + "D";
- System.out.println(text);
- inputKey++;
- } else {
- text = text + "d";
- System.out.println(text);
- inputKey++;
- }
- }
- case 13:
- if (inputKey == 0) {
- if (input.SHIFT.isPressed()) {
- text = text + "F";
- System.out.println(text);
- inputKey++;
- } else {
- text = text + "f";
- System.out.println(text);
- inputKey++;
- }
- }
- case 14:
- if (inputKey == 0) {
- if (input.SHIFT.isPressed()) {
- text = text + "G";
- System.out.println(text);
- inputKey++;
- } else {
- text = text + "g";
- System.out.println(text);
- inputKey++;
- }
- }
- case 15:
- if (inputKey == 0) {
- if (input.SHIFT.isPressed()) {
- text = text + "H";
- System.out.println(text);
- inputKey++;
- } else {
- text = text + "h";
- System.out.println(text);
- inputKey++;
- }
- }
- case 16:
- if (inputKey == 0) {
- if (input.SHIFT.isPressed()) {
- text = text + "J";
- System.out.println(text);
- inputKey++;
- } else {
- text = text + "J";
- System.out.println(text);
- inputKey++;
- }
- }
- case 17:
- if (inputKey == 0) {
- if (input.SHIFT.isPressed()) {
- text = text + "K";
- System.out.println(text);
- inputKey++;
- } else {
- text = text + "k";
- System.out.println(text);
- inputKey++;
- }
- }
- case 18:
- if (inputKey == 0) {
- if (input.SHIFT.isPressed()) {
- text = text + "L";
- System.out.println(text);
- inputKey++;
- } else {
- text = text + "l";
- System.out.println(text);
- inputKey++;
- }
- }
- case 19:
- if (inputKey == 0) {
- if (input.SHIFT.isPressed()) {
- text = text + "Z";
- System.out.println(text);
- inputKey++;
- } else {
- text = text + "z";
- System.out.println(text);
- inputKey++;
- }
- }
- case 20:
- if (inputKey == 0) {
- if (input.SHIFT.isPressed()) {
- text = text + "X";
- System.out.println(text);
- inputKey++;
- } else {
- text = text + "x";
- System.out.println(text);
- inputKey++;
- }
- }
- case 21:
- if (inputKey == 0) {
- if (input.SHIFT.isPressed()) {
- text = text + "C";
- System.out.println(text);
- inputKey++;
- } else {
- text = text + "c";
- System.out.println(text);
- inputKey++;
- }
- }
- case 22:
- if (inputKey == 0) {
- if (input.SHIFT.isPressed()) {
- text = text + "V";
- System.out.println(text);
- inputKey++;
- } else {
- text = text + "v";
- System.out.println(text);
- inputKey++;
- }
- }
- case 23:
- if (inputKey == 0) {
- if (input.SHIFT.isPressed()) {
- text = text + "B";
- System.out.println(text);
- inputKey++;
- } else {
- text = text + "b";
- System.out.println(text);
- inputKey++;
- }
- }
- case 24:
- if (inputKey == 0) {
- if (input.SHIFT.isPressed()) {
- text = text + "N";
- System.out.println(text);
- inputKey++;
- } else {
- text = text + "n";
- System.out.println(text);
- inputKey++;
- }
- }
- case 25:
- if (inputKey == 0) {
- if (input.SHIFT.isPressed()) {
- text = text + "M";
- System.out.println(text);
- inputKey++;
- } else {
- text = text + "m";
- System.out.println(text);
- inputKey++;
- }
- }
- case 26:
- if (inputKey == 0) {
- text = text + " ";
- System.out.println(text);
- inputKey++;
- }
- case 27:
- if (inputKey == 0) {
- if (text.length() == 0) {
- return;
- } else {
- text = text.substring(0, text.length()-1);
- System.out.println(text);
- inputKey++;
- }
- }
- case 28:
- if (inputKey == 0) {
- text = text + "1";
- System.out.println(text);
- inputKey++;
- }
- case 29:
- if (inputKey == 0) {
- text = text + "2";
- System.out.println(text);
- inputKey++;
- }
- case 30:
- if (inputKey == 0) {
- text = text + "3";
- System.out.println(text);
- inputKey++;
- }
- case 31:
- if (inputKey == 0) {
- text = text + "4";
- System.out.println(text);
- inputKey++;
- }
- case 32:
- if (inputKey == 0) {
- text = text + "5";
- System.out.println(text);
- inputKey++;
- }
- case 33:
- if (inputKey == 0) {
- text = text + "6";
- System.out.println(text);
- inputKey++;
- }
- case 34:
- if (inputKey == 0) {
- text = text + "7";
- System.out.println(text);
- inputKey++;
- }
- case 35:
- if (inputKey == 0) {
- text = text + "8";
- System.out.println(text);
- inputKey++;
- }
- case 36:
- if (inputKey == 0) {
- text = text + "9";
- System.out.println(text);
- inputKey++;
- }
- case 37:
- if (inputKey == 0) {
- text = text + "0";
- System.out.println(text);
- inputKey++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement