Microsoft DirectX 8.0 (Visual Basic) |
デバイス イメージに関する情報を格納する。この型は、 DirectInputDevice8.GetImageInfo メソッドに渡される。リターン時に、デバイスに関する情報と、デバイス構成プロパティ シートでデバイスを表すイメージに関する情報が格納される。
Type DIDEVICEIMAGEINFOHEADER Axes As Long Buttons As Long ImageCount As Long Images() As DIDEVICEIMAGEINFO POVs As Long Views As Long End Type
この型を DirectInputDevice8.GetImageInfo に渡す前に、アプリケーションは、次のように ImageCount メンバと Images メンバを初期化しなければならない。
' didev は DirectInputDevice8 オブジェクトであると仮定する。 Dim count as Integer Dim diImageInfoHdr count = didev.GetImageInfoCount With diImageInfoHdr ImageCount = count ReDim Images(count) End With
型のメンバのうち ImageCount 以外は、メソッド呼び出しによりデータが設定される。