You can find this sample in the tutorial project: Scenes -> Basics -> Mouse input
This C# basics tutorial covers how to handle mouse input. We can check for the existance of a mouse and then we can use various methods to check if a mouse buttons are clicked, held down or released. We can also for the mouse wheel being scrolled and clicked.
[!code-csharpEntity]