Mouse Navigation (Windows Embedded CE 6.0)
1/6/2010
DVD-Video navigation is designed around the idea that users will navigate through on-screen buttons by moving the highlight from one button to the next using up, down, left, and right directional keys. This is the navigation method most commonly found in commercial DVD-Video players.
Each button's navigational neighbors are permanently defined during the DVD-Video authoring process. In this navigation scheme, a user can only cause the highlight to move to one of a button's neighbors. A button can have, at most, four neighbors.
The DVD-Video API allows you to create applications that allow users to select any button on the screen at any time using a mouse, stylus, or other random-access pointing device. This allows users to completely bypass the navigational network authored in the DVD-Video recording.
In this random-access navigation, your application can determine which button users selected by comparing the screen coordinates of their selection point to the button layout information defined in the DVD-Video recording. Use the IDVDHighlightInfo::GetButtonPositionInfo method to obtain the coordinates of the buttons relative to the video image. Your application must map these video coordinates to the screen coordinates of your device.
Once you have determined which button a user chose, you can pass that button number to IDVDNavigationManager::ButtonSelectDirect to activate the choice.