Questions (#2) - Disconnecting (#29) - Message List

Disconnecting

I'm building a wiimote-driven media PC and so would like to be able to connect/disconnect wiimotes easily with the wiimote itself. It looks like this is partially, but not totally, possible right now. Thanks to wminput's "no timeout" switch, I can just call that in some startup script (looking forward to the deamon, though), and then connect a wiimote with 1+2 whenever. But it looks like there's currently no comparable built-in way to disconnect via wiimote and have wminput wait for another connection?

I'm sure I could (and probably will) set things up such that pressing a button or maybe a combination (1+2+home?) would trigger a small script to kill wminput and launch another "no timeout" instance. (Just read the notes on Ticket #15, looks like someone beat me to it. Cool.)

Of course, it would be nice to just have the power button for this, but I realize that button hasn't been completely figured out yet. But it does disconnect the connection, right? I did notice that pressing power seems to leave wminput hanging, apparently waiting for input that never comes (it doesn't exit or accept a new connection). This is the current "normal" behavior and not just a bug on my end, right? If this is correct, is there currently a technical problem in the way of detecting the disconnection, or has this just not been implemented yet? If it just hasn't been gotten around to yet, I'd be willing to see what I can do (I'm a C coder, although I have only limited experience in *nix, and none with bluetooth).

  • Message #129

    Woops - look like I broke this during the API overhaul a few weeks ago. I'm on it.

  • Message #130

    ok - try that (r115). wminput now exits when the Wiimote disconnects. At some point I'll add some sort of feature to wait for a new connection - until that happens, there are a couple of scripts at ConfigScriptEtc that may do what you need.

    • Message #131

      Works in r115 now, thanks. I'll take a look at those scripts.

Subscriptions