Skip to content

その他デバイス系

gpsnmeajp edited this page Sep 29, 2018 · 1 revision

デバイスのボタン

public bool GetControllerButtonPressed(uint index, out ulong ulButtonPressed)

デバイスのボタン押されている情報を取得する

public bool GetControllerState(uint index, out VRControllerState_t state)

デバイスのボタン押されている情報などのステータスを取得する

デバイスの振動

public bool TriggerHapticPulse(uint index, ushort us=3000)

指定したデバイスを振動させる。
us=0~3999 (省略した場合は3000)
成功すればtrue、デバイスが接続されていなければfalse