MouseButton constructor
MouseButton(
- int buttonID
Implementation
MouseButton(this.buttonID) {
switch (buttonID) {
case 0:
buttonName = 'LMB'; // Left Mouse Button
break;
case 1:
buttonName = 'MMB'; // Middle Mouse Button
break;
case 2:
buttonName = 'RMB'; // Right Mouse Button
break;
default:
buttonName = 'Unknown button';
break;
}
}