問題タブ [siri-remote]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
rotation - tvOS: ジャイロスコープのデータを取得するにはどうすればよいですか? (Objective-C)
ピッチ回転を使用するアプリに取り組んでいます。+30° -30° のアーチの動きを追跡する必要があります...
問題は、Siri-Remote にジャイロスコープがあるにもかかわらず、GameController フレームワークを使用すると、回転率がすべての軸で常に 0 の値を返すことです。
加速度計データ (Gravity と UserAcceleration) を使用しようとしましたが、結果は非常に貧弱です。Y軸の回転速度を取得する方法について何か考えはありますか?
objective-c - Overriding Siri Remote Menu Button
Okay, so I am making a game for tvOS, and I've overridden the menu button. Basically, if you are in the game and press the menu button, you'll be taken to the main menu. If you are at the main menu and press the menu button, you'll return to the Apple TV home screen.
Here's the code to do that:
#xA;This works properly, but there's one issue: if you exit to the apple TV home screen and go back into the app (without quitting it), then no matter what, pressing the menu button will take you back to the apple TV home screen.
Even stranger, the method above is called, and it will even run the quitGame
method. It does not call the [super pressesBegan:presses withEvent:event]
, at least not in the above method, but it still takes the user to the home screen.
Is this a bug, or am I missing something?
swift - Siriリモートタッチの場所?
Apple TV の Siri Remote でタッチを収集すると、タッチの場所は常に同じ場所として報告されますか?
locationInView(xxx) でさまざまなオプションを試しましたが、何もしませんでした。タップも調べました。デバッガーで何でも見ることができます。
どんなアイデアでも、それはサポートされています。
uikit - Siri リモートでの 2 本指クリックの検出
tvOS アプリのユーザーがトラックパッドで 2 本の指で Siri Remote をクリックしたことを検出したいと思います。(現在、1 本の指でクリックすると増加します。2 本の指でクリックして減少させたいと思います。) iOS では、2 本の指でのタップを検出するのは非常にUITapGestureRecognizer
簡単numberOfTouchesRequired
です2
。しかし、これを tvOS で動作させることはできないようです。何か案は?
uigesturerecognizer - シリリモコン。方向矢印
tvOS 上の Apple のデフォルト AVPlayerViewController で 1 つの動作を見つけました。ビデオを巻き戻しまたは早送りできるタイムラインを呼び出し、SiriRemote のタッチパッドの右側に指を置いたままにすると、現在の再生時間の横に「10」ラベルが表示されます。
リモコンを押さずに指を離すと、「10」のラベルが消えます。
リモコンの左側をタッチする場合も同様で、現在の再生時間の左側に「10」ラベルだけが表示されます。
問題は、このイベントのコールバックをどのように受け取ることができるかです。ユーザーがリモコンの側面に指を置くイベント。
UPD
allowedPressTypes=UIPressTypeRightArrow を指定した UITapGestureRecognizer は、ユーザーがタッチ サーフェスから指を離した後にイベントを生成します。ユーザーが表面の端に触れるとすぐに生成されるイベントに興味があります(おそらく指を休ませたままにします)
tvos - Siri リモート ジャイロスコープは tvOS シミュレーターで動作しますか?
Bluetooth 経由で Siri リモートを MacBook に接続してから tvOS シミュレーターを実行すると、モーション イベントは検出されますか?