how2bitmask
This commit is contained in:
parent
b48c166527
commit
40e332a7d2
1 changed files with 8 additions and 8 deletions
16
commands.lua
16
commands.lua
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue