Leap Motionによるコントローラ
-
LeapSDKのインストール
-
Pythonからキーボード入力とマウス入力を行うので、そのためのモジュールを取得する。
git clone https://github.com/SavinaRoja/PyUserInput.git
- 代わりに
pip install PyUserInput
と打ってインストールしてもかまわない。
- キーボードショートカットの割り当て
画面遷移(スワイプ)のためのショートカットを割り当てる。
[システム環境設定]->[キーボード]->[ショートカット]->[Mission Control]の
左の操作スペースに移動のキーボードショートカットをControl+Lに割り当てる。右も同様に。
- Makefileの書き換え
LeapSDKのパスおよびPythonのパスを各自の環境に合わせる。その後、makeする。
make
./app