I am adapting the 3D Tutorial to use a mouse as input rather than an XBox Controller.  The doc leads me to the following:

  1. When your game starts, assign the game's window to the mouse by setting the static WindowHandle property of the Mouse class. Often, you'll set this to the Window property of your derived Game class.

My question is how and where should this assignment happen



Got it -

Mouse.WindowHandle = this.Window.Handle;


But where does the Window.Handle property come from

Re: Game Technologies: General Setting WindowHandle Property

Pieter Germishuys

The property comes from the Control that will host the Device. This device can be a mouse or a Direct3D device.