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 end
local JOYPORT_BITS = { local JOYPORT_BITS = {
UP = 0, UP = 0x01,
DOWN = 1, DOWN = 0x02,
LEFT = 2, LEFT = 0x04,
RIGHT = 3, RIGHT = 0x08,
A = 4, A = 0x10,
B = 5, B = 0x20,
SELECT = 6, SELECT = 0x40,
START = 7, START = 0x80,
} }
local function processJoyportSet(command) local function processJoyportSet(command)