To try out this example: Click once inside, hold down UP/DOWN arrow keys to move forward/backward, hold down LEFT/RIGHT arrow keys to pan left/right, hold down SPACEBAR to fly up (see if you can spot the pterodactyl)

Draggable Mask

Use of mask and mouse event handling

To try out this example: Click and drag the black rectangle (the x-ray block) around.