Windows Dev Center

MouseCapabilities.SwapButtons | swapButtons property

Gets a value indicating whether any of the mice connected to the computer has swapped left and right buttons.

Syntax


Public ReadOnly Property SwapButtons As Integer

Property value

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

A value indicating whether any of the mice connected to the computer has swapped left and right buttons.

Examples

The following code shows how to use this method.


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

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

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:
© 2015 Microsoft