Skip to content

Instantly share code, notes, and snippets.

@ToxicFrog
Forked from anonymous/gist:9717442
Last active August 29, 2015 13:57
Show Gist options
  • Save ToxicFrog/9717649 to your computer and use it in GitHub Desktop.
Save ToxicFrog/9717649 to your computer and use it in GitHub Desktop.
math.randomseed(os.time())
local keys = { "A", "B", "start", "select", "up", "down", "left", "right" }
function randkey()
local key = keys[math.random(1,8)]
local input = joypad.get(1)
input[key] = true
joypad.set(1, input)
end
vba.registerbefore(randkey)
@AViscatanius
Copy link

I love it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment