2008-04-12, 16:30
Thanks! Works!
Topfs2 Wrote:...2 ir sources aprox. 1.5dm spaced apart...
althekiller Wrote:Lol...99% of Americans aren't going to know what a decimeter is.
Quote:The executable depends on libcwiid and libbluetooth and is compiled using
# g++ WiiRemote.cpp -lcwiid -o WiiRemote
The WiiRemote will emulate mouse by default but can be disabled by running with --disable-mouseemulation
The sensitivity of the mouseemulation can be set using the --deadzone_x or --deadzone_y where the number is
the percentage of the space is considered "dead", higher means more sensative.
Other commands can be listed with --help
The WiiRemote is mappable with keymap.xml where button id's are the following:
1 = Up
2 = Down
3 = Left
4 = Right
5 = A
6 = B
7 = Minus
8 = Home
9 = Plus
10 = 1
11 = 2
The name is by standard WiiRemote but this can be changed with the --joystick-name
Quote:# cd
# cd XBMC/tools/EventClients/Clients/WiiRemote
# g++ WiiRemote.cpp -lcwiid -o WiiRemote
# ./WiiRemote