Factorio.com|Forums|Wiki|Mod Portal|API Docs

# Factorio Runtime Docs Version 2.0.77

# MouseButtonFlags - Runtime Docs

## MouseButtonFlags :: dictionary[union → `true`]

A set of flags. Active flags are in the dictionary as `true`, while inactive flags aren't present at all.

To write to this, use an array[string] of the mouse buttons that should be possible to use with on button. The flag `"left-and-right"` can also be set, which will set `"left"` and `"right"` to `true`.

#### Union members

`"left"` |
`"right"` |
`"middle"` |
`"button-4"` |
`"button-5"` |
`"button-6"` |
`"button-7"` |
`"button-8"` |
`"button-9"` |

Concept used in

- LuaGuiElement::add()
- LuaGuiElement::mouse_button_filter