ZepetoinputControl
38 分
型 説明 playeractions /#playeractions 移動、ジャンプ、二段ジャンプなど、プレイヤー固有のアクションを処理します。 cameraactions /#cameraactions zepeto world 内のカメラ関連の入力アクションを管理します。 uiactions /#uiactions ui 関連のさまざまな入力アクションを処理します。 iplayeractions /#iplayeractions プレイヤーアクション用のインターフェースです。 icameraactions /#icameraactions カメラアクション用のインターフェースです。 iuiactions /#iuiactions ui アクション用のインターフェースです。 playeractions class 移動、ジャンプ、二段ジャンプなど、プレイヤー固有のアクションを処理します。 プロパティ 名前 型 説明 move inputaction プレイヤーの移動に対応する入力アクションを取得します。 jump inputaction プレイヤーのジャンプに対応する入力アクションを取得します。 doublejump inputaction プレイヤーの二段ジャンプに対応する入力アクションを取得します。 enabled boolean プレイヤーの入力アクションの現在の有効状態を示します。 メソッド get get() → inputactionmap プレイヤーアクションに関連付けられた inputactionmap を取得します。 戻り値 inputactionmap — プレイヤーアクションの inputactionmap 。 enable enable() → void プレイヤーのアクションマップを有効化し、プレイヤーの入力アクションを使用できるようにします。 disable disable() → void プレイヤーのアクションマップを無効化し、プレイヤーの入力アクションを使用できないようにします。 setcallbacks setcallbacks(instance iplayeractions) → void instance のコールバックメソッドを、対応する各プレイヤーアクションに関連付けます。 パラメーター 型 説明 instance iplayeractions /#iplayeractions iplayeractions インターフェースを実装したオブジェクト。 cameraactions class zepeto world 内のカメラ関連の入力アクションを管理します。 プロパティ 名前 型 説明 scroll inputaction カメラのスクロールに対応する入力アクションを返します。 primarytouchposition inputaction 1 番目のタッチ位置を取得する入力アクションを返します。 primarytouchcontact inputaction 1 番目のタッチの接触を検出する入力アクションを返します。 secondarytouchposition inputaction 2 番目のタッチ位置を取得する入力アクションを返します。 secondarytouchcontact inputaction 2 番目のタッチの接触を検出する入力アクションを返します。 tertiarytouchposition inputaction 3 番目のタッチ位置を取得する入力アクションを返します。 tertiarytouchcontact inputaction 3 番目のタッチの接触を検出する入力アクションを返します。 enabled boolean カメラのアクションマップ内の入力アクションが現在有効かどうかを示します。 メソッド get get() → inputactionmap zepetoinputcontrol から、カメラアクションに関連付けられた inputactionmap を取得します。 戻り値 inputactionmap — カメラ関連の入力アクションをまとめた inputactionmap オブジェクト。 enable enable() → void カメラのアクションマップ内のすべての入力アクションを有効化します。 disable disable() → void カメラのアクションマップ内のすべての入力アクションを無効化します。 setcallbacks setcallbacks(instance icameraactions) → void カメラアクションのコールバックインターフェースを設定し、アクションハンドラーを外部で実装できるようにします。 パラメーター 型 説明 instance icameraactions /#icameraactions icameraactions インターフェースを実装したオブジェクト。 uiactions class ui 関連のさまざまな入力アクションを処理します。 プロパティ 名前 型 説明 navigate inputaction メニューやリストなどの ui 要素間の移動を処理するアクションです。通常は矢印キー、ジョイスティックの操作、スワイプジェスチャーなどの方向入力を使用します。 submit inputaction ハイライトされている ui 要素を確定または選択するアクションを表します。「enter」や「ok」コマンドに相当します。 cancel inputaction キャンセルまたは「戻る」コマンドに対応するアクションです。ユーザーは前のメニューに戻ったり、開いている ui ウィンドウを閉じたりできます。 point inputaction ui 上のポインティング操作を処理します。マウスカーソルの移動や、タッチスクリーン上の指の接触点の移動に相当します。 click inputaction ui 要素をクリックするアクションを表します。マウスクリックや画面のタップに相当します。 scrollwheel inputaction マウスホイールやタッチパッドのジェスチャーなど、スクロール入力を取得するために使用するアクションです。 middleclick inputaction マウスの中央ボタンを押すアクションを表します。 rightclick inputaction マウスの右クリックに対応するアクションです。コンテキストメニューを開いたり、副次的な操作を実行したりする際によく使用されます。 trackeddeviceposition inputaction vr コントローラーやモーショントラッキングデバイスなど、トラッキング対象デバイスの位置データを取得します。 trackeddeviceorientation inputaction デバイスの向きをトラッキングします。通常は vr や ar の構成で、デバイスが指している方向を検出するために使用されます。 enabled boolean ui アクションが現在有効で、入力に反応する状態かどうかを示します。 メソッド get get() → inputactionmap ui アクションに関連付けられた inputactionmap を返します。 戻り値 inputactionmap — 返される inputactionmap には、 zepetoinputcontrol クラス内で ui 操作用に定義されたすべての入力アクションが含まれます。 enable enable() → void ui の入力アクションを有効化し、ユーザー入力に反応するようにします。 disable disable() → void ui の入力アクションを無効化し、ユーザー入力に反応しないようにします。 setcallbacks setcallbacks(instance iuiactions) → void ui アクションのコールバックメソッドを登録します。 instance が実装する iuiactions インターフェースの定義に従って、各アクションを対応するイベントハンドラーに関連付けます。 パラメーター 型 説明 instance iuiactions /#iuiactions iuiactions インターフェースを実装したオブジェクト。 iplayeractions interface プレイヤーアクション用のインターフェースです。 メソッド onmove onmove(context callbackcontext) → void 移動時。 パラメーター 型 説明 context callbackcontext コールバックコンテキスト。 onjump onjump(context callbackcontext) → void ジャンプ時。 パラメーター 型 説明 context callbackcontext コールバックコンテキスト。 ondoublejump ondoublejump(context callbackcontext) → void 二段ジャンプ時。 パラメーター 型 説明 context callbackcontext コールバックコンテキスト。 icameraactions interface カメラアクション用のインターフェースです。 メソッド onscroll onscroll(context callbackcontext) → void スクロール時。 パラメーター 型 説明 context callbackcontext コールバックコンテキスト。 onprimarytouchposition onprimarytouchposition(context callbackcontext) → void 1 番目のタッチ位置の変化時。 パラメーター 型 説明 context callbackcontext コールバックコンテキスト。 onprimarytouchcontact onprimarytouchcontact(context callbackcontext) → void 1 番目のタッチの接触時。 パラメーター 型 説明 context callbackcontext コールバックコンテキスト。 onsecondarytouchposition onsecondarytouchposition(context callbackcontext) → void スクロール時。 パラメーター 型 説明 context callbackcontext コールバックコンテキスト。 onsecondarytouchcontact onsecondarytouchcontact(context callbackcontext) → void 2 番目のタッチの接触時。 パラメーター 型 説明 context callbackcontext コールバックコンテキスト。 ontertiarytouchposition ontertiarytouchposition(context callbackcontext) → void 3 番目のタッチ位置の変化時。 パラメーター 型 説明 context callbackcontext コールバックコンテキスト。 ontertiarytouchcontact ontertiarytouchcontact(context callbackcontext) → void 3 番目のタッチの接触時。 パラメーター 型 説明 context callbackcontext コールバックコンテキスト。 iuiactions interface ui アクション用のインターフェースです。 メソッド onnavigate onnavigate(context callbackcontext) → void ナビゲーション時。 パラメーター 型 説明 context callbackcontext コールバックコンテキスト。 onsubmit onsubmit(context callbackcontext) → void 確定時。 パラメーター 型 説明 context callbackcontext コールバックコンテキスト。 oncancel oncancel(context callbackcontext) → void キャンセル時。 パラメーター 型 説明 context callbackcontext コールバックコンテキスト。 onpoint onpoint(context callbackcontext) → void ポインティング時。 パラメーター 型 説明 context callbackcontext コールバックコンテキスト。 onclick onclick(context callbackcontext) → void クリック時。 パラメーター 型 説明 context callbackcontext コールバックコンテキスト。 onscrollwheel onscrollwheel(context callbackcontext) → void スクロールホイール操作時。 パラメーター 型 説明 context callbackcontext コールバックコンテキスト。 onmiddleclick onmiddleclick(context callbackcontext) → void 中央クリック時。 パラメーター 型 説明 context callbackcontext コールバックコンテキスト。 onrightclick onrightclick(context callbackcontext) → void 右クリック時。 パラメーター 型 説明 context callbackcontext コールバックコンテキスト。 ontrackeddeviceposition ontrackeddeviceposition(context callbackcontext) → void トラッキング対象デバイスの位置変化時。 パラメーター 型 説明 context callbackcontext コールバックコンテキスト。 ontrackeddeviceorientation ontrackeddeviceorientation(context callbackcontext) → void トラッキング対象デバイスの向きの変化時。 パラメーター 型 説明 context callbackcontext コールバックコンテキスト。