A newer version of Max is available. Click here to access the latest version of the documentation

mousefilter Reference

Gate messages with the mouse

mousefilter

Description

Allows messages to pass only when the mouse button is up (un-clicked).

Examples

Nothing gets through unless the mouse is up

Discussion

This object is useful when the slider's output initiates a time-consuming process which would otherwise destroy the "feel" of the user interface.

Arguments

None.

Attributes

Common Box Attributes

Messages

bang

If the mouse button is up, the bang is sent out the outlet. Otherwise, the bang is ignored.

int

Arguments

input [int]
If the mouse button is up, the number is sent out the outlet. Otherwise, the number is ignored.

float

Arguments

input [float]
If the mouse button is up, the number is sent out the outlet. Otherwise, the number is ignored.

list

Arguments

input [list]
If the mouse button is up, the list is sent out the outlet. Otherwise, the list is ignored.

anything

Arguments

input [list]
Performs the same as list.

Output

int

The number received in the inlet is sent out only if the mouse button is up.

See Also

Name Description
mousestate
Max Basic Tutorial 8: Keyboard and Mouse Input Max Basic Tutorial 8: Keyboard and Mouse Input