GetDeviceStatus
擷取輸入裝置目前的狀態。語法
參數
此方法沒有參數。傳回值
類型:GameInputDeviceStatus 傳回的值是列舉類型GameInputDeviceStatus。傳回的值可能是 GameInputDeviceStatus 中列舉旗標值的組合。
備註
傳回的 GameInputDeviceStatus 列舉會定義裝置是否已連線,以及遊戲與裝置之間可傳輸的輸入和輸出類型。如果在裝置已從系統中斷連線時呼叫GetDeviceStatus 方法,則會傳回 GameInputDeviceNoStatus 值。您可以將 GameInputDeviceStatus 列舉當作 RegisterDeviceCallback 方法的篩選條件,以回應裝置狀態的特定變更。
需求
標頭: GameInput.h GameInput 概觀GameInputDeviceStatus
RegisterDeviceCallback
IGameInputDevice
