Scrolling with keys

Dar Scott dsc at swcp.com
Tue Jun 24 16:38:01 EDT 2003


On Monday, June 23, 2003, at 03:35 PM, Dar Scott wrote:

> on rawKeyDown keyCode
>   if keyCode is rightArrow then put true into toTheRight
>   if keyCode is leftArrow  then put true into toTheLeft
>   updateMoving
> end rawKeyDown
>
> on rawKeyUp keyCode
>   if keyCode is rightArrow then put false into toTheRight
>   if keyCode is leftArrow  then put false into toTheLeft
>   updateMoving
> end rawKeyUp

You might want to pass if the keyCode is neither.

Dar Scott




More information about the use-livecode mailing list