getButtonInfo method

MouseButtonInfo getButtonInfo(
  1. MouseButton button
)

Implementation

MouseButtonInfo getButtonInfo(MouseButton button) => switch (button) {
  .MOUSE_BUTTON_LEFT => btnLeft,
  .MOUSE_BUTTON_RIGHT => btnRight,
  .MOUSE_BUTTON_MIDDLE => btnMiddle,
  .MOUSE_BUTTON_SIDE => btnSide,
  .MOUSE_BUTTON_EXTRA => btnExtra,
  .MOUSE_BUTTON_FORWARD => btnForward,
  .MOUSE_BUTTON_BACK => btnBack,
};