LoginSignup
0
2

Unity Wiiリモコン 備忘録

Posted at

誰かの役に立つかもなので殴り書きで残すことにする。

(自分の殴り書きメモを貼っつけてるだけなので見にくかったらすまん。)

(2024/0403)
意地と執念でwiiリモコンをunityに接続してボタンとか傾き加速度持ってこれた。

でも音声が別問題でこれも意地と執念でめっちゃ格闘してなんとかunityからリモコン側に音を出させることはできたんだけど、とても元の音源は分からないノイズみたいな音しか出せなかった。

形式はmono / 8bits / 2000hz / PCM固定なのは分かったけど、ここで格闘するより次のゲームの処理を作ったほうが良さそうだから、wiiリモコン対応は一旦後回しにする。

wiiリモコンのpcとの接続:

step1: bluetooth → join a personal area network → add device → wiリモコンの1、2同時押し→pin何も入力無しで接続 → led点滅状態になる
step2: touchmote をwindowsにインストール。
これでpcとはつながる。

次に
https://github.com/Flafla2/Unity-Wiimote
クローンするなり、zipでダウンロードするなりでunityに導入。サンプルシーンに使い方は書いてある。

Wiiリモコン接続 参考:
https://booth.pm/ja/items/1274047
https://nn-hokuson.hatenablog.com/entry/2016/09/28/205448
https://bibinbaleo.hatenablog.com/entry/2017/10/27/174456
https://swamptk.hatenablog.com/entry/2018/01/21/192414

サウンド回り参考:
https://github.com/Flafla2/Unity-Wiimote/pull/49
https://wiibrew.org/wiki/Wiimote#Speaker_Configuration
https://pu2x.hatenablog.com/entry/2017/04/05/204826
http://netadm.iss.tokushima-u.ac.jp/soft/dev/WiiRemote.pdf

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2