Jump to content

Apertar e soltar bind


Recommended Posts

Por favor, não crie outro tópico se você já criou outro relacionado, basta responder no outro.

#Topic

bindKey("key", "both", function( key, keyState )
	if keyState == "down" then
		-- a tecla foi pressionada
		color = tocolor(r, g, b, a)
	else
		-- a tecla foi solta
		color = tocolor(r, g, b, a)
	end
end)

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...