AutoPlay Media Studio 9

System.IsKeyDown

System.IsKeyDown

This is the first topic This is the last topic  

System.IsKeyDown

This is the first topic This is the last topic  

OverviewExamples

boolean System.IsKeyDown (

number Key )

Example 1

if System.IsKeyDown(13) then

-- The user is holding down the 'enter' key

end

Checks if the 'enter' key is down.

Example 2

-- Check if the left mouse button is down (Virtual Key Code = 1)

bisLeftDown = System.IsKeyDown(1);

 

if bisLeftDown then

-- The left mouse button is currently pressed

else

-- The left mouse button is NOT currently pressed

end

Checks if the left mouse button is down.

See also: Related Actions


Learn More: Indigo Rose Software - AutoPlay Media Studio - Buy Now - Contact Us