ホーム › UI.Input.GameInput › IGameInputRawDeviceReport
IGameInputRawDeviceReport
COMメソッド 9
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 void GetDevice(IGameInputDevice** device)
| device | IGameInputDevice** | out | このレポートが属するデバイス(IGameInputDevice)を受け取る。 |
vtbl 4 GameInputRawDeviceReportInfo* GetReportInfo()
vtbl 5 UINT_PTR GetRawDataSize()
| bufferSize | UINT_PTR | in | buffer のサイズ(バイト数)を指定する。 |
| buffer | void* | out | レポートの生データを受け取るバッファへのポインタである。 |
| bufferSize | UINT_PTR | in | buffer のサイズ(バイト数)を指定する。 |
| buffer | void* | in | レポートに設定する生データへのポインタである。 |
| itemIndex | DWORD | in | 対象とするレポート項目のインデックスを指定する。 |
| value | LONGLONG* | out | 取得した項目の値を受け取る。 |
| itemIndex | DWORD | in | 対象とするレポート項目のインデックスを指定する。 |
| value | LONGLONG | in | 設定する項目の値を指定する。 |
| itemIndex | DWORD | in | 既定値に戻す対象レポート項目のインデックスを指定する。 |
vtbl 11 BOOLEAN ResetAllItems()
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IGameInputRawDeviceReport "{61F08CF1-1FFC-40CA-A2B8-E1AB8BC5B6DC}" #usecom global IGameInputRawDeviceReport IID_IGameInputRawDeviceReport "{}" #comfunc global IGameInputRawDeviceReport_GetDevice 3 sptr #comfunc global IGameInputRawDeviceReport_GetReportInfo 4 #comfunc global IGameInputRawDeviceReport_GetRawDataSize 5 #comfunc global IGameInputRawDeviceReport_GetRawData 6 sptr,sptr #comfunc global IGameInputRawDeviceReport_SetRawData 7 sptr,sptr #comfunc global IGameInputRawDeviceReport_GetItemValue 8 int,var #comfunc global IGameInputRawDeviceReport_SetItemValue 9 int,int64 #comfunc global IGameInputRawDeviceReport_ResetItemValue 10 int #comfunc global IGameInputRawDeviceReport_ResetAllItems 11 ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IGameInputRawDeviceReport "{61F08CF1-1FFC-40CA-A2B8-E1AB8BC5B6DC}" #usecom global IGameInputRawDeviceReport IID_IGameInputRawDeviceReport "{}" #comfunc global IGameInputRawDeviceReport_GetDevice 3 sptr #comfunc global IGameInputRawDeviceReport_GetReportInfo 4 #comfunc global IGameInputRawDeviceReport_GetRawDataSize 5 #comfunc global IGameInputRawDeviceReport_GetRawData 6 sptr,sptr #comfunc global IGameInputRawDeviceReport_SetRawData 7 sptr,sptr #comfunc global IGameInputRawDeviceReport_GetItemValue 8 int,sptr #comfunc global IGameInputRawDeviceReport_SetItemValue 9 int,int64 #comfunc global IGameInputRawDeviceReport_ResetItemValue 10 int #comfunc global IGameInputRawDeviceReport_ResetAllItems 11 ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。