toName static method
Returns a human-readable name for a mouse button code.
Implementation
static String toName(int button) {
switch (button) {
case none:
return 'none';
case left:
return 'left';
case middle:
return 'middle';
case right:
return 'right';
case wheelUp:
return 'wheelup';
case wheelDown:
return 'wheeldown';
case wheelLeft:
return 'wheelleft';
case wheelRight:
return 'wheelright';
case backward:
return 'backward';
case forward:
return 'forward';
case button10:
return 'button10';
case button11:
return 'button11';
default:
return '';
}
}