-
-
Save ToxicFrog/9717649 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I love it.