User File #67926281740058858

Upload All User Files

#67926281740058858 - keyCheck.lua

KeyCheck.lua
284 downloads
Uploaded 12/7/2020 1:29 AM by CoolHandMike (see all 27)
Displays all the key names for the controllers. Good for accessing lua table buttons when you retrieve a table via joypad.get(1) for example
No idea where this was from originally.
local function KeyCheck()
    local T= joypad.get()
    local y= 2
    for k,v in pairs(T) do
        gui.text(2,y,k)
        y=y+15
    end
end
--gui.register(KeyCheck)


while true do
	KeyCheck();
    emu.frameadvance();
end