Mouse が八の字を描くサンプルコードは PIC USB 界(?)ではメジャーなので、あちこちで見受けられる。HID の入門としては手頃だけれども、ここから HID Joystick へと改造するにはどうしたら良いのだろうか? 調べてみたけれども、そのものズバリな解を WEB 上で発見することはできなかった。 USB デバイスは接続時の enumulation で自分はどういった機器でどういった事ができますよというのをホストに宣言する。この宣言の内容をデスクリプタと呼ぶ。 つまりコレまでは「HIDのマウスですよ」と宣言していたものを「HIDのジョイスティックですよ」と宣言するように描き直せば、まずはジョイスティックとして認識してくれるに違いない。 結局色々探して usb.org の HID document まで眺めるはめになってしまった。 結果 HID であればクラスディスクリプタとか
I've extended the joystick firmware to present a much larger joystick to the host PC. The new firmware has: 8 analog axis supporting values from -32768 to 32767. 40 buttons This should be handy for building large control systems like the flight controls for a flight simulator, Firefly console, Viper console, or other large control system. Background A little background for anyone new to creating
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く