Bind a mouse click trigger to an action.
(&mut self, button: mouse::Button, action: ClickAction)
| 186 | |
| 187 | /// Bind a mouse click trigger to an action. |
| 188 | pub fn bind_click(&mut self, button: mouse::Button, action: ClickAction) -> &mut Self { |
| 189 | self.click.insert(button, action); |
| 190 | self |
| 191 | } |
| 192 | |
| 193 | /// Remove a mouse click binding. |
| 194 | pub fn unbind_click(&mut self, button: mouse::Button) -> Option<ClickAction> { |