ホーム › UI.Input.GameInput › IGameInputForceFeedbackEffect
IGameInputForceFeedbackEffect
COMメソッド 8
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 void GetDevice(IGameInputDevice** device)
| device | IGameInputDevice** | out | この効果が属するデバイス(IGameInputDevice)を受け取る。 |
vtbl 4 DWORD GetMotorIndex()
vtbl 5 FLOAT GetGain()
vtbl 6 void SetGain(FLOAT gain)
| gain | FLOAT | in | 効果のゲイン(強度倍率、0.0〜1.0)を指定する。 |
vtbl 7 void GetParams(GameInputForceFeedbackParams* params)
| params | GameInputForceFeedbackParams* | out | 現在のフォースフィードバックパラメータ(GameInputForceFeedbackParams)を受け取る。 |
vtbl 8 BOOLEAN SetParams(GameInputForceFeedbackParams* params)
| params | GameInputForceFeedbackParams* | in | 設定するフォースフィードバックパラメータ(GameInputForceFeedbackParams)へのポインタである。 |
vtbl 9 GameInputFeedbackEffectState GetState()
vtbl 10 void SetState(GameInputFeedbackEffectState state)
| state | GameInputFeedbackEffectState | in | 効果の状態(再生・停止など、GameInputFeedbackEffectState)を指定する。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IGameInputForceFeedbackEffect "{51BDA05E-F742-45D9-B085-9444AE48381D}" #usecom global IGameInputForceFeedbackEffect IID_IGameInputForceFeedbackEffect "{}" #comfunc global IGameInputForceFeedbackEffect_GetDevice 3 sptr #comfunc global IGameInputForceFeedbackEffect_GetMotorIndex 4 #comfunc global IGameInputForceFeedbackEffect_GetGain 5 #comfunc global IGameInputForceFeedbackEffect_SetGain 6 float #comfunc global IGameInputForceFeedbackEffect_GetParams 7 var #comfunc global IGameInputForceFeedbackEffect_SetParams 8 var #comfunc global IGameInputForceFeedbackEffect_GetState 9 #comfunc global IGameInputForceFeedbackEffect_SetState 10 int ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IGameInputForceFeedbackEffect "{51BDA05E-F742-45D9-B085-9444AE48381D}" #usecom global IGameInputForceFeedbackEffect IID_IGameInputForceFeedbackEffect "{}" #comfunc global IGameInputForceFeedbackEffect_GetDevice 3 sptr #comfunc global IGameInputForceFeedbackEffect_GetMotorIndex 4 #comfunc global IGameInputForceFeedbackEffect_GetGain 5 #comfunc global IGameInputForceFeedbackEffect_SetGain 6 float #comfunc global IGameInputForceFeedbackEffect_GetParams 7 sptr #comfunc global IGameInputForceFeedbackEffect_SetParams 8 sptr #comfunc global IGameInputForceFeedbackEffect_GetState 9 #comfunc global IGameInputForceFeedbackEffect_SetState 10 int ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。