How to simulate a hardware shutter button in an emulator?

In addition to the soft keys, I would like to check how my application responds to the hardware shutter buttons (for example, various half-press states, full press, release the button, etc.).

The emulator does not seem to have a hardware shutter button (unless I am missing something). So, in the absence of a real device, how can I test this functionality?

+5
source share
4 answers

The F7-Key is displayed in the emulator on the fully pressed shutter button of the camera, and the F6 key is displayed on the half-press shutter button.

Visual Studio 2010 Express Windows Phone ( , ...)

+8

, . :

// Constructor
public MainPage()
{
    InitializeComponent();

    CameraButtons.ShutterKeyHalfPressed +=new EventHandler(CameraButtons_ShutterKeyHalfPressed);

    CameraButtons_ShutterKeyHalfPressed(this, new EventArgs());
}

void CameraButtons_ShutterKeyHalfPressed(object sender, EventArgs e)
{
    Debug.WriteLine("HALF_PRESSED");
}

, " " , .

+1

, , ;-) , !

0

All Articles