資訊
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.

MouseDevice.MouseMoved | mousemoved Event

在移動滑鼠指標時發生。

語法


function onMouseMoved(eventArgs) { /* 您的程式碼 */ }
 
// addEventListener syntax
mouseDevice.addEventListener("mousemoved", onMouseMoved);
mouseDevice.removeEventListener("mousemoved", onMouseMoved);
 
- or -

mouseDevice.onmousemoved = onMouseMoved;


事件資訊

委派 TypedEventHandler<MouseDevice, MouseEventArgs>

備註

Windows Phone 8

這個應用程式開發介面不會實作,而且如果呼叫的話,會擲回例外狀況。請參閱 Windows Phone 執行階段 API

需求

支援的最小用戶端

Windows 8

支援的最小伺服器

Windows Server 2012

支援的最小電話

Windows Phone 8 [未實作,請參閱備註]

命名空間

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

Metadata

Windows.winmd

請參閱

MouseDevice

 

 

顯示:
© 2015 Microsoft