1 /** 2 * Defines the Mouse input device. 3 */ 4 module dash.utility.input.mouse; 5 import dash.utility.input.inputsystem; 6 7 /// Defines the Mouse input device. 8 alias Mouse = InputSystem!( MouseButtons, MouseAxes ); 9 10 package: 11 // Enums of inputs 12 enum MouseButtons 13 { 14 Left = 0x01, /// Left mouse button 15 Right = 0x02, /// Right mouse button 16 Middle = 0x04, /// Middle mouse button 17 X1 = 0x05, /// X1 mouse button 18 X2 = 0x06, /// X2 mouse button 19 END, 20 } 21 22 /// Axes of input for the mouse. 23 enum MouseAxes 24 { 25 ScrollWheel, 26 XPos, 27 YPos, 28 END, 29 }