make keyboard use vkey codes; add 4x4 rom

This commit is contained in:
Redo0 2021-05-25 05:18:55 -05:00
parent ce07ef3263
commit 95164ab7bf
3 changed files with 1068 additions and 93 deletions

View File

@ -0,0 +1,866 @@
4 4 1
SPECIAL
bbbb
bbbb
bbbb
bbbb
1
0 0 0
4 4 1
COVERAGE:
1 : 16
1 : 16
1 : 4
1 : 4
1 : 4
1 : 4
----------------top quads:
1
TEX:PRINT
POSITION:
2 2 0.5
2 -2 0.5
-2 -2 0.5
-2 2 0.5
UV COORDS:
1 0
1 1
0 1
0 0
NORMALS:
0 0 1
0 0 1
0 0 1
0 0 1
----------------bottom quads:
5
TEX:BOTTOMLOOP
POSITION:
1.5 -1.5 -0.5
1.5 1.5 -0.5
-1.5 1.5 -0.5
-1.5 -1.5 -0.5
UV COORDS:
0 0
0 3
3 3
3 0
NORMALS:
0 0 -1
0 0 -1
0 0 -1
0 0 -1
TEX:BOTTOMEDGE
POSITION:
-2 -2 -0.5
2 -2 -0.5
1.5 -1.5 -0.5
-1.5 -1.5 -0.5
UV COORDS:
-0.5 0
3.5 0
3 0.5
0 0.5
NORMALS:
0 0 -1
0 0 -1
0 0 -1
0 0 -1
TEX:BOTTOMEDGE
POSITION:
2 2 -0.5
-2 2 -0.5
-1.5 1.5 -0.5
1.5 1.5 -0.5
UV COORDS:
-0.5 0
3.5 0
3 0.5
0 0.5
NORMALS:
0 0 -1
0 0 -1
0 0 -1
0 0 -1
TEX:BOTTOMEDGE
POSITION:
2 -2 -0.5
2 2 -0.5
1.5 1.5 -0.5
1.5 -1.5 -0.5
UV COORDS:
-0.5 0
3.5 0
3 0.5
0 0.5
NORMALS:
0 0 -1
0 0 -1
0 0 -1
0 0 -1
TEX:BOTTOMEDGE
POSITION:
-2 2 -0.5
-2 -2 -0.5
-1.5 -1.5 -0.5
-1.5 1.5 -0.5
UV COORDS:
-0.5 0
3.5 0
3 0.5
0 0.5
NORMALS:
0 0 -1
0 0 -1
0 0 -1
0 0 -1
----------------north quads:
6
TEX:SIDE
POSITION:
-2 2 0.5
-2 2 -0.5
2 2 -0.5
2 2 0.5
UV COORDS:
0.9892578125 -0.0859375
0.9892578125 1.0859375
0.0107421875 1.0859375
0.0107421875 -0.0859375
NORMALS:
0 1 0
0 1 0
0 1 0
0 1 0
TEX:SIDE
POSITION:
1.82 2.25 -0.24
1.18 2.25 -0.24
1.1 2 -0.3
1.9 2 -0.3
UV COORDS:
0.5 0.5
0.5 0.5
0.5 0.5
0.5 0.5
COLORS:
1 1 1 1
1 1 1 1
1 1 1 1
1 1 1 1
NORMALS:
-0 0.095561 -0.995424
-0 0.095561 -0.995424
-0 0.095561 -0.995424
-0 0.095561 -0.995424
TEX:SIDE
POSITION:
1.82 2.25 -0.24
1.82 2.25 0.24
1.18 2.25 0.24
1.18 2.25 -0.24
UV COORDS:
0.5 0.5
0.5 0.5
0.5 0.5
0.5 0.5
COLORS:
1 1 1 1
1 1 1 1
1 1 1 1
1 1 1 1
NORMALS:
0 1 0
0 1 0
0 1 0
0 1 0
TEX:SIDE
POSITION:
1.18 2.25 0.24
1.82 2.25 0.24
1.9 2 0.3
1.1 2 0.3
UV COORDS:
0.5 0.5
0.5 0.5
0.5 0.5
0.5 0.5
COLORS:
1 1 1 1
1 1 1 1
1 1 1 1
1 1 1 1
NORMALS:
-0 0.095561 0.995424
-0 0.095561 0.995424
-0 0.095561 0.995424
-0 0.095561 0.995424
TEX:SIDE
POSITION:
1.18 2.25 -0.24
1.18 2.25 0.24
1.1 2 0.3
1.1 2 -0.3
UV COORDS:
0.5 0.5
0.5 0.5
0.5 0.5
0.5 0.5
COLORS:
1 1 1 1
1 1 1 1
1 1 1 1
1 1 1 1
NORMALS:
-0.952424 0.304776 0
-0.952424 0.304776 0
-0.952424 0.304776 0
-0.952424 0.304776 0
TEX:SIDE
POSITION:
1.82 2.25 0.24
1.82 2.25 -0.24
1.9 2 -0.3
1.9 2 0.3
UV COORDS:
0.5 0.5
0.5 0.5
0.5 0.5
0.5 0.5
COLORS:
1 1 1 1
1 1 1 1
1 1 1 1
1 1 1 1
NORMALS:
0.952424 0.304776 0
0.952424 0.304776 0
0.952424 0.304776 0
0.952424 0.304776 0
----------------east quads:
6
TEX:SIDE
POSITION:
2 -2 0.5
2 2 0.5
2 2 -0.5
2 -2 -0.5
UV COORDS:
0.0107421875 -0.0859375
0.9892578125 -0.0859375
0.9892578125 1.0859375
0.0107421875 1.0859375
NORMALS:
1 0 0
1 0 0
1 0 0
1 0 0
TEX:SIDE
POSITION:
2.14 -1.9 -0.3
2.14 -1.1 -0.3
2 -1.1 -0.3
2 -1.9 -0.3
UV COORDS:
0.5 0.5
0.5 0.5
0.5 0.5
0.5 0.5
COLORS:
1 1 1 1
1 1 1 1
1 1 1 1
1 1 1 1
NORMALS:
0 0 -1
0 0 -1
0 0 -1
0 0 -1
TEX:SIDE
POSITION:
2.14 -1.9 -0.3
2.14 -1.9 0.3
2.14 -1.1 0.3
2.14 -1.1 -0.3
UV COORDS:
0.5 0.5
0.5 0.5
0.5 0.5
0.5 0.5
COLORS:
1 1 1 1
1 1 1 1
1 1 1 1
1 1 1 1
NORMALS:
1 0 0
1 0 0
1 0 0
1 0 0
TEX:SIDE
POSITION:
2.14 -1.1 0.3
2.14 -1.9 0.3
2 -1.9 0.3
2 -1.1 0.3
UV COORDS:
0.5 0.5
0.5 0.5
0.5 0.5
0.5 0.5
COLORS:
1 1 1 1
1 1 1 1
1 1 1 1
1 1 1 1
NORMALS:
0 0 1
0 0 1
0 0 1
0 0 1
TEX:SIDE
POSITION:
2.14 -1.1 -0.3
2.14 -1.1 0.3
2 -1.1 0.3
2 -1.1 -0.3
UV COORDS:
0.5 0.5
0.5 0.5
0.5 0.5
0.5 0.5
COLORS:
1 1 1 1
1 1 1 1
1 1 1 1
1 1 1 1
NORMALS:
0 1 0
0 1 0
0 1 0
0 1 0
TEX:SIDE
POSITION:
2.14 -1.9 0.3
2.14 -1.9 -0.3
2 -1.9 -0.3
2 -1.9 0.3
UV COORDS:
0.5 0.5
0.5 0.5
0.5 0.5
0.5 0.5
COLORS:
1 1 1 1
1 1 1 1
1 1 1 1
1 1 1 1
NORMALS:
0 -1 0
0 -1 0
0 -1 0
0 -1 0
----------------south quads:
21
TEX:SIDE
POSITION:
2 -2 0.5
2 -2 -0.5
-2 -2 -0.5
-2 -2 0.5
UV COORDS:
0.9892578125 -0.0859375
0.9892578125 1.0859375
0.0107421875 1.0859375
0.0107421875 -0.0859375
NORMALS:
0 -1 0
0 -1 0
0 -1 0
0 -1 0
TEX:SIDE
POSITION:
1.1 -2.14 -0.3
1.9 -2.14 -0.3
1.9 -2 -0.3
1.1 -2 -0.3
UV COORDS:
0.5 0.5
0.5 0.5
0.5 0.5
0.5 0.5
COLORS:
1 1 1 1
1 1 1 1
1 1 1 1
1 1 1 1
NORMALS:
0 0 -1
0 0 -1
0 0 -1
0 0 -1
TEX:SIDE
POSITION:
1.1 -2.14 -0.3
1.1 -2.14 0.3
1.9 -2.14 0.3
1.9 -2.14 -0.3
UV COORDS:
0.5 0.5
0.5 0.5
0.5 0.5
0.5 0.5
COLORS:
1 1 1 1
1 1 1 1
1 1 1 1
1 1 1 1
NORMALS:
0 -1 0
0 -1 0
0 -1 0
0 -1 0
TEX:SIDE
POSITION:
1.9 -2.14 0.3
1.1 -2.14 0.3
1.1 -2 0.3
1.9 -2 0.3
UV COORDS:
0.5 0.5
0.5 0.5
0.5 0.5
0.5 0.5
COLORS:
1 1 1 1
1 1 1 1
1 1 1 1
1 1 1 1
NORMALS:
0 0 1
0 0 1
0 0 1
0 0 1
TEX:SIDE
POSITION:
1.9 -2.14 -0.3
1.9 -2.14 0.3
1.9 -2 0.3
1.9 -2 -0.3
UV COORDS:
0.5 0.5
0.5 0.5
0.5 0.5
0.5 0.5
COLORS:
1 1 1 1
1 1 1 1
1 1 1 1
1 1 1 1
NORMALS:
1 0 0
1 0 0
1 0 0
1 0 0
TEX:SIDE
POSITION:
1.1 -2.14 0.3
1.1 -2.14 -0.3
1.1 -2 -0.3
1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1 1 1 1
1 1 1 1
NORMALS:
0 0 -1
0 0 -1
0 0 -1
0 0 -1
TEX:SIDE
POSITION:
-1.9 -2.14 -0.3
-1.9 -2.14 0.3
-1.1 -2.14 0.3
-1.1 -2.14 -0.3
UV COORDS:
0.5 0.5
0.5 0.5
0.5 0.5
0.5 0.5
COLORS:
1 1 1 1
1 1 1 1
1 1 1 1
1 1 1 1
NORMALS:
0 -1 0
0 -1 0
0 -1 0
0 -1 0
TEX:SIDE
POSITION:
-1.1 -2.14 0.3
-1.9 -2.14 0.3
-1.9 -2 0.3
-1.1 -2 0.3
UV COORDS:
0.5 0.5
0.5 0.5
0.5 0.5
0.5 0.5
COLORS:
1 1 1 1
1 1 1 1
1 1 1 1
1 1 1 1
NORMALS:
0 0 1
0 0 1
0 0 1
0 0 1
TEX:SIDE
POSITION:
-1.1 -2.14 -0.3
-1.1 -2.14 0.3
-1.1 -2 0.3
-1.1 -2 -0.3
UV COORDS:
0.5 0.5
0.5 0.5
0.5 0.5
0.5 0.5
COLORS:
1 1 1 1
1 1 1 1
1 1 1 1
1 1 1 1
NORMALS:
1 0 0
1 0 0
1 0 0
1 0 0
TEX:SIDE
POSITION:
-1.9 -2.14 0.3
-1.9 -2.14 -0.3
-1.9 -2 -0.3
-1.9 -2 0.3
UV COORDS:
0.5 0.5
0.5 0.5
0.5 0.5
0.5 0.5
COLORS:
1 1 1 1
1 1 1 1
1 1 1 1
1 1 1 1
NORMALS:
-1 0 0
-1 0 0
-1 0 0
-1 0 0
----------------west quads:
1
TEX:SIDE
POSITION:
-2 -2 -0.5
-2 2 -0.5
-2 2 0.5
-2 -2 0.5
UV COORDS:
0.9892578125 1.0859375
0.0107421875 1.0859375
0.0107421875 -0.0859375
0.9892578125 -0.0859375
NORMALS:
-1 0 0
-1 0 0
-1 0 0
-1 0 0
----------------omni quads:
0

View File

@ -0,0 +1,101 @@
datablock fxDtsBrickData(LogicGate_Rom4x4_Data){
brickFile = $LuaLogic::Path @ "bricks/gen/newbricks/ROM 4x4.blb";
iconName = $LuaLogic::Path @ "bricks/gen/newicons/ROM 4x4";
category = "Logic Bricks";
subCategory = "Special I/O";
uiName = "ROM 4x4";
logicUIName = "ROM 4x4";
logicUIDesc = "";
hasPrint = 1;
printAspectRatio = "Logic";
logicBrickSize = "4 4 1";
orientationFix = 3;
isLogic = true;
isLogicGate = true;
isLogicInput = false;
logicInit =
"return function(gate) " @
" gate.romdata = {} " @
" for i = 0, 15 do " @
" gate.romdata[i] = false " @
" end " @
"end"
;
logicInput =
"return function(gate, args) " @
" local data = args[1] " @
" for i = 1, #data do " @
" local c = data:sub(i, i) " @
" gate.romdata[i-1] = (c==\"1\") " @
" end " @
" Gate.queue(gate, 0) " @
"end"
;
logicUpdate =
"return function(gate) " @
" if Gate.getportstate(gate, 6) then " @
" Gate.setportstate(gate, 5, gate.romdata[( " @
" (Gate.getportstate(gate, 1) and 1 or 0) " @
" + (Gate.getportstate(gate, 2) and 2 or 0) " @
" + (Gate.getportstate(gate, 3) and 4 or 0) " @
" + (Gate.getportstate(gate, 4) and 8 or 0) " @
" )]) " @
" else " @
" Gate.setportstate(gate, 5, false) " @
" end " @
"end"
;
logicGlobal = "";
numLogicPorts = 6;
isLogicRom = true;
logicRomY = 4;
logicRomX = 4;
logicPortType[0] = 1;
logicPortPos[0] = "3 -3 0";
logicPortDir[0] = 3;
logicPortUIName[0] = "Addr0";
logicPortCauseUpdate[0] = true;
logicPortType[1] = 1;
logicPortPos[1] = "1 -3 0";
logicPortDir[1] = 3;
logicPortUIName[1] = "Addr1";
logicPortCauseUpdate[1] = true;
logicPortType[2] = 1;
logicPortPos[2] = "-1 -3 0";
logicPortDir[2] = 3;
logicPortUIName[2] = "Addr2";
logicPortCauseUpdate[2] = true;
logicPortType[3] = 1;
logicPortPos[3] = "-3 -3 0";
logicPortDir[3] = 3;
logicPortUIName[3] = "Addr3";
logicPortCauseUpdate[3] = true;
logicPortType[4] = 0;
logicPortPos[4] = "3 3 0";
logicPortDir[4] = 1;
logicPortUIName[4] = "Out";
logicPortType[5] = 1;
logicPortPos[5] = "3 -3 0";
logicPortDir[5] = 2;
logicPortUIName[5] = "In";
logicPortCauseUpdate[5] = true;
};
function LogicGate_Rom4x4_Data::Logic_onAdd(%data, %brick) {
lualogic_rom_updatedata(%brick);
}

View File

@ -8,104 +8,112 @@ keyboard_strToBool = {
--Key codes may use only 7 bits, so values must be in range 00-7F
keyboard_keyToCode = {
["backspace"] = 0x01,
["tab"] = 0x02,
["return"] = 0x03,
["space"] = 0x04,
["end"] = 0x05,
["home"] = 0x06,
["left"] = 0x07,
["up"] = 0x08,
["right"] = 0x09,
["down"] = 0x0A,
["insert"] = 0x0B,
["delete"] = 0x0C,
["backspace"] = 8,
["tab"] = 9,
["return"] = 13,
["0"] = 0x10,
["1"] = 0x11,
["2"] = 0x12,
["3"] = 0x13,
["4"] = 0x14,
["5"] = 0x15,
["6"] = 0x16,
["7"] = 0x17,
["8"] = 0x18,
["9"] = 0x19,
["lshift"] = 16,
["lcontrol"] = 17,
["lalt"] = 18,
["a"] = 0x1A,
["b"] = 0x1B,
["c"] = 0x1C,
["d"] = 0x1D,
["e"] = 0x1E,
["f"] = 0x1F,
["g"] = 0x20,
["h"] = 0x21,
["i"] = 0x22,
["j"] = 0x23,
["k"] = 0x24,
["l"] = 0x25,
["m"] = 0x26,
["n"] = 0x27,
["o"] = 0x28,
["p"] = 0x29,
["q"] = 0x2A,
["r"] = 0x2B,
["s"] = 0x2C,
["t"] = 0x2D,
["u"] = 0x2E,
["v"] = 0x2F,
["w"] = 0x30,
["x"] = 0x31,
["y"] = 0x32,
["z"] = 0x33,
-- this block does not match vkey codes
["rshift"] = 20,
["rcontrol"] = 21,
["ralt"] = 22,
["numpad0"] = 0x40,
["numpad1"] = 0x41,
["numpad2"] = 0x42,
["numpad3"] = 0x43,
["numpad4"] = 0x44,
["numpad5"] = 0x45,
["numpad6"] = 0x46,
["numpad7"] = 0x47,
["numpad8"] = 0x48,
["numpad9"] = 0x49,
["*"] = 0x4A,
["+"] = 0x4B,
["numpadenter"] = 0x4C,
["minus"] = 0x4D,
["numpaddecimal"] = 0x4E,
["/"] = 0x4F,
-- this block does not match vkey codes
[";"] = 24,
["="] = 25,
[","] = 26,
["."] = 27,
["/"] = 29,
["`"] = 30,
["f1"] = 0x51,
["f2"] = 0x52,
["f3"] = 0x53,
["f4"] = 0x54,
["f5"] = 0x55,
["f6"] = 0x56,
["f7"] = 0x57,
["f8"] = 0x58,
["f9"] = 0x59,
["f10"] = 0x5A,
["f11"] = 0x5B,
["f12"] = 0x5C,
["space"] = 32,
["pageup"] = 33,
["pagedown"] = 34,
["end"] = 35,
["home"] = 36,
["left"] = 37,
["up"] = 38,
["right"] = 39,
["down"] = 40,
["insert"] = 45,
["delete"] = 46,
["lshift"] = 0x60,
["rshift"] = 0x61,
["lcontrol"] = 0x62,
["rcontrol"] = 0x63,
["lalt"] = 0x64,
["ralt"] = 0x65,
["0"] = 48,
["1"] = 49,
["2"] = 50,
["3"] = 51,
["4"] = 52,
["5"] = 53,
["6"] = 54,
["7"] = 55,
["8"] = 56,
["9"] = 57,
[";"] = 0x70,
[","] = 0x71,
["."] = 0x72,
["/"] = 0x73,
["`"] = 0x74,
["["] = 0x75,
["\\"] = 0x76,
["]"] = 0x77,
["="] = 0x78,
["apostrophe"] = 0x79,
-- this block does not match vkey codes
["["] = 60,
["\\"] = 61,
["]"] = 62,
["apostrophe"] = 63,
["invalid"] = 0x7F,
["a"] = 65,
["b"] = 66,
["c"] = 67,
["d"] = 68,
["e"] = 69,
["f"] = 70,
["g"] = 71,
["h"] = 72,
["i"] = 73,
["j"] = 74,
["k"] = 75,
["l"] = 76,
["m"] = 77,
["n"] = 78,
["o"] = 79,
["p"] = 80,
["q"] = 81,
["r"] = 82,
["s"] = 83,
["t"] = 84,
["u"] = 85,
["v"] = 86,
["w"] = 87,
["x"] = 88,
["y"] = 89,
["z"] = 90,
["numpad0"] = 96,
["numpad1"] = 97,
["numpad2"] = 98,
["numpad3"] = 99,
["numpad4"] = 100,
["numpad5"] = 101,
["numpad6"] = 102,
["numpad7"] = 103,
["numpad8"] = 104,
["numpad9"] = 105,
["*"] = 106,
["+"] = 107,
["numpadenter"] = 108,
["minus"] = 109,
["numpaddecimal"] = 110,
["/"] = 111,
["f1"] = 112,
["f2"] = 113,
["f3"] = 114,
["f4"] = 115,
["f5"] = 116,
["f6"] = 117,
["f7"] = 118,
["f8"] = 119,
["f9"] = 120,
["f10"] = 121,
["f11"] = 122,
["f12"] = 123,
["invalid"] = 127,
}