how2bitmask

This commit is contained in:
Empathic Qubit 2021-11-27 03:17:08 +01:00
parent b48c166527
commit 40e332a7d2

View file

@ -341,14 +341,14 @@ return function(server)
end
local JOYPORT_BITS = {
UP = 0,
DOWN = 1,
LEFT = 2,
RIGHT = 3,
A = 4,
B = 5,
SELECT = 6,
START = 7,
UP = 0x01,
DOWN = 0x02,
LEFT = 0x04,
RIGHT = 0x08,
A = 0x10,
B = 0x20,
SELECT = 0x40,
START = 0x80,
}
local function processJoyportSet(command)