Questions (#2) - How to map analog stick to directional buttons (#59) - Message List

How to map analog stick to directional buttons

Here is what i'm trying to do: map 0 90 180 270 on the analog stick of the nunchuk to send up down left and right

i'd also like to be able to map a button to change the mode of the analog stick to be able to take mouse input from it and the wiimote or disable the wiimote and just take input from it. i thought with a previous version i rememered using the analog stick for mouse input before, but i'm not sure how that was done.

  • Message #24319

    Hi, I wrote a plugin to map nunchuck stick to keys, such as directional keys. It's available there : http://kyrlian.free.fr/binaries/cwiid/latest/

    • Message #24344

      Has anyone gotten this to work? make keeps failing because there's no Makefile in plugins/ir_fps/. All the other plugins have a Makefile but I don't know how to create a new one.

      • Message #24347

        I got it to work. You have to add the ir_fps and nunchuk_kb directories to configure.ac after copying the directories over. You should see where you need to add them near the bottom of configure.ac. Then do the usual autoreconf, ./configure, make, make install, and all should go well.

        • Message #24349

          I never would've looked there. I made the changes and installed automake. Now the make, make install process finishes without any errors. The ir_fps and nunchuk_kb folders have a Makefile now. However, I can't run "wminput -c ir_fps" because the file isn't found. Checking /usr/local/etc/cwiid/wminput/ only shows the default plugins, not the new ones. I thought this is where the plugins lived. I'm running Mythbuntu 7.10 and, yes, I'm a noob so your help is really appreciated.

          Edit: My bad. I need to run "wminput -c fps_config." Silly mistake. Thanks for the help.

          PS: Just so I know, if you're adding plugins to the source of any program, does configure.ac need to be changed everytime? Is this file the instructions for make?

Subscriptions