View Source Scenic.Primitive.Style.Input (Scenic v0.11.2)
Flags whether or not track cursor_button
events on this primitive.
Example:
graph
|> rect( {100, 200}, id: :my_rect, input: :cursor_button )
data-format
Data Format
The data for the input style is the type of input you want to receive when the cursor is positioned over the primitive. This can be any single member or combination (in a list) of the following input types
:cursor_button
- Went when a button on the cursor (mouse) was used.:cursor_pos
- Sent when the cursor moves over the primitive.:cursor_scroll
- Sent when the cursor's scroll wheel moves.
graph
|> rect( {100, 200}, id: :my_rect, input: [:cursor_button, :cursor_pos] )