Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MouseCapabilities.VerticalWheelPresent | verticalWheelPresent property

Applies to Windows and Windows Phone

Gets a value indicating whether any of the mice connected to the computer have a scroll wheel that rolls up and down (usually for vertical scrolling).

Syntax


var verticalWheelPresent = mouseCapabilities.verticalWheelPresent;

Property value

Type: Number [JavaScript] | System.Int32 [.NET] | int32 [C++]

The number of vertical wheels detected. Typically 0 or 1.

Examples

The following code shows how to use this method.


    function getMouseCapabilities() {
        var mouseCapabilities = new Windows.Devices.Input.MouseCapabilities();
        id("verticalWheelPresent").innerHTML = mouseCapabilities.VerticalWheelPresent;
    }

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Devices.Input
Windows::Devices::Input [C++]

Metadata

Windows.winmd

See also

MouseCapabilities
Quickstarts
Quickstart: Identifying input devices

 

 

Show:
© 2014 Microsoft