Restricting Cursors to a Screen Region

You can restrict a mouse pointer to a specific region of the window. In the Quiz sample, players are restricted to their own question region on the screen. When a player’s mouse pointer attempts to exit this region, it is restricted from exiting by calling the MultipointMouseDevice.SetPosition method.

For more information, see Microsoft.Multipoint.Sdk.Samples.Quiz.Model.PlayerManager.HandleMouseMovement.

Show: